Commit Graph

4043 Commits

Author SHA1 Message Date
Benjamin VanderSloot
be70d3519e Bug 1782091 - Create IdentityCredential state map, r=timhuang,pbz
This creates a new service that stores precisely two bits per RP, IDP, and account ID tuple:
has it been used before and is it able to be logged out.

It does so with the additional constraints of respecting private browsing's clear on last session and in-memory storage constraints and being a participant in the Clear Storage Service.

Tests are here. Coverage isn't perfect, but they cover most of the service.

Differential Revision: https://phabricator.services.mozilla.com/D162124
2022-12-02 18:41:45 +00:00
Norisz Fay
4be2f9e959 Backed out 5 changesets (bug 1782093, bug 1782094, bug 1782087, bug 1782091) for causing multiple mozStorageService related failures CLOSED TREE
Backed out changeset 4f57469716d2 (bug 1782093)
Backed out changeset a06b230dc4f2 (bug 1782087)
Backed out changeset 8031bd99e17d (bug 1782087)
Backed out changeset 50141328dfad (bug 1782094)
Backed out changeset a2030d35f960 (bug 1782091)
2022-12-01 16:42:29 +02:00
Benjamin VanderSloot
870d183e3f Bug 1782091 - Create IdentityCredential state map, r=timhuang,pbz
This creates a new service that stores precisely two bits per RP, IDP, and account ID tuple:
has it been used before and is it able to be logged out.

It does so with the additional constraints of respecting private browsing's clear on last session and in-memory storage constraints and being a participant in the Clear Storage Service.

Tests are here. Coverage isn't perfect, but they cover most of the service.

Differential Revision: https://phabricator.services.mozilla.com/D162124
2022-12-01 13:47:15 +00:00
Iulian Moraru
a416e2eee2 Backed out 5 changesets (bug 1782087, bug 1782093, bug 1782094, bug 1782091) for causing multiple failures. CLOSED TREE
Backed out changeset 11e59dcd517b (bug 1782093)
Backed out changeset 66eeced8dbed (bug 1782087)
Backed out changeset 8c7764e1ff1d (bug 1782087)
Backed out changeset 2c6f41077d9d (bug 1782094)
Backed out changeset 5f38f252060f (bug 1782091)
2022-11-30 06:16:55 +02:00
Benjamin VanderSloot
69ab70d68a Bug 1782091 - Create IdentityCredential state map, r=timhuang,pbz
This creates a new service that stores precisely two bits per RP, IDP, and account ID tuple:
has it been used before and is it able to be logged out.

It does so with the additional constraints of respecting private browsing's clear on last session and in-memory storage constraints and being a participant in the Clear Storage Service.

Tests are here. Coverage isn't perfect, but they cover most of the service.

Differential Revision: https://phabricator.services.mozilla.com/D162124
2022-11-30 02:40:58 +00:00
Mark Banner
319bc25bd8 Bug 1802855 - Convert toolkit/components/satchel JSM modules to ES modules. r=credential-management-reviewers,daleharvey,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D163201
2022-11-29 15:53:20 +00:00
Barret Rennie
d1a2566d45 Bug 1541508 - Use Services.env in browser/ r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D160136
2022-11-25 19:09:06 +00:00
Dave Townsend
9081bc48f8 Bug 1792466: Track browser windows that are in the process of being opened so we don't open multiple windows when trying to open many files/urls quickly. r=Gijs
Ideally we would use the window mediator to just find new browser windows that
are in the process of opening but while we can find the windows they just appear
as about:blank with no way to verify that they are browser windows.

This just takes the straightforward approach of forcing code that opens browser
windows to register them with the BrowserWindowTracker and provides a simple
shared API for opening browser windows that does this.

Differential Revision: https://phabricator.services.mozilla.com/D161076
2022-11-24 08:50:22 +00:00
Gijs Kruitbosch
227769d723 Bug 1801838 - update Sanitizer module build metadata, r=hpeuckmann DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D162855
2022-11-23 20:53:36 +00:00
Eemeli Aro
60ed39d7e5 Bug 1760029 - Migrate tabbrowser.properties strings used by OpenInTabsUtils.jsm to Fluent. r=dao,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D159020
2022-11-22 17:12:23 +00:00
Barret Rennie
2fdaf44760 Bug 1772180 - Port osfile.jsm usage to IOUtils in browser/modules/ r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D153697
2022-11-21 23:53:15 +00:00
Kagami Sascha Rosylight
dad1c63030 Bug 1801346 - Esmify browser/modules/Sanitizer.jsm r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D162425
2022-11-19 01:45:42 +00:00
Norisz Fay
adc45ad8af Backed out 2 changesets (bug 1801346, bug 1801338) for causing bc failures on browser_all_files_referenced.js CLOSED TREE
Backed out changeset 3f76b0740d42 (bug 1801346)
Backed out changeset ff4d1350a057 (bug 1801338)
2022-11-18 23:19:08 +02:00
Kagami Sascha Rosylight
3d4aa263e7 Bug 1801346 - Esmify browser/modules/Sanitizer.jsm r=pbz
Depends on D162422

