Commit Graph

791 Commits

Author SHA1 Message Date
Gijs Kruitbosch
5ebd531cc4 Bug 1831259 - prevent initialization re-entrancy for preference panes, r=mconley
This should fix the issue experienced by the reporter. It also pushes the
re-entrancy guard into the the 'init' method we define on gCategoryInits
objects, and removes the asynchronicity which was only there for fluent's sake.

Instead of blocking the insertion on fluent, which meant that for the in-page
find functionality we do N initializations and fluent passes, we make each of
the 2 consumers responsible for checking translation has completed. This means
find in page now just has 1 fluent pass, instead of N passes for N categories.
This should speed up the find in page initialization, and means initialization
of a category is now sync instead of async.

Differential Revision: https://phabricator.services.mozilla.com/D178232
2023-05-23 13:16:18 +00:00
Mark Banner
0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Tim Huang
8e73dafdc8 Bug 1830054 - Disable Email tracking protection if tracking protection is disabled on the ETP Custom UI. r=anti-tracking-reviewers,pbz
We surface the email tracking protection using the existing tracking
protection UI on the protection panel, but we don't disable email
tracking protection if tracking protection is disabled. So, users will
still see blocked trackers if tracking protection is disabled for
private windows. To provide a way to disable email tracking protection
in private windows, we also use the existing tracking protection checkbox
UI to disable the email tracking protection.

This patch implements that disabling the tracking protection via the
tracking protection checkbox also disables email tracking protection.

Differential Revision: https://phabricator.services.mozilla.com/D177520
2023-05-16 07:06:01 +00:00
Harshit Sohaney
1a67d20cfd Bug 1826340 - Removed level2 PBM from ETP strict as it is now set as true by default pref from ETP strict. r=anti-tracking-reviewers,pbz
Differential Revision: https://phabricator.services.mozilla.com/D177308
2023-05-15 13:43:02 +00:00
Valentin Gosu
46399d1990 Bug 1829905 - Add tests for DoH UI settings telemetry r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D177256
2023-05-07 20:54:33 +00:00
Greg Tatum
967c375f70 Bug 1820259 - Implement the translation language download preferences; r=nordzilla,flod,mconley
Differential Revision: https://phabricator.services.mozilla.com/D176189
2023-04-26 19:12:17 +00:00
Valentin Gosu
08f7c165d0 Bug 1826749 - DoH Settings UI tests r=Gijs,settings-reviewers
This adapts previous test cases from the connection UI to the privacy UI.

Additional improvements:
- Set the ROLLOUT_URI_Pref to empty string to avoid DoHConfig reset setting it to undefined.
- Always set network.trr.uri even if it matches the default_provider_uri if it's a user choice.
- If the value of network.trr.uri doesn't match any of the providers, then set custom_uri so
  it shows up in the input text field. This can happen when it's set by a policy.

