Commit Graph

301 Commits

Author SHA1 Message Date
Alex Kontos
732b2a4624 refactor: about:preferences
* feat: Waterfox custom CSS on non-default themes by default
* feat: Table of Contents to preferences
* feat: DoOH checkbox to privacy preferences
* feat panel and menu transparency options
* feat: Look & Feel about:preferences item
2025-11-06 14:13:29 +00:00
Alex Kontos
777c551a0a feat: add update check disabling
(cherry picked from commit d97ab048aaea261d6f78640b62290a53815042f5)
2025-11-06 14:12:56 +00:00
Mark Striemer
6a2624c304 Bug 1965591 - Support aria-label on moz-fieldset r=reusable-components-reviewers,fluent-reviewers,settings-reviewers,mkennedy,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D249799
2025-05-17 19:46:04 +00:00
Ed Lee
fc43311e2b Bug 1961210 - show link preview settings for the feature and related options, e.g., key points, keyboard shortcuts r=txia,fluent-reviewers,settings-reviewers,firefox-ai-ml-reviewers,bolsson,mstriemer
Add link preview related prefs not visible by default for now.

Differential Revision: https://phabricator.services.mozilla.com/D247542
2025-05-17 17:07:50 +00:00
Emilio Cobos Álvarez
ee6692b733 Bug 1966357 - Use HiDPI icons for application actions. r=Gijs,settings-reviewers
In order to avoid duplication use the content property, which needs a
trivial change to frame construction to allow to use it for menu icons.

Differential Revision: https://phabricator.services.mozilla.com/D249245
2025-05-14 18:35:47 +00:00
Emilio Cobos Álvarez
fd91de3316 Bug 1964046 - Use HiDPI icons in preferences app list. r=settings-reviewers,Gijs
Using this for the action icon and such is harder.

Differential Revision: https://phabricator.services.mozilla.com/D248602
2025-05-14 18:35:22 +00:00
Eitan Isaacson
ed0e54da26 Bug 1960608 - Remove manage colors button from appearance override warning. r=fluent-reviewers,settings-reviewers,Gijs,bolsson
The settings are no longer in the colors dialog but in the following
section, so the button does not do anything.

Differential Revision: https://phabricator.services.mozilla.com/D246240
2025-04-24 13:12:29 +00:00
reach
7f36d3ea63 Bug 1855839 - [Translations] Update offline translation language list display on locale change. r=nordzilla,settings-reviewers,translations-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D243690
2025-04-11 21:43:26 +00:00
Francesco Lodolo (:flod)
09b596616a Bug 1956164 - Refactor WebRTC and pref code to use explicit Fluent IDs, remove more unused strings, r=settings-reviewers,emz,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D242883
2025-04-01 19:16:18 +00:00
Rolf Rando
6457c1eed4 Bug 1954648 - Smart Tab Group settings in Preferences->Tabs r=ngrato,fluent-reviewers,settings-reviewers,tabbrowser-reviewers,dwalker,flod
Differential Revision: https://phabricator.services.mozilla.com/D241922
2025-03-23 04:03:31 +00:00
Sandor Molnar
53925bf70d Backed out changeset 272d0dd8b6a7 (bug 1954648) for causing bc failures @ browser_experimental_features.js 2025-03-19 23:36:30 +02:00
Rolf Rando
07417b054d Bug 1954648 - Smart Tab Group settings in Preferences->Tabs r=ngrato,fluent-reviewers,settings-reviewers,tabbrowser-reviewers,dwalker,flod
Differential Revision: https://phabricator.services.mozilla.com/D241922
2025-03-19 17:14:19 +00:00
Mark Striemer
89873fdff1 Bug 1951831 - Part 2: Stories for setting-{group,control} r=reusable-components-reviewers,settings-reviewers,mossop,hjones
Refactor the setting-group and setting-control a little to support
passing in the Preferences.getSetting function rather pulling it off of
window.

Add basic Storybook stories for setting-group and setting-control.