Differential Revision: https://phabricator.services.mozilla.com/D162425
2022-11-18 20:08:47 +00:00
Mark Banner
9181f205be Bug 1791974 - Add set as default (private) search engine options to SearchTestUtils.promiseNewSearchEngine. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D161043
2022-11-18 14:30:26 +00:00
Mike Conley
bf8dfecd9c Bug 1800114 - Make BrowserUsageTelemetry work for items in the Unified Extensions panel. data-review=jhirsch, r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D162241
2022-11-17 20:39:58 +00:00
Stanca Serban
7e58f49e05 Backed out 2 changesets (bug 1792466) for causing mch fails on test_mochitest_integration.py. CLOSED TREE
Backed out changeset 36cc09178d76 (bug 1792466)
Backed out changeset 418d1ede2ae3 (bug 1792466)
2022-11-17 14:55:21 +02:00
Mark Banner
5d1820b074 Bug 1799314 - Convert consumers of testing modules to import ES modules direct (browser/). r=Gijs,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161914
2022-11-17 12:00:30 +00:00
Dave Townsend
3cff644891 Bug 1792466: Track browser windows that are in the process of being opened so we don't open multiple windows when trying to open many files/urls quickly. r=Gijs
Ideally we would use the window mediator to just find new browser windows that
are in the process of opening but while we can find the windows they just appear
as about:blank with no way to verify that they are browser windows.

This just takes the straightforward approach of forcing code that opens browser
windows to register them with the BrowserWindowTracker and provides a simple
shared API for opening browser windows that does this.

Differential Revision: https://phabricator.services.mozilla.com/D161076
2022-11-17 11:06:47 +00:00
William Durand
fb79430769 Bug 1799846 - Filter out extensions that have a browser action in the non-CUI list in the unified extensions panel. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D161686
2022-11-17 09:45:27 +00:00
Mike Conley
1e8fc28499 Bug 1799947 - Update existing tests to put browser_action's into the navbar by default. r=willdurand,extension-reviewers
We had a number of tests that assumed that when adding a browser_action without
specifying the default_area, that the button would enter the navbar. The previous
patch in this series changes that assumption when the Unified Extensions UI is
enabled.

Instead of updating all of these tests to add additional steps to move the
browser_action's out to the navbar after adding them, I've gone ahead and
updated them to default their browser_action's to the navbar instead.

Differential Revision: https://phabricator.services.mozilla.com/D161721
2022-11-16 22:12:52 +00:00
Chris H-C
6db35ad6f2 Bug 1800079 - Count PingCentre send failures r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D161851
2022-11-16 21:47:53 +00:00
Marian-Vasile Laza
bfb43d0dc3 Backed out 2 changesets (bug 1799947) for causing browserAction bc, mochitest, devtools related failures. CLOSED TREE
Backed out changeset ff58300200c4 (bug 1799947)
Backed out changeset 517df40ddcd4 (bug 1799947)
2022-11-15 22:38:24 +02:00
Mike Conley
251342f7ef Bug 1799947 - Update existing tests to put browser_action's into the navbar by default. r=willdurand,extension-reviewers
We had a number of tests that assumed that when adding a browser_action without
specifying the default_area, that the button would enter the navbar. The previous
patch in this series changes that assumption when the Unified Extensions UI is
enabled.

Instead of updating all of these tests to add additional steps to move the
browser_action's out to the navbar after adding them, I've gone ahead and
updated them to default their browser_action's to the navbar instead.

Differential Revision: https://phabricator.services.mozilla.com/D161721
2022-11-15 18:37:31 +00:00
Iulian Moraru
0ede153b75 Backed out changeset b82dc467416b (bug 1800079) for causing xpcshell failures on test_PingCentre.js. CLOSED TREE 2022-11-14 22:34:07 +02:00
Chris H-C
e9c643c1f4 Bug 1800079 - Count PingCentre send failures r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D161851
2022-11-14 19:58:31 +00:00
Tomislav Jovanovic
d93c65fc11 Bug 1798777 - Move originControls.ftl and unifiedExtensions.ftl Fluent files out of preview r=willdurand,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161714
2022-11-10 13:59:56 +00:00
Rob Lemley
fb892b5667 Bug 1797888 - Relocate AppUpdater.jsm to toolkit/mozapps/update. r=nalexander,application-update-reviewers,bytesized
Thunderbird now has an identical copy of AppUpdater.jsm in its repository. Moving it into
toolkit will make ongoing maintenance easier.