Differential Revision: https://phabricator.services.mozilla.com/D174876
2023-04-16 19:52:18 +00:00
Ebilite Uchenna
ed5dc481d8 Bug 1824611 - Convert consumers of toolkit/components/passwordmgr to import ES modules directly. r=Standard8,credential-management-reviewers,settings-reviewers,fxview-reviewers,sclements,sgalich,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D174446
2023-04-11 19:06:24 +00:00
Valentin Gosu
203d05ce00 Bug 1610741 - Remove old DoH UI r=Gijs,settings-reviewers,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D173940
2023-04-11 09:57:28 +00:00
Cosmin Sabou
50de03a558 Backed out 7 changesets (bug 1816948, bug 1596847, bug 1610741) for causing build bustages on TRRService.cpp. CLOSED TREE
Backed out changeset a7341379f263 (bug 1610741)
Backed out changeset 5689f1b0d016 (bug 1816948)
Backed out changeset 7746c3a39e92 (bug 1596847)
Backed out changeset 8e85f984f46c (bug 1610741)
Backed out changeset b9b738076d55 (bug 1610741)
Backed out changeset 403f22e3a0a0 (bug 1610741)
Backed out changeset 8ec3cfe29b61 (bug 1610741)
2023-04-07 00:45:15 +03:00
Mark Banner
85d8bc064f Bug 1826702 - Convert PermissionTestUtils to an ES module. r=permissions-reviewers,settings-reviewers,media-playback-reviewers,pbz,padenot
Differential Revision: https://phabricator.services.mozilla.com/D174846
2023-04-06 15:07:56 +00:00
Valentin Gosu
5dc6bf3830 Bug 1610741 - Remove old DoH UI r=Gijs,settings-reviewers,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D173940
2023-04-06 12:57:50 +00:00
Cristian Tuns
87c1f7746b Backed out 7 changesets (bug 1610741, bug 1816948, bug 1596847) for causing xpcshell failures in test_dooh.js CLOSED TREE
Backed out changeset 8596bc4554df (bug 1610741)
Backed out changeset 1a9baaa49d3d (bug 1816948)
Backed out changeset d72b9cdfbb1e (bug 1596847)
Backed out changeset e2e564f584b3 (bug 1610741)
Backed out changeset e9e331ccc7ab (bug 1610741)
Backed out changeset 44218f91e7cf (bug 1610741)
Backed out changeset 6f296319409a (bug 1610741)
2023-04-05 15:14:36 -04:00
Valentin Gosu
aa6cc0f7c5 Bug 1610741 - Remove old DoH UI r=Gijs,settings-reviewers,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D173940
2023-04-05 17:13:52 +00:00
CanadaHonk
de0de3489c Bug 1801379 - Migrate Sinon.jsm to an ES module r=extension-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,fxview-reviewers,devtools-reviewers,Standard8,nchevobbe,sclements,dimi,mconley,bytesized,robwu
Migrated `testing/modules/Sinon.sys.mjs` to an ES module.

`testing` should now be 100% ESM 🎉

Differential Revision: https://phabricator.services.mozilla.com/D173643
2023-03-29 07:34:10 +00:00
Karl Tomlinson
897bfad9bf Bug 1804352 display current permission value in menulist even when not in available states r=pbz
For speaker permissions, this has the effect of presenting a menulist instead
of a label when a device-specific ALLOW permission is set, providing the
option to the user of changing this to a BLOCK.

A global permission for speaker selection is not currently supported but if it
were implemented and set to BLOCK, then a menulist would be shown for all
sites with permissions set.  It would include at least PROMPT and BLOCK
menuitems.  This change would mean that the menulist selected item can display
"Allowed" when a device-specific ALLOW permission has already been granted
through a selectAudioOutput() prompt.

_permissionsToChange is modified in _removePermissionFromList() so that
permissions changed then deleted are not added by onApplyChanges().

Differential Revision: https://phabricator.services.mozilla.com/D172085
2023-03-21 21:57:11 +00:00
Karl Tomlinson
d7364e01ee Bug 1804352 add support for removing double-keyed permissions r=pbz
as are used to allow speaker devices from speaker selection.

Differential Revision: https://phabricator.services.mozilla.com/D170305
2023-03-16 00:32:36 +00:00
Karl Tomlinson
61a43fc8cb Bug 1804352 add blocking speaker selection permissions to about:preferences#privacy r=fluent-reviewers,desktop-theme-reviewers,flod,dao,pbz
This patch adds support only for BLOCK permissions because ALLOW permissions
are double-keyed and will be included via a subsequent patch.

Support for a global BLOCK permission is not added here because of
inconsistencies in the way this interacts with device-specific ALLOW
permissions.