Differential Revision: https://phabricator.services.mozilla.com/D241130
2025-03-13 01:42:34 +00:00
Mark Striemer
efcc38c52b Bug 1951141 - Convert Browsing section in Settings to config r=reusable-components-reviewers,desktop-theme-reviewers,mconley,hjones
This is the first change to start moving our settings to a config
approach. These settings are all checkboxes so only checkbox support is
added at this time.

In the future, these settings will be regrouped with other settings in
the Settings Redesign 2025 project. Moving the settings will involve
creating a new config with a different grouping of id/l10n/supportPage
values. It should not require moving any code or markup to move the
settings or convert them to using moz-checkbox rather than XUL checkbox.

Differential Revision: https://phabricator.services.mozilla.com/D240400
2025-03-13 01:42:33 +00:00
Eitan Isaacson
cf6484047a Bug 1898096 - Replace color settings with "contrast control". r=emilio,fluent-reviewers,settings-reviewers,accessibility-frontend-reviewers,morgan,bolsson,masayuki,mossop,pdfjs-reviewers,calixte
This patch changes the backing prefs by relying on the tristate offered
by browser.display.document_color_use instead of
browser.display.use_system_colors. This simplifies the color
decision tree, and offers a simplified UI.

The tristate preference offered to the user is as follows:
 1. "Use platform's contrast settings" (document_color_use=0)
 2. "Off" - never use HCM, regardless of platform setting (document_color_use=1)
 3. "On" - always use HCM, regardless of platform setting (document_color_use=2)

Option 3 also reveals a colors UI for the user to choose the palette the
browser HCM will use (bg/text/link/visited).

There are three color palettes to choose from in light of the preference
above they are:
 1. WIDGET_COLORS: The OS's configured colors used by its theme.
 2. HARDCODED_COLORS: Colors deemed as standard and are hard coded into
    Firefox (eg. white on black text, blue and purple links).
 3. PREFERENCE_COLORS: Colors that are stored in preferences and are
    configurable from the colors UI (eg. browser.visited_color and
    browser.display.background_color)

The decision over which palette to use is as follows:
 * If we are styling browser UI -> WIDGET_COLORS
 * else, if resist fingerprinting is enabled -> HARDCODED_COLORS
 * else, if document_color_use==0 AND OS HCM is on -> WIDGET_COLORS
 * else, if document_color_use==2 -> PREFERENCE_COLORS
 * else -> HARDCODED_COLORS

Differential Revision: https://phabricator.services.mozilla.com/D211115
2025-03-05 19:18:08 +00:00
Alexandru Marc
78ef84ae14 Backed out changeset f4d5303f5472 (bug 1898096) for causing ba failures @ browser_attributed_text.js 2025-03-05 03:27:02 +02:00
Eitan Isaacson
e55fdd6ce8 Bug 1898096 - Replace color settings with "contrast control". r=emilio,fluent-reviewers,settings-reviewers,accessibility-frontend-reviewers,morgan,bolsson,masayuki,mossop,pdfjs-reviewers,calixte
This patch changes the backing prefs by relying on the tristate offered
by browser.display.document_color_use instead of
browser.display.use_system_colors. This simplifies the color
decision tree, and offers a simplified UI.

The tristate preference offered to the user is as follows:
 1. "Use platform's contrast settings" (document_color_use=0)
 2. "Off" - never use HCM, regardless of platform setting (document_color_use=1)
 3. "On" - always use HCM, regardless of platform setting (document_color_use=2)

Option 3 also reveals a colors UI for the user to choose the palette the
browser HCM will use (bg/text/link/visited).

There are three color palettes to choose from in light of the preference
above they are:
 1. WIDGET_COLORS: The OS's configured colors used by its theme.
 2. HARDCODED_COLORS: Colors deemed as standard and are hard coded into
    Firefox (eg. white on black text, blue and purple links).
 3. PREFERENCE_COLORS: Colors that are stored in preferences and are
    configurable from the colors UI (eg. browser.visited_color and
    browser.display.background_color)

