Commit Graph

4583 Commits

Author SHA1 Message Date
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
Mark Banner
8a3c99b9cb Bug 1966662 - Migrate most of toolkit/components/search to moz-src uris. r=search-reviewers,scunnane
Differential Revision: https://phabricator.services.mozilla.com/D249563
2025-05-17 17:38:49 +00:00
Mark Striemer
afccc6a89c Bug 1964824 - Part 3: Nesting for config-based settings r=reusable-components-reviewers,settings-reviewers,hjones,mconley
Differential Revision: https://phabricator.services.mozilla.com/D249634
2025-05-17 17:08:01 +00:00
Mark Striemer
154345f5b2 Bug 1964824 - Part 2: Remove XUL config-based settings r=reusable-components-reviewers,settings-reviewers,mconley,hjones
Differential Revision: https://phabricator.services.mozilla.com/D249633
2025-05-17 17:07:58 +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
Nina Pypchenko
8ab839a3ca Bug 1956399 - Add the “Sponsors help support our mission” message with the fox in the Settings panel after the "Recommended stories" section r=home-newtab-reviewers,fluent-reviewers,bolsson,settings-reviewers,desktop-theme-reviewers,reemhamz,mconley,sfoster
- Refactored the code for `about:settings#home` page to rely more on the page template and less on dynamic node injection.

- Added the mission message between settings blocks for Top stories and Recent activity.

- Removed code that switched to/from an obsolete row number preference for Top stories.

- Updated tests.

Differential Revision: https://phabricator.services.mozilla.com/D243042
2025-05-14 04:17:30 +00:00
Gijs Kruitbosch
03f21bee51 Bug 1958948 - fix category selection error in settings for CSS injection, r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D249005
2025-05-13 12:33:50 +00:00
Cristian Tuns
321046281b Revert "Bug 1956399 - Add the 'Sponsors help support our mission' message with the fox in the Settings panel after the "Recommended stories" section r=home-newtab-reviewers,fluent-reviewers,bolsson,settings-reviewers,desktop-theme-reviewers,reemhamz,mconley,sfoster" for causing bc failures
This reverts commit c1e837bd01.
2025-05-13 03:42:23 +00:00
Nina Pypchenko
c1e837bd01 Bug 1956399 - Add the “Sponsors help support our mission” message with the fox in the Settings panel after the "Recommended stories" section r=home-newtab-reviewers,fluent-reviewers,bolsson,settings-reviewers,desktop-theme-reviewers,reemhamz,mconley,sfoster
- Refactored the code for `about:settings#home` page to rely more on the page template and less on dynamic node injection.

- Added the mission message between settings blocks for Top stories and Recent activity.

- Removed code that switched to/from an obsolete row number preference for Top stories.

- Updated tests.

Differential Revision: https://phabricator.services.mozilla.com/D243042
2025-05-13 01:49:42 +00:00
Mark Striemer
6c85e64f09 Bug 1963938 - Disable config-based prefs when locked r=reusable-components-reviewers,settings-reviewers,tgiles
Differential Revision: https://phabricator.services.mozilla.com/D247503
2025-05-13 01:48:52 +00:00
Moritz Beier
b8324c0e82 Bug 1965438 - Correctly restore search engines at end of test. r=search-reviewers,scunnane
Differential Revision: https://phabricator.services.mozilla.com/D248637
2025-05-12 17:09:54 +00:00
Francesco Lodolo
e2b6a89c7f Bug 1965661 - Use correct IDs when generating blocklist names in settings, r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D248704
2025-05-12 12:01:51 +00:00
Moritz Beier
0516176778 Bug 1661664 - Part 1: Add changeIcon method to UserSearchEngine. r=Standard8,settings-reviewers,mossop
Also separates out _setIcon to allow re-using the resize functionality, and simplifies the edit engine dialog to use UserSearchEngine directly.