Differential Revision: https://phabricator.services.mozilla.com/D161718
2022-11-09 23:01:00 +00:00
Bobby Holley
e3e0e81624 Bug 1799529 - Tweak consent flow for site permission addons. r=rpl,flod
Differential Revision: https://phabricator.services.mozilla.com/D161520
2022-11-08 17:00:08 +00:00
William Durand
12a393c465 Bug 1797050 - Part 6 - Use browser_specific_settings instead of applications in test manifests. r=rpl,perftest-reviewers,sparky
We want to encourage extension developers to use `browser_specific_settings` instead of `applications`, which will be unsupported in Manifest Version 3+. This patch makes sure test manifests in m-c won't cause any issues in the future.

Depends on D160541

Differential Revision: https://phabricator.services.mozilla.com/D160668
2022-11-03 16:23:03 +00:00
Narcis Beleuzu
966603f22e Merge Mozilla-central to autoland. CLOSED TREE 2022-11-03 11:59:20 +02:00
Narcis Beleuzu
4735aaf05e Backed out changeset bfc380f167f3 (bug 1797806) for showing every browser window as private one (bug 1798819) 2022-11-03 11:46:14 +02:00
Marco Bonardo
6859ef34b1 Bug 1429108 - Switch FormHistory::update to promises. r=sgalich,mconley
Differential Revision: https://phabricator.services.mozilla.com/D160925
2022-11-03 09:35:39 +00:00
Ben Hearsum
a4ee2ce9ab Bug 1797806: don't do private browsing specific things when private browsing is disabled r=mhowell
At the moment, launching with `-private-window` (which we now do more easily with `private_browsing.exe` and the associated shortcut) when private browsing is disabled will open a private-looking window that is not private...which is very misleading.

This includes:
* Shortcut creation (which will end up with private shortcuts that open non-private windows)
* Setting AUMID and window/taskbar icons

The latter is handled with a guard in the two places we do it (nsWindow.cpp & BrowserContentHandler.jsm). Ideally, no caller would ever request a private window when private browsing is disabled...but I don't think that's a realistic possibility.

I also noticed we're doing some unnecessary work in the jump list builder when private browsing is disabled, so I fixed that.

I don't think this is reasonably testable in automation (ultimately, AUMID and icons are attributes of the Windows API objects, and we don't have the scaffolding to retrieve those in tests) -- but I'd be happy to be wrong about this.

Differential Revision: https://phabricator.services.mozilla.com/D160568
2022-11-02 13:05:19 +00:00
Cristian Tuns
c3ffdd5df6 Backed out 19 changesets (bug 1541508) for causing xpcshell failures on test_notHeadlessByDefault.js CLOSED TREE
Backed out changeset 08476fa2bc27 (bug 1541508)
Backed out changeset 0bf7514845db (bug 1541508)
Backed out changeset aa612a5e9ef7 (bug 1541508)
Backed out changeset 6bb9360473f7 (bug 1541508)
Backed out changeset b3d8e92f50c2 (bug 1541508)
Backed out changeset fa40dded133e (bug 1541508)
Backed out changeset 2e7db4aa8d4f (bug 1541508)
Backed out changeset 6098e2eb62ea (bug 1541508)
Backed out changeset 2c599ee639c4 (bug 1541508)
Backed out changeset 7d44f6e2644c (bug 1541508)
Backed out changeset c1279c3d674c (bug 1541508)
Backed out changeset 8bd08a62a590 (bug 1541508)
Backed out changeset 740010cb005c (bug 1541508)
Backed out changeset 0bfc7dd85c62 (bug 1541508)
Backed out changeset c4374a351356 (bug 1541508)
Backed out changeset 44ccfeca7364 (bug 1541508)
Backed out changeset e944e706a523 (bug 1541508)
Backed out changeset 2c59d66f43e4 (bug 1541508)
Backed out changeset a1896eacb6f1 (bug 1541508)
2022-11-01 22:38:52 -04:00
Barret Rennie
813aae1553 Bug 1541508 - Use Services.env in browser/ r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D160136
2022-11-02 02:08:53 +00:00
Neil Deakin
6cc6947dde Bug 1676492, show the bookmarks toolbar when a new window is opened when the preference is set to show a blank page, r=Mardak,settings-reviewers
w