The decision over which palette to use is as follows:
 * If we are styling browser UI -> WIDGET_COLORS
 * else, if resist fingerprinting is enabled -> HARDCODED_COLORS
 * else, if document_color_use==0 AND OS HCM is on -> WIDGET_COLORS
 * else, if document_color_use==2 -> PREFERENCE_COLORS
 * else -> HARDCODED_COLORS

Differential Revision: https://phabricator.services.mozilla.com/D211115
2025-03-05 00:27:44 +00:00
Rebecca King
b3a22ac978 Bug 1938253 - Implement Callout 3 for integrated version of Review Checker - r=kpatenio,shopping-reviewers,fluent-reviewers,settings-reviewers,omc-reviewers,aminomancer,bolsson,mossop
Differential Revision: https://phabricator.services.mozilla.com/D233053
2025-02-24 18:15:36 +00:00
Jared Hirsch
ec20ae7dd7 Bug 1921846 - Add profiles section to about:preferences. r=profiles-reviewers,settings-reviewers,fluent-reviewers,bolsson,niklas,mossop
For now, putting the profiles preferences test in the profiles
component.

Differential Revision: https://phabricator.services.mozilla.com/D237838
2025-02-14 17:10:48 +00:00
Sam Foster
2abfcffe73 Bug 1936379 - Add new browser layout section to about:preferences, remove Labs sidebar section. r=sidebar-reviewers,fluent-reviewers,settings-reviewers,sclements,Gijs,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D235715
2025-01-29 16:48:09 +00:00
Logan Rosen
d24c9d9ff4 Bug 1857834 - auto-formatting with Prettier v3 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,reusable-components-reviewers,profiler-reviewers,dom-storage-reviewers,android-reviewers,firefox-ai-ml-reviewers,hjones,mcheang,mstange,sparky,janv,nchevobbe,tarek,Standard8,markh
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D230598
2024-11-29 15:18:25 +00:00
jabram
ad7b1e649c Bug 1451132 - Provide option to close current tab on quit r=fluent-reviewers,reusable-components-reviewers,mconley,settings-reviewers,mossop,accessibility-frontend-reviewers,mstriemer,ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D223374
2024-11-25 21:03:45 +00:00
Nipun Shukla
c78f3f7aff Bug 1909965 - Disable instead of hiding launch on login option in about:preferences r=fluent-reviewers,settings-reviewers,firefox-desktop-core-reviewers ,Gijs,bolsson,mossop
Differential Revision: https://phabricator.services.mozilla.com/D219673
2024-10-09 19:19:16 +00:00
Chris H-C
724b00c304 Bug 1920562 - Remove JS uses of Services.telemetry.setEventRecordingEnabled r=florian,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,sessionstore-reviewers,omc-reviewers,migration-reviewers,firefox-desktop-core-reviewers ,urlbar-reviewers,sfoster,nchevobbe,valentin,Gijs,dimi,lina,mconley,pdahiya,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D223833
2024-10-08 20:14:42 +00:00
Sandor Molnar
92076e16a7 Backed out 5 changesets (bug 1920562) for causing xpc assertion failures. CLOSED TREE
Backed out changeset 8f085ab589a8 (bug 1920562)
Backed out changeset 4405387ae770 (bug 1920562)
Backed out changeset a68fd13a33ae (bug 1920562)
Backed out changeset cd3672fc08ed (bug 1920562)
Backed out changeset 62ab18879eea (bug 1920562)
2024-10-08 00:16:13 +03:00
Chris H-C
e944bfe7a2 Bug 1920562 - Remove JS uses of Services.telemetry.setEventRecordingEnabled r=florian,settings-reviewers,pip-reviewers,credential-management-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,sessionstore-reviewers,omc-reviewers,migration-reviewers,firefox-desktop-core-reviewers ,urlbar-reviewers,sfoster,nchevobbe,valentin,Gijs,dimi,lina,mconley,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D223833
2024-10-07 17:29:57 +00:00
Jan Horak
15ed02a8f1 Bug 1751467 Use GAppInfo to open downloaded files; r=stransky,settings-reviewers,mossop,mak,jmaher
The GAppInfo supports starting up flatpak applications where the simple
command does not work.