Differential Revision: https://phabricator.services.mozilla.com/D247571
2025-05-12 09:13:40 +00:00
Beth Rennie
5b712aad1b Bug 1959486 - Use NimbusTestUtils.assert.storeIsEmpty and NimbusTestUtils.removeStore everywhere r=nimbus-reviewers,settings-reviewers,relud
Differential Revision: https://phabricator.services.mozilla.com/D248563
2025-05-10 18:41:33 +00:00
Cristian Tuns
dbf6b952be Revert "Bug 1959486 - Use NimbusTestUtils.assert.storeIsEmpty and NimbusTestUtils.removeStore everywhere r=nimbus-reviewers,settings-reviewers,relud" for causing bc failures in browser_windows_launch_on_login.js
This reverts commit 47c7b39975.
2025-05-10 14:52:22 +00:00
Beth Rennie
47c7b39975 Bug 1959486 - Use NimbusTestUtils.assert.storeIsEmpty and NimbusTestUtils.removeStore everywhere r=nimbus-reviewers,settings-reviewers,relud
Differential Revision: https://phabricator.services.mozilla.com/D248563
2025-05-10 13:15:19 +00:00
Alexandru Marc
2c4e93088b Revert "Bug 1959486 - Use NimbusTestUtils.assert.storeIsEmpty and NimbusTestUtils.removeStore everywhere r=nimbus-reviewers,settings-reviewers,relud" for causing bc failures @ browser_about_settings.js
This reverts commit bfd3073ff0.
2025-05-10 03:19:48 +00:00
Beth Rennie
bfd3073ff0 Bug 1959486 - Use NimbusTestUtils.assert.storeIsEmpty and NimbusTestUtils.removeStore everywhere r=nimbus-reviewers,settings-reviewers,relud
Differential Revision: https://phabricator.services.mozilla.com/D248563
2025-05-10 02:14:28 +00:00
Beth Rennie
640c25685e Bug 1950237 - Use ExperimentAPI.manager in browser/components/preferences r=settings-reviewers,Gijs
As part of this bug, the global ExperimentManager will no longer be
exported from ExperimentManager.sys.mjs and will only be available as a
property on the ExperimentAPI.

Differential Revision: https://phabricator.services.mozilla.com/D248316
2025-05-09 22:16:00 +00:00
Alexandru Marc
ccce73c96b Revert "Bug 1960237 - Only offer "Add Search Engine" for forms with an explicit action attribute. r=search-reviewers,scunnane" for causing bc failures @ browser_search_userEngineDialog.js
This reverts commit 0a65c6f1cb.

Revert "Bug 1661664 - Part 3: Add tests for UserSearchEngine favicons. r=search-reviewers,Standard8,settings-reviewers,mossop"

This reverts commit f093133692.

Revert "Bug 1661664 - Part 2: Include favicon when adding custom search engine. r=Standard8"

This reverts commit 8a4a96e8b8.

Revert "Bug 1661664 - Part 1: Add changeIcon method to UserSearchEngine. r=Standard8,settings-reviewers,mossop"

This reverts commit 15a19beb80.
2025-05-09 22:07:01 +00:00
lougeniac64
1ae3516220 Bug 1964832 - Added choose what to sync telemetry r=markh,settings-reviewers,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D248499
2025-05-09 20:37:01 +00:00
Moritz Beier
f093133692 Bug 1661664 - Part 3: Add tests for UserSearchEngine favicons. r=search-reviewers,Standard8,settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D247575
2025-05-09 20:33:47 +00:00
Moritz Beier
15a19beb80 Bug 1661664 - Part 1: Add changeIcon method to UserSearchEngine. r=Standard8,settings-reviewers,mossop
Also separates out _setIcon to allow re-using the resize functionality, and simplifies the edit engine dialog to use UserSearchEngine directly.

Differential Revision: https://phabricator.services.mozilla.com/D247571
2025-05-09 20:33:40 +00:00
agoloman
0bd8d7ae2e Revert "Bug 1960237 - for causing xpc failures @test_userEngine.js.
This reverts commit 69c71c02b7.

Revert "Bug 1661664 - Part 3: Add tests for UserSearchEngine favicons. r=search-reviewers,Standard8,settings-reviewers,mossop"

This reverts commit ae924c0d7f.

Revert "Bug 1661664 - Part 2: Include favicon when adding custom search engine. r=Standard8"

This reverts commit 9ba1a99736.

Revert "Bug 1661664 - Part 1: Add changeIcon method to UserSearchEngine. r=Standard8,settings-reviewers,mossop"

This reverts commit 0077af7276.
2025-05-09 16:23:44 +00:00
Moritz Beier
ae924c0d7f Bug 1661664 - Part 3: Add tests for UserSearchEngine favicons. r=search-reviewers,Standard8,settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D247575
2025-05-09 15:41:39 +00:00
Moritz Beier
0077af7276 Bug 1661664 - Part 1: Add changeIcon method to UserSearchEngine. r=Standard8,settings-reviewers,mossop
Also separates out _setIcon to allow re-using the resize functionality, and simplifies the edit engine dialog to use UserSearchEngine directly.