Differential Revision: https://phabricator.services.mozilla.com/D170303
2023-03-15 22:07:23 +00:00
Mike Conley
5c075e9201 Bug 1820655 - Add a new section to about:preferences to launch the migration wizard. r=jhirsch,fluent-reviewers,flod DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D172324
2023-03-15 00:35:16 +00:00
Butkovits Atila
c0d8e7c741 Backed out changeset 5c4677b1ea47 (bug 1820655) for causing failures at browser_open_migration_wizard.js. CLOSED TREE 2023-03-14 05:20:08 +02:00
Mike Conley
fdd13dfa60 Bug 1820655 - Add a new section to about:preferences to launch the migration wizard. r=jhirsch,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D172324
2023-03-14 01:59:01 +00:00
Butkovits Atila
e0499363a2 Backed out changeset 21ac89d8a165 (bug 1820655) for causing Gecko Decision failure. CLOSED TREE 2023-03-14 03:20:05 +02:00
Mike Conley
d853edb9ce Bug 1820655 - Add a new section to about:preferences to launch the migration wizard. r=jhirsch,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D172324
2023-03-14 01:06:42 +00:00
Masatoshi Kimura
5287726a01 Bug 1821796 - Add the handle internally option for internal types even if the type is not pre-listed. r=Gijs,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D172322
2023-03-13 19:08:50 +00:00
Tim Huang
7762936ddd Bug 1818292 - Add email tracking protection to ETP strict. r=pbz,mconley
Differential Revision: https://phabricator.services.mozilla.com/D170759
2023-03-02 21:42:48 +00:00
Dão Gottwald
8118df361c Bug 1817401 - Implement "Dismissed suggestions" handling in Firefox Suggest preferences section. r=adw,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D170671
2023-03-01 09:58:25 +00:00
Francesco Lodolo (:flod)
0d481f7a52 Bug 1819028 - Display "language (region)" instead of "language" when there is a perfect match in accept-languages, r=Gijs,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D171063
2023-02-27 13:08:03 +00:00
Paul Zuehlcke
a14bbc2f96 Bug 1816896 - Enable cookie banner handling UI in Nightly and early Beta. r=jhirsch,settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D169990
2023-02-27 12:50:48 +00:00
Mark Banner
4cff9fea92 Bug 1816939 - Use search engine ids rather than objects for updating the list in preferences. r=settings-reviewers,Gijs
Comparing objects may be unreliable, using search engine ids are guarenteed to be unique.

Differential Revision: https://phabricator.services.mozilla.com/D170209
2023-02-20 13:36:41 +00:00
DJ
1f0a93691a Bug 1817201 - sync PBM service.mode pref with base service.mode pref on settings page. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D170113
2023-02-17 18:59:35 +00:00
Mark Banner
81e5d26ac3 Bug 1817183 - Update consumers of services/fxaccounts to import ES modules directly. r=markh,settings-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D170062
2023-02-17 16:34:43 +00:00
Cristian Tuns
b9ee007450 Backed out 6 changesets (bug 1816934, bug 1817182, bug 1817179, bug 1817183) for causing dt failures in browser_jsterm_autocomplete_null.js CLOSED TREE
Backed out changeset 17d4c013ed92 (bug 1817183)
Backed out changeset cfed8d9c23f3 (bug 1817183)
Backed out changeset 62fe2f589efe (bug 1817182)
Backed out changeset 557bd773fb85 (bug 1817179)
Backed out changeset 7f8a7865868b (bug 1816934)
Backed out changeset d6c1d4c0d2a0 (bug 1816934)
2023-02-17 10:51:33 -05:00
Mark Banner
c8baa7a866 Bug 1817183 - Update consumers of services/fxaccounts to import ES modules directly. r=markh,settings-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D170062
2023-02-17 09:01:45 +00:00
Molly Howell
6bf67f2247 Bug 1809360 - Have this test check against the correct scroll position. r=settings-reviewers,Gijs
The test is checking whether the preferences page has ever been scrolled at
all for any reason, which means the scroll that happens when the setting under
test is focused is causing the failure. But we're really only interested in
what happens when the setting is toggled, not focused, so we should save the
scroll position right before the toggle happens and compare the final position
against that, not just always against zero.

