Commit Graph

4495 Commits

Author SHA1 Message Date
Gijs Kruitbosch
b3fbe6b83e Bug 1954078 - addendum: scroll into the middle instead of the top (to help avoid sticky header overlap issues), r=settings-reviewers,mossop
Without this, in my testing with the previous patch, the scroll alignment on
the initial load of the settings page is incorrect, with the top of the
section being cut off. As this is the situation we care about (first load after
a browser update), fixing it seemed important.

I spent some time trying to work out why layout is changing - presumably
items above the "Browser Layout" section are either appearing or disappearing
in a way that races with the scroll. I could never reproduce on any loads other
than the first one. But then I realized the code here was overly complex and
that it would probably be nicer for items to appear in the middle of the view
rather than the top anyway. Yes, this means that sometimes the relevant header
is _still_ not _exactly_ in the middle, but that seems much less important.

Differential Revision: https://phabricator.services.mozilla.com/D241628
2025-03-17 22:24:53 +00:00
Gijs Kruitbosch
d97bc7a6c3 Bug 1954078 - add subcategory to 'Browser Layout' group, r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D241627
2025-03-17 22:24:53 +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
d4c3ae74b5 Bug 1951831 - Part 1: Create setting-control to render a config based setting r=reusable-components-reviewers,mconley,hjones
This adds an initial setting-control web component that can render a
moz-checkbox based setting. This will be controlled by a pref to reduce
any churn on the Settings page while we make changes related to Settings
Redesign 2025.

Differential Revision: https://phabricator.services.mozilla.com/D240402
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
Beth Rennie
cf27fc4c61 Bug 1942694 - Move featuregates/ fluent files to firefoxlabs/ r=fluent-reviewers,bolsson,settings-reviewers,Gijs
Feature Gates are being removed so it makes sense to move these under a
Firefox Labs component.

Differential Revision: https://phabricator.services.mozilla.com/D239671
2025-03-11 18:16:49 +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
Beth Rennie
e8677f7bfc Bug 1951311 - Remove GenAI about:preferences integration r=Mardak,settings-reviewers,firefox-ai-ml-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D240373
2025-03-05 15:04:32 +00:00
Mark Banner
878a5d5415 Bug 1951652 - Convert browser/components/search/ modules to use moz-src uris. r=search-reviewers,scunnane
Differential Revision: https://phabricator.services.mozilla.com/D240333
2025-03-05 09:24:37 +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
Moritz Beier
0b21fd50d4 Bug 1948326 - Part 1: Move addEngine dialog from preferences to search component. r=Standard8,fluent-reviewers,settings-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D238276
2025-03-04 17:18:21 +00:00
Goloman Adrian
55008ab2ea Backed out 2 changesets (bug 1948326) for causing bc failures @nsContentSecurityUtils.cpp. CLOSED TREE
Backed out changeset 172464722456 (bug 1948326)
Backed out changeset 855648c27237 (bug 1948326)
2025-03-04 15:12:56 +02:00
Moritz Beier
40e83a9163 Bug 1948326 - Part 1: Move addEngine dialog from preferences to search component. r=Standard8,fluent-reviewers,settings-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D238276
2025-03-04 12:24:49 +00:00
Connor Pearson
5a0272d3bc Bug 1915289 - Support setting suggestion URL when adding new search engine. r=search-reviewers,fluent-reviewers,Standard8,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D220743
2025-03-03 09:02:10 +00:00
Beth Rennie
4d61243e0a Bug 1937147 - Always emit experimental-pane-loaded to temporarily fix GenAI test r=mconley
browser_genai_init.js is currently failing due to expecting Firefox Labs
to always render in about:preferences. However, now that it is driven by
Nimbus, it only render if we know about any opt-in experiments. Since
the test doesn't create any, Firefox Labs doesn't render and the test
fails.

However, the test only waits for an observer notification and stubs out
that actual implementation that builds the page. If we emit this
notification when we decide not to render Firefox Labs then the test
will fail.

This will be removed in bug 1951311.

Differential Revision: https://phabricator.services.mozilla.com/D240112
2025-03-02 18:48:36 +00:00
Beth Rennie
10af3f535a Bug 1937147 - Migrate Firefox Labs to Nimbus r=mstriemer,nimbus-reviewers,chumphreys
Differential Revision: https://phabricator.services.mozilla.com/D239007
2025-03-02 17:18:22 +00:00
Alexandru Marc
7e7825a305 Backed out 2 changesets (bug 1937147, bug 1937169) for causing multiple bc failures CLOSED TREE
Backed out changeset 1aa05a8bcf6f (bug 1937147)
Backed out changeset 2c17ed500261 (bug 1937169)
2025-03-01 08:29:15 +02:00
Beth Rennie
39137ce75d Bug 1937147 - Migrate Firefox Labs to Nimbus r=mstriemer,nimbus-reviewers,chumphreys
Differential Revision: https://phabricator.services.mozilla.com/D239007
2025-03-01 05:17:44 +00:00
Tom Schuster
f81d16e706 Bug 1941365 - Use a <?csp ?> processing instructions instead of a csp attribute. r=Gijs,settings-reviewers,devtools-reviewers,places-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D238474
2025-02-26 16:13:13 +00:00
Drew Willcoxon
cf70175727 Bug 1949297 - Update the Firefox Suggest settings UI. r=settings-reviewers,reusable-components-reviewers,urlbar-reviewers,fluent-reviewers,bolsson,daisuke,mstriemer
This makes the following primary changes to the Suggest settings in the search
pane:

* Remove the infobox
* Remove the learn-more link from the dismissed-suggestions description
* Add a learn-more link to the Address Bar section's description but show it
  only when Suggest is enabled
* Add `#w_what-setting-is-opt-in` fragment to the learn-more URL for the online
  toggle so it links directly to the appropriate section

It also makes these related changes:

Remove the unnecessary `vbox` containers for the toggle switches. I had to
modify some reusable-components CSS. Note that there are two copies of the
Suggest toggle, one in the search pane and one in the privacy pane.

Rename the sponsored and nonsponsored checkbox strings so they're consistent
with the other checkbox strings: `addressbar-locbar-foo-option`

Remove test tasks that click checkboxes and make sure the appropriate prefs are
updated and vice versa. Now that the infobox is gone, there's no need for
Suggest-specific tests to worry about that.

Similarly, remove test tasks that click the learn-more links and make sure the
right page is opened. No need for Suggest-specific tests to do that either.

Differential Revision: https://phabricator.services.mozilla.com/D238847
2025-02-26 15:49:16 +00:00
Sandor Molnar
bc9b3e4b97 Backed out 2 changesets (bug 1941365) for causing CSP related dt failures. CLOSED TREE
Backed out changeset b022efa3b9e7 (bug 1941365)
Backed out changeset 90c5b60c6163 (bug 1941365)
2025-02-26 17:28:48 +02:00
Tom Schuster
07c8930ba5 Bug 1941365 - Use a <?csp ?> processing instructions instead of a csp attribute. r=Gijs,settings-reviewers,devtools-reviewers,places-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D238474
2025-02-26 14:36:42 +00:00
Gregory Pappas
2300895022 Bug 1750304 - Move isChinaRepack out of AppConstants r=settings-reviewers,home-newtab-reviewers,Gijs,pdahiya,omc-reviewers,mossop,mconley
AppConstants seems like the wrong place for this method

Differential Revision: https://phabricator.services.mozilla.com/D239276
2025-02-25 20:46:37 +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
Stanca Serban
45d787bb25 Backed out changeset 7a0277e4a8d8 (bug 1915289) for causing xpcshell failures in xpcshell/test_engine_ids.js. 2025-02-21 15:06:55 +02:00
Connor Pearson
78df501dfc Bug 1915289 - Support setting suggestion URL when adding new search engine. r=search-reviewers,fluent-reviewers,Standard8,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D220743
2025-02-21 11:44:17 +00:00
Mika Valkealahti
7ef62798f5 Bug 1948993 - removing nightly-only ifdef so vertical tabs controls in settings ride the train with 137 r=sidebar-reviewers,settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D238900
2025-02-20 10:27:46 +00:00
Drew Willcoxon
07c0872acb Bug 1948166 - Allow Suggest online settings UI to be hidden. r=daisuke,settings-reviewers,urlbar-reviewers,mossop
This replaces `quickSuggestHideSettingsUI` with `quickSuggestSettingsUi`. Like
the old variable, we can show or hide all Suggest settings UI, and now we can
also hide UI that pertains only to Suggest online. This is necessary because as
we start to roll out Suggest to more regions, online (Merino) won't be available
for them initially.

Differential Revision: https://phabricator.services.mozilla.com/D238159
2025-02-18 20:05:11 +00:00
Sarah Clements
75a1245a9a Bug 1948969 - Update browser layout section r=sidebar-reviewers,settings-reviewers,kcochrane,mossop
* Put vertical and horizontal tabs radio buttons behind a nightly pref

Differential Revision: https://phabricator.services.mozilla.com/D238647
2025-02-18 17:09:54 +00:00
Alexandru Marc
eb7e658712 Backed out changeset dbfd15553a78 (bug 1948166) for causing bc failures @ browser_search_firefoxSuggest.js CLOSED TREE 2025-02-18 19:58:24 +02:00
Drew Willcoxon
cf1c98539b Bug 1948166 - Allow Suggest online settings UI to be hidden. r=daisuke,settings-reviewers,urlbar-reviewers,mossop
This replaces `quickSuggestHideSettingsUI` with `quickSuggestSettingsUi`. Like
the old variable, we can show or hide all Suggest settings UI, and now we can
also hide UI that pertains only to Suggest online. This is necessary because as
we start to roll out Suggest to more regions, online (Merino) won't be available
for them initially.