Differential Revision: https://phabricator.services.mozilla.com/D247571
2025-05-09 15:41:32 +00:00
Beth Rennie
bf8ed6eea0 Bug 1950237 - Register studies and telemetry pref observers on ExperimentAPI r=nimbus-reviewers,settings-reviewers,relud
Previously the observers for the `app.shield.optoutstudies.enabled` and
`datareporting.healthreport.uploadEnabled` prefs lived on the global
`ExperimentManager`, which complicated our unit tests because (a)
importing `ExperimentManager.sys.mjs` has side effects of initializing
the global ExperimentManager with those listeners and (b) we have the
global and per-test ExperimentManagers in our unit tests, which causes
notifications to fire twice. We've worked around this in the past by
manually removing the pref listeners in some cases, but its simpler to
have them live on the ExperimentAPI itself. That way it can be
controlled by `ExperimentAPI.init()` (and
`ExperimentAPI._resetForTests()` in tests).

Differential Revision: https://phabricator.services.mozilla.com/D248068
2025-05-09 14:44:46 +00:00
agoloman
7aae1688fd Revert "Bug 1950237 - Register studies and telemetry pref observers on ExperimentAPI r=nimbus-reviewers,settings-reviewers,relud" for causing bc failures @browser_experimental_features.js.
This reverts commit c88691c2a7.
2025-05-09 13:08:40 +00:00
Beth Rennie
c88691c2a7 Bug 1950237 - Register studies and telemetry pref observers on ExperimentAPI r=nimbus-reviewers,settings-reviewers,relud
Previously the observers for the `app.shield.optoutstudies.enabled` and
`datareporting.healthreport.uploadEnabled` prefs lived on the global
`ExperimentManager`, which complicated our unit tests because (a)
importing `ExperimentManager.sys.mjs` has side effects of initializing
the global ExperimentManager with those listeners and (b) we have the
global and per-test ExperimentManagers in our unit tests, which causes
notifications to fire twice. We've worked around this in the past by
manually removing the pref listeners in some cases, but its simpler to
have them live on the ExperimentAPI itself. That way it can be
controlled by `ExperimentAPI.init()` (and
`ExperimentAPI._resetForTests()` in tests).

Differential Revision: https://phabricator.services.mozilla.com/D248068
2025-05-09 12:14:45 +00:00
Moritz Beier
ccca5d5c7d Bug 1954705 - Confirm deletion of user and open search engines. r=search-reviewers,fluent-reviewers,urlbar-reviewers,bolsson,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D245412
2025-05-09 08:44:02 +00:00
Sammy Khamis
c3f952f37f Bug 1964133: Sync after CWTS updates r=markh,settings-reviewers,sync-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D247647
2025-05-08 14:56:52 +00:00
Moritz Beier
c6d61e91c2 Bug 1963285 - Add advanced section to add engine dialog. r=Standard8,fluent-reviewers,urlbar-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D247097
2025-05-08 10:24:24 +00:00
Moritz Beier
167482d903 Bug 1759879 - Add error messages to add engine dialog. r=search-reviewers,fluent-reviewers,settings-reviewers,desktop-theme-reviewers,urlbar-reviewers,bolsson,mossop,Standard8,dao
Differential Revision: https://phabricator.services.mozilla.com/D245411
2025-05-07 12:44:52 +00:00
Alexandru Marc
e945f6815c Revert "Bug 1963285 - Add advanced section to add engine dialog. r=Standard8,fluent-reviewers,urlbar-reviewers,bolsson" for causing failures @ browser_search_userEngineDialog.js
This reverts commit 5274267c99.

This reverts commit 19dcb50ab9.
2025-05-07 11:41:18 +00:00
Moritz Beier
5274267c99 Bug 1963285 - Add advanced section to add engine dialog. r=Standard8,fluent-reviewers,urlbar-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D247097
2025-05-07 10:42:19 +00:00
Moritz Beier
19dcb50ab9 Bug 1759879 - Add error messages to add engine dialog. r=search-reviewers,fluent-reviewers,settings-reviewers,desktop-theme-reviewers,urlbar-reviewers,bolsson,mossop,Standard8,dao
Differential Revision: https://phabricator.services.mozilla.com/D245411
2025-05-07 10:42:16 +00:00
Daniel Thorn
9f1b225061 Bug 1959483 - Port tests from ExperimentFakes and ExperimentTestUtils to NimbusTestUtils in browser/components/preferences r=nimbus-reviewers,settings-reviewers,beth,mconley
Differential Revision: https://phabricator.services.mozilla.com/D247009
2025-05-06 01:53:49 +00:00
Beth Rennie
d41ba31604 Bug 1961392 - Don't show the experimental pane just to hide it if studies are disabled r=mstriemer,settings-reviewers
Previously if we opened about:preferences for the first time after
disabling studies or telemetry, the "Firefox Labs" entry would appear
briefly and disappear. Now we don't show the element initially if we
would have to hide it soon after because studies or telemetry are
disabled.