Differential Revision: https://phabricator.services.mozilla.com/D170087
2023-02-16 18:30:53 +00:00
Bilal
ce8d36b2f9 Bug 1811922 - ESMified browser/components/doh files. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D169872
2023-02-15 22:29:33 +00:00
Joel Maher
417438b9cf Bug 1816191 - Skip tests in order to keep win7 running @ azure. r=gbrown,necko-reviewers,settings-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,nalexander,sgalich,alwu
Differential Revision: https://phabricator.services.mozilla.com/D169523
2023-02-14 23:44:12 +00:00
Jared Hirsch
16a4cf443a Bug 1816138 - Disable cookie banner detect only mode in about:preferences. r=settings-reviewers,mconley
It turns out the detect-only pref must be unset for cookie banner
handling to actually work, and while the onboarding doorhanger does
disable this pref, the about:preferences checkbox does not. This patch
corrects the issue, disabling the detect-only pref when the checkbox is
checked, so that users who discover the feature in about:preferences can
successfully enable it.

Differential Revision: https://phabricator.services.mozilla.com/D169645
2023-02-13 20:59:34 +00:00
Mark Banner
18898557b3 Bug 1814931 - Convert services/sync imports to direct ES imports. r=markh,settings-reviewers,credential-management-reviewers,mconley,dimi
Differential Revision: https://phabricator.services.mozilla.com/D168837
2023-02-13 11:44:29 +00:00
Joel Maher
ccac6863a1 Bug 1816203 - fix skip-if conditions for browser_siteData2.js. r=Gijs,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D169535
2023-02-11 13:12:27 +00:00
Hanna Jones
877b3e6849 Bug 1799471 - Part 2: replace toggles in about:preferences with moz-toggle r=tgiles,mconley
This patch changes the Firefox Suggest preference toggles to use the new `moz-toggle` element.

For testing purposes, set `browser.urlbar.quicksuggest.enabled` to `true` to make the toggles visible in `about:preferences#privacy`.

Differential Revision: https://phabricator.services.mozilla.com/D167881
2023-02-08 00:09:07 +00:00
Gijs Kruitbosch
b965c4660a Bug 1795255 - autofix duplicate imports in tests under browser/, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D166179
2023-01-31 11:48:41 +00:00
Mark Banner
9f5558b211 Bug 1812977 - Remove now unnecessary import-globals-from statements in browser. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D168070
2023-01-30 19:33:37 +00:00
Jared Hirsch
e1c9146780 Bug 1812819 - Update cookie banner preferences checkbox to toggle reject-only mode. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D168285
2023-01-30 18:51:58 +00:00
Tim Giles
72d63afdb2 Bug 1801929 - Replace 'Total Cookie Protection' learn more link with support-link. r=pbz,mconley,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D167420
2023-01-25 18:56:13 +00:00
Jared Hirsch
3db2a1803b Bug 1774882 - Avoid the term 'third-party cookies' in Enhanced Tracking Protection preferences. r=settings-reviewers,fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167094
2023-01-20 16:00:11 +00:00
Paul Zuehlcke
9226ddd41f Bug 1809700 - Refactor tests for detect-only pref. r=timhuang,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D166832
2023-01-20 12:22:10 +00:00
Gijs Kruitbosch
5a903703c5 Bug 1810995 - update BrowserTestUtils.loadURI consumers to use loadURIString (automated) - browser - r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D167153
2023-01-19 20:16:42 +00:00
Marian-Vasile Laza
70fd2af8ea Backed out 2 changesets (bug 1809700) for causing automation/mochitest/marionette failures. CLOSED TREE
Backed out changeset 7d58f9afe4b7 (bug 1809700)
Backed out changeset 8a37c048a169 (bug 1809700)
2023-01-19 21:33:08 +02:00
Paul Zuehlcke
19eaf572de Bug 1809700 - Refactor tests for detect-only pref. r=timhuang,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D166832
2023-01-19 17:12:00 +00:00