Differential Revision: https://phabricator.services.mozilla.com/D221792
2024-09-24 15:14:24 +00:00
Florian Quèze
30f68dada3 Bug 1918702 - Migrate telemetry events to use Glean APIs for intl.ui.browserLanguage, r=chutten,settings-reviewers,mossop.
Differential Revision: https://phabricator.services.mozilla.com/D222605
2024-09-20 13:58:18 +00:00
Florian Quèze
8aee9b101f Bug 1918702 - Migrate telemetry events to use Glean APIs for pictureinpicture.settings, r=chutten,settings-reviewers,pip-reviewers,firefox-desktop-core-reviewers ,mconley.
Differential Revision: https://phabricator.services.mozilla.com/D222128
2024-09-20 13:58:13 +00:00
Eemeli Aro
ddf45ffed7 Bug 1911321 - Add new set_fallback method to intl.ui.browserLanguage telemetry action. r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D218414
2024-08-14 12:53:43 +00:00
Mike Conley
b2707c88f1 Bug 1906326 - Don't manually unhide the dataBackupGroup in preferences if enabled. r=settings-reviewers,Gijs
The preferences initialization code will take care of showing and hiding
this for us when loading different panes - it's the `data-hidden-from-search`
attribute removal that's allowing us to show the group when the preference
is enabled.

The existing test_preferences_visibility test under
browser/components/backup/test/browser/browser_settings.js tests that we
haven't regressed showing and hiding behaviour for the pref.

Differential Revision: https://phabricator.services.mozilla.com/D215806
2024-07-08 18:39:00 +00:00
Jan Grulich
c8affaf5e8 Bug 1882079 - Display real path when choosing download directory over portal r=settings-reviewers,Gijs,emilio
Use the new API addition to Document portal allowing clients to get real
path to the exported document. This allows to still use the same path as
provided by the document portal, but display the path as exists on the
host side.

Differential Revision: https://phabricator.services.mozilla.com/D202717
2024-06-28 19:31:13 +00:00
Norisz Fay
31c6f1a617 Backed out changeset 032d22e94bd3 (bug 1882079) for causing bustages on nsLocalFileUnix.cpp CLOSED TREE 2024-06-28 18:10:16 +03:00
Jan Grulich
a2c79faafd Bug 1882079 - Display real path when choosing download directory over portal r=settings-reviewers,Gijs,emilio
Use the new API addition to Document portal allowing clients to get real
path to the exported document. This allows to still use the same path as
provided by the document portal, but display the path as exists on the
host side.

Differential Revision: https://phabricator.services.mozilla.com/D202717
2024-06-28 14:33:04 +00:00
DJ
fde850ee0c Bug 1893676 - enable tab previews by default in Nightly builds. r=mconley,tabbrowser-reviewers,dao,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D208766
2024-06-03 16:54:29 +00:00
Robin Steuber
7781a2ef8f Bug 1875502 - Create standardized update init flow r=nalexander,settings-reviewers,application-update-reviewers
A number of changes are made as part of this patch:
 - A consistent way of initializing update is created. This is automatically run when methods that need it are invoked.
 - The "post-update-processing" notification has been removed. Post update processing is now done through the new `nsIApplicationUpdateService.init` or `nsIApplicationUpdateService.internal.postUpdateProcessing`.
 - Post update processing no longer waits for the sessionstore-windows-restored observer service notification
 - Post update processing is no longer invoked only when the `update.status` file exists. It is now run unconditionally.
 - Explicitly initialize before we potentially clean up updates from the update UI.

Note that the update service stub and a few consumers of it ought to be able to wait for post update processing to be done but they currently do not. That will be done later in this patch stack when we rework the stub.