Differential Revision: https://phabricator.services.mozilla.com/D246999
2025-04-29 13:19:13 +00:00
Simon Friedberger
49d9f09002 Bug 1962354: Change test to use https: application handler r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D246575
2025-04-25 07:10:39 +00:00
Drew Willcoxon
c6aa8fdd9f Bug 1961881 - Hook up desktop to the dismissal API in the Suggest Rust component. r=daisuke,settings-reviewers
This hooks up desktop to the dismissal API in the Rust component [1] and removes
`BlockedSuggestions`.

The Rust dismissal API has two ways to dismiss a suggestion: by `Suggestion`
object and by dismissal key. We use the first one for Rust suggestions and the
second one for other suggestions, like Merino. A dismissal key is just an
arbitrary opaque string token stored in the dismissed-suggestions table in the
Rust component. It's up to consumers (like desktop) to use appropriate dismissal
keys for their non-Rust suggestions.

In order to retain the user's blocked digests that desktop has always recorded
in the `quicksuggest.blockedDigests` pref, I took advantage of dismissal keys by
migrating each digest to a dismissal key in the Rust component.

[1] See bug 1961412 and https://github.com/mozilla/application-services/pull/6714

Differential Revision: https://phabricator.services.mozilla.com/D246369
2025-04-25 00:26:51 +00:00
Gijs Kruitbosch
50daf5cb15 Bug 1959298 - improve sync entrypoint handling, r=markh
Differential Revision: https://phabricator.services.mozilla.com/D245039
2025-04-24 22:56:11 +00:00
Mark Striemer
daa5d1a043 Bug 1953327 - Part 3: Tests for setting-control r=reusable-components-reviewers,settings-reviewers,mossop,hjones
Differential Revision: https://phabricator.services.mozilla.com/D245481
2025-04-24 21:17:29 +00:00
Mark Striemer
2a25593516 Bug 1953327 - Part 2: Tests for setting-group r=reusable-components-reviewers,settings-reviewers,mossop,hjones,frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D245480
2025-04-24 21:17:29 +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
Beth Rennie
41576d6989 Bug 1874939 - Support co-enrolling features r=relud,nimbus-reviewers,chumphreys,settings-reviewers,mconley
Nimbus now supports co-enrollment! Co-enrolling features cannot use most
of the traditional APIs, like
`ExperimentAPI.get{Experiment,Rollout,Enrollment}MetaData` or
`ExperimentFeature.getAllVariables` / `ExperimentFeature.getVariable`.
Instead, these features must use new co-enrollment aware APIs:

- `ExperimentAPI.getAllEnrollmentMetadata`, which returns the metadata
  for all active enrollments for a given feature;
- `ExperimentAPI.getAllEnrollments`, which returns the same metadata, as
  well as the feature values for all active enrollments for a given
  feature;

`ExperimentFeature.recordExposurEvent` will work for co-enrolling
features, but callers must always provide a slug when calling so that we
know what enrollment caused the exposure.

In that vein, `ExperimentAPI.get{Experiment,Rollout,Enrollment}MetaData`
can still be called with the slug for a feature for a co-enrolling
experiment.

Differential Revision: https://phabricator.services.mozilla.com/D245986
2025-04-23 17:01:49 +00:00
Valentin Gosu
5b38231344 Bug 1828354 - Fix Intermittent browser_privacy_dnsoverhttps.js r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D245268
2025-04-22 17:59:46 +00:00
Valentin Gosu
b135ff02bf Bug 1955579 - move browser/components/doh to toolkit/components/doh to be used on Android r=necko-reviewers,settings-reviewers,firefox-desktop-core-reviewers ,Gijs,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D242531
2025-04-22 17:59:45 +00:00
Stephanie Cunnane
8a13f6721b Bug 1961038 - Consistently use "changeReason" rather than "changeSource" in code related to search.engine.default.changed Glean event telemetry. r=search-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D245820
2025-04-17 21:19:43 +00:00