Differential Revision: https://phabricator.services.mozilla.com/D155003
2022-11-01 20:43:02 +00:00
pmcmanis
cf9ae16a07 Bug 1797631 - Removing the code implemented for the new metric capture experiment ping. Reverts back to previous state. chutten r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D160423
2022-10-28 14:20:34 +00:00
Mike Kaply
ebded06c38 Bug 1769265 - Disabling updater for packages should not be Windows specific. r=bhearsum,settings-reviewers,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160069
2022-10-28 12:49:24 +00:00
William Durand
646444ad1e Bug 1797050 - Part 4 - Use browser_specific_settings instead of applications in remaining tests. r=rpl,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160060
2022-10-28 09:53:10 +00:00
Cristian Tuns
698f6bd3a6 Backed out changeset 2fd5aae2c05a (bug 1769265) for causing xpcshell failures on win 2004 CLOSED TREE 2022-10-27 13:25:48 -04:00
Mike Kaply
bb512df335 Bug 1769265 - Disabling updater for packages should not be Windows specific. r=bhearsum,settings-reviewers,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160069
2022-10-27 15:18:35 +00:00
Sandor Molnar
9fbee3a9f1 Backed out changeset 53ce60b1b515 (bug 1797050) for causing bc failures in browser/components/preferences/tests/browser_extension_controlled.js CLOSED TREE 2022-10-26 15:01:23 +03:00
William Durand
00c4a3becb Bug 1797050 - Part 4 - Use browser_specific_settings instead of applications in remaining tests. r=rpl,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160060
2022-10-26 11:15:12 +00:00
Mark Banner
17403914cb Bug 1795880 - Add an ESLint rule to enforce using static imports where possible. r=arai,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D160131
2022-10-26 09:37:46 +00:00
Sebastian Hengst
2b1cea57e1 Bug 1797454 - update meta data which links Firefox Settings UI files to their Bugzilla component. r=Gijs,preferences-reviewers DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D160335
2022-10-26 09:30:07 +00:00
Mark Banner
433fff5bca Bug 1795322 - Update toolkit modules references in browser/ code. r=mossop,Gijs,preferences-reviewers,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D160031
2022-10-26 08:06:35 +00:00
Kirk Steuber
2a86a24ac0 Bug 1727820 - Make AppUpdater accomodate API changes and remove race conditions r=bhearsum
This ended up being a nearly total rewrite of AppUpdater, but I think that the changes are worth it.
The flow is much more linear which makes it easier to follow and reason about.
The API is made much more formal by making most methods and members private.
Many potential race conditions have been removed.
Many more potential errors thrown can now be caught by the try/catch that wraps `AppUpdater.check`, causing those errors to show the "Internal Error" message rather than causing the update interface to just freeze.
Cancelling an in-progress update check works more reliably.

This patch does not change AppUpdater consumers to accomodate these changes. That will come later in the patch stack.

Differential Revision: https://phabricator.services.mozilla.com/D159298
2022-10-26 07:44:32 +00:00
Iulian Moraru
902802bebe Backed out 18 changesets (bug 1727820) for causing mochitest failures. CLOSED TREE
Backed out changeset 04a0c1cbeeb3 (bug 1727820)
Backed out changeset a6633d97ba02 (bug 1727820)
Backed out changeset dd7cd58bdf72 (bug 1727820)
Backed out changeset 06b53d536ef1 (bug 1727820)
Backed out changeset 2cbec56223e5 (bug 1727820)
Backed out changeset 7ccc00d36f16 (bug 1727820)
Backed out changeset 023595d9cb76 (bug 1727820)
Backed out changeset 3dafccf3cf28 (bug 1727820)
Backed out changeset c60b9a6a79ce (bug 1727820)
Backed out changeset 9bbb0f0f1caf (bug 1727820)
Backed out changeset 6d8cf5f78de8 (bug 1727820)
Backed out changeset 8ed9a62d4c5a (bug 1727820)
Backed out changeset d429cf593dae (bug 1727820)
Backed out changeset 67ba1beb529a (bug 1727820)
Backed out changeset 15762d60d97e (bug 1727820)
Backed out changeset 04f5ad71363a (bug 1727820)
Backed out changeset 137f1da67f91 (bug 1727820)
Backed out changeset 5b91828ded9b (bug 1727820)
2022-10-26 01:25:06 +03:00
Csoregi Natalia
5edbe31601 Backed out 12 changesets (bug 1795322) for causing multiple failures e.g. test_deletion_request_ping.py. CLOSED TREE
Backed out changeset aba25cbcda51 (bug 1795322)
Backed out changeset a4a35005ada9 (bug 1795322)
Backed out changeset 8e8d790eb0f4 (bug 1795322)
Backed out changeset db8903454bd3 (bug 1795322)
Backed out changeset 60cc71c61cad (bug 1795322)
Backed out changeset bc6a674994ad (bug 1795322)
Backed out changeset 6ac8a611f8c7 (bug 1795322)
Backed out changeset 9fb873ecfb31 (bug 1795322)
Backed out changeset c8a7a40c2a2f (bug 1795322)
Backed out changeset f2c118b6c6ce (bug 1795322)
Backed out changeset 38df43b4a70f (bug 1795322)
Backed out changeset 89aea8373411 (bug 1795322)
2022-10-25 23:47:58 +03:00