Differential Revision: https://phabricator.services.mozilla.com/D209126
2024-05-16 20:01:53 +00:00
Robin Steuber
3eb68a492d Bug 1875502 - Pre: Make AUS's readyUpdate async r=nalexander,settings-reviewers,application-update-reviewers
Aside from tests (which will be in the next patch in the stack), this specifically leaves two instances of readyUpdate unchanged - the one in BrowserContentHandler's `getArgs` and the one in UpdatePing's `_getActiveUpdate`. In both of these cases what is actually wanted is the update that was just installed. It's only because of the (fairly arbitrary) order that things are started up in that `readyUpdate` still happens to contain this value when these things run. Later in this patch stack we will add something more appropriate for this. But in the meantime, it doesn't make sense to convert functions to be asynchronous that will not ultimately need to be asynchronous.

Differential Revision: https://phabricator.services.mozilla.com/D209115
2024-05-16 20:01:49 +00:00
Robin Steuber
fe7d3691c4 Bug 1875502 - Pre: Make update cleanup functions async r=nalexander,settings-reviewers,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209111
2024-05-16 20:01:47 +00:00
Sandor Molnar
5aee31029c Backed out 23 changesets (bug 1887980, bug 1875502) for causing xpc failures @ toolkit/components/extensions/test/xpcshell/test_ext_storage_idb_data_migration.js CLOSED TREE
Backed out changeset fb53b5f266e2 (bug 1875502)
Backed out changeset 9157c611617d (bug 1875502)
Backed out changeset 924b7230a45e (bug 1875502)
Backed out changeset d83fa2a0c858 (bug 1887980)
Backed out changeset c538de825468 (bug 1875502)
Backed out changeset a6c1ee51eadb (bug 1875502)
Backed out changeset 47bc52e77563 (bug 1875502)
Backed out changeset 54d53947927a (bug 1875502)
Backed out changeset 6bc2601a69bd (bug 1875502)
Backed out changeset 917a4aed3b4b (bug 1875502)
Backed out changeset afa0353ca6a2 (bug 1875502)
Backed out changeset 42ad3c8fe41e (bug 1875502)
Backed out changeset b5f4c67a548b (bug 1875502)
Backed out changeset d47c42d117e3 (bug 1875502)
Backed out changeset a33c98ac118c (bug 1875502)
Backed out changeset b57983b426ba (bug 1875502)
Backed out changeset a013811a156b (bug 1875502)
Backed out changeset 05b53ed47055 (bug 1875502)
Backed out changeset aa0eee306544 (bug 1875502)
Backed out changeset 5736dca8c05b (bug 1875502)
Backed out changeset 6e60ddb35c98 (bug 1875502)
Backed out changeset fcb327ff8717 (bug 1875502)
Backed out changeset 1950b330d253 (bug 1875502)
2024-05-16 00:21:12 +03:00
Robin Steuber
2b97ef7e76 Bug 1875502 - Create standardized update init flow r=nalexander,settings-reviewers,application-update-reviewers
A number of changes are made as part of this patch:
 - A consistent way of initializing update is created. This is automatically run when methods that need it are invoked.
 - The "post-update-processing" notification has been removed. Post update processing is now done through the new `nsIApplicationUpdateService.init` or `nsIApplicationUpdateService.internal.postUpdateProcessing`.
 - Post update processing no longer waits for the sessionstore-windows-restored observer service notification
 - Post update processing is no longer invoked only when the `update.status` file exists. It is now run unconditionally.
 - Explicitly initialize before we potentially clean up updates from the update UI.

Note that the update service stub and a few consumers of it ought to be able to wait for post update processing to be done but they currently do not. That will be done later in this patch stack when we rework the stub.

Differential Revision: https://phabricator.services.mozilla.com/D209126
2024-05-15 17:06:17 +00:00
Robin Steuber
e58f96019c Bug 1875502 - Pre: Make AUS's readyUpdate async r=nalexander,settings-reviewers,application-update-reviewers
Aside from tests (which will be in the next patch in the stack), this specifically leaves two instances of readyUpdate unchanged - the one in BrowserContentHandler's `getArgs` and the one in UpdatePing's `_getActiveUpdate`. In both of these cases what is actually wanted is the update that was just installed. It's only because of the (fairly arbitrary) order that things are started up in that `readyUpdate` still happens to contain this value when these things run. Later in this patch stack we will add something more appropriate for this. But in the meantime, it doesn't make sense to convert functions to be asynchronous that will not ultimately need to be asynchronous.