Differential Revision: https://phabricator.services.mozilla.com/D238159
2025-02-18 16:11:30 +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
Valentin Gosu
2b6ee476f3 Bug 1900013 - Remove DoH fallback warning prefs from privacy settings UI r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D237692
2025-02-12 14:30:27 +00:00
Kai Engert
cc7d553c17 Bug 1944707 - Move pippki.js to .sys.mjs. r=keeler,fluent-reviewers,bolsson,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D131184
2025-02-12 10:54:02 +00:00
hanna.alemu
a8dfa6eec2 Bug 1945639 - Adding Solo to More from Mozilla - Add card r=settings-reviewers,desktop-theme-reviewers,omc-reviewers,Gijs,dao,pdahiya,jprickett
Differential Revision: https://phabricator.services.mozilla.com/D236377
2025-02-11 17:31:44 +00:00
Drew Willcoxon
326f3c0fe1 Bug 1946900 - Update Firefox Suggest settings UI tests so that they don't use "scenarios". r=urlbar-reviewers,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D237281
2025-02-11 02:58:52 +00:00
kernp25
cb1f1d5155 Bug 1939658 - Replace new URL usage with URL.parse/URL.canParse where possible. r=robwu,Standard8,Gijs,mtigley,pdahiya,settings-reviewers,credential-management-reviewers,devtools-reviewers,tabbrowser-reviewers,places-reviewers,omc-reviewers,migration-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,webcompat-reviewers,urlbar-reviewers,twisniewski,mossop,dao,nchevobbe,webdriver-reviewers,whimboo,issammani,mconley,nbarrett,beth
Differential Revision: https://phabricator.services.mozilla.com/D233071
2025-02-10 15:24:32 +00:00
Stanca Serban
d2bc5aedda Backed out changeset aee2b68df733 (bug 1944707) for causing mochitests failures. CLOSED TREE 2025-02-07 05:25:15 +02:00
Kai Engert
5c959ca366 Bug 1944707 - Move pippki.js to .sys.mjs. r=keeler,fluent-reviewers,bolsson,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D131184
2025-02-06 23:00:46 +00:00
Tom Schuster
6817e402c2 Bug 1944329 - Use a restrictive CSP for add-engine-dialog. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D236198
2025-02-04 13:54:17 +00:00
Tom Schuster
7d4b3ddcec Bug 1944329 - Remove inline event handler and use restrictive CSP for fxaPairDeviceDialog. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D236197
2025-02-04 13:54:17 +00:00
Tom Schuster
11c71c2f38 Bug 1944329 - Remove inline event handler and use restrictive CSP for syncChooseOptions. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D236196
2025-02-04 13:54:17 +00:00
Tom Schuster
16a6a010ba Bug 1944329 - Remove inline event handlers and use restrictive CSP for TranslationsDialog. r=settings-reviewers,translations-reviewers,Gijs,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D236103
2025-02-04 13:54:16 +00:00
Tom Schuster
f22daa0010 Bug 1944329 - Remove inline event handlers and use restrictive CSP for DoHExceptionsDialog. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D235982
2025-02-04 13:54:16 +00:00
Tom Schuster
e5fba6bb18 Bug 1944329 - Remove inline event handler and use restrictive CSP for SiteDataRemoveSelectedDialog. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D235767
2025-02-04 13:54:15 +00:00
Gijs Kruitbosch
76e33e0370 Bug 1868766 - BrowserTestUtils shouldn't default to allowInheritPrincipal set to true, r=robwu,settings-reviewers,mossop,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D236337
2025-02-04 12:24:10 +00:00
Butkovits Atila
b061588f31 Backed out changeset 2c11770a86dc (bug 1939658) for causing failures at test_JsonSchemaValidator.js. CLOSED TREE 2025-02-04 13:07:29 +02:00
kernp25
cd2f76670a Bug 1939658 - Replace new URL usage with URL.parse/URL.canParse where possible. r=robwu,Standard8,Gijs,mtigley,pdahiya,settings-reviewers,credential-management-reviewers,devtools-reviewers,tabbrowser-reviewers,places-reviewers,omc-reviewers,migration-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,webcompat-reviewers,urlbar-reviewers,twisniewski,mossop,dao,nchevobbe,webdriver-reviewers,whimboo,issammani,mconley,nbarrett,beth
Differential Revision: https://phabricator.services.mozilla.com/D233071
2025-02-04 08:25:28 +00:00
Sandor Molnar
e50ad2ea12 Backed out changeset d1f7cc44e79d (bug 1868766) for causing dt failures @ browser_json_refresh.js CLOSED TREE 2025-02-04 02:21:43 +02:00