Differential Revision: https://phabricator.services.mozilla.com/D209115
2024-05-15 17:06:13 +00:00
Robin Steuber
cbf3c59a2b Bug 1875502 - Pre: Make update cleanup functions async r=nalexander,settings-reviewers,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209111
2024-05-15 17:06:11 +00:00
Nipun Shukla
a788d363d7 Bug 1893341 - Change Firefox launch on login to use Windows StartupTask functions on MSIX r=nalexander,nrishel,settings-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D208567
2024-05-15 15:34:43 +00:00
Tamas Szentpeteri
833395877b Backed out 2 changesets (bug 1893341, bug 1895744) for causing bc failures in browser_windows_launch_on_login_msix.js. CLOSED TREE
Backed out changeset ce5384469c24 (bug 1893341)
Backed out changeset 658645fa9303 (bug 1895744)
2024-05-15 11:24:17 +03:00
Nipun Shukla
3e3ebab8c6 Bug 1893341 - Change Firefox launch on login to use Windows StartupTask functions on MSIX r=nalexander,nrishel,settings-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D208567
2024-05-15 02:54:55 +00:00
Eric Chen
4289761c82 Bug 1732784 - Discarding an update prompt now removes hamburger menu notification r=bytesized,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209723
2024-05-13 14:22:53 +00:00
Mike Conley
f680db2687 Bug 1892959 - Stub out initial section for backup management within about:preferences. r=backup-reviewers,fluent-reviewers,settings-reviewers,desktop-theme-reviewers,flod,Gijs,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D209055
2024-05-08 20:37:04 +00:00
Sandor Molnar
da02f8de36 Backed out changeset 5d2a72296044 (bug 1892959) for causing bc failures @ browser/components/preferences/tests/browser_bug731866.js CLOSED TREE 2024-05-08 19:44:06 +03:00
Mike Conley
773e48c40f Bug 1892959 - Stub out initial section for backup management within about:preferences. r=backup-reviewers,fluent-reviewers,settings-reviewers,desktop-theme-reviewers,flod,Gijs,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D209055
2024-05-08 15:21:37 +00:00
Emilio Cobos Álvarez
45b669a6a7 Bug 1036966 - Make accessibility.tabfocus default to 7 on macOS too. r=morgan,settings-reviewers,mac-reviewers,mstange
Stop supporting following the system preference, but keep macOS users
able to switch to just text controls (accessibility.tabfocus=1) in the
settings.

Change the meaning of the "Use the tab key to move focus between form
controls and links" checkbox in the Firefox settings, which was
introduced in bug 1628476 to override the system setting.

The intention, I think was that this checkbox being off resulted in
"follow the system" behavior, but that didn't quite happen due to a bug
in the preferences code (this[1] won't unset the pref, because of
this[2], which means we'll just return 0).

This patch changes it so that the checkbox instead always ignores the
system setting. There will no longer be a Firefox setting (neither in
the UI nor on about:config) that means "follow system setting".

This allows us to somewhat simplify the approach compared to the
previous patch in D196110, and keep the accessibility.tabfocus working
as the source of truth without a migration.

In the future, we can think of migrating accessibility.tabfocus to a
boolean pref, which would allow us to do the cleanups to the preferences
code that D196110 did.

[1]: https://searchfox.org/mozilla-central/rev/f1532761de0b60337e42c6c3f525288a523dabef/browser/components/preferences/main.js#2252
[2]: https://searchfox.org/mozilla-central/rev/f1532761de0b60337e42c6c3f525288a523dabef/toolkit/content/preferencesBindings.js#450,483

Differential Revision: https://phabricator.services.mozilla.com/D208602
2024-05-03 23:10:47 +00:00