Граф коммитов

10554 Коммитов

Автор SHA1 Сообщение Дата
Rob Wu a181c16953 Bug 1789751 - Remove localhost from MV3 CSP r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D156758
2022-09-10 23:49:49 +00:00
Rob Wu 9e70d31e32 Bug 1766881 - Drop object-src requirement from extension CSP r=mixedpuppy
object-src used to be required because it controls plugins, and we did
not want to load unsafe sources as plugins. With NPAPI plugin support
having been dropped a long time ago, this reason no longer exist.
The requirement for "secure" object-src CSP directive meant that
extensions had to specify a boilerplate object-src if they wanted to
modify script-src.

This patch removes the object-src requirement from extension CSP,
which simplifies the usage and learning curve of CSP usage in
extensions.

With this change, extensions can now load "unsafe" (remote) content
via `<embed>` and `<object>` tags. This relaxation does not reduce
the security because this was already possible with `<iframe>` tags.

Differential Revision: https://phabricator.services.mozilla.com/D156747
2022-09-10 23:49:48 +00:00
Butkovits Atila 5e7d3236f7 Backed out changeset 9fd7ef3c9d43 (bug 1777207) for causing failures at browser_save_filenames.js. CLOSED TREE 2022-09-08 21:56:54 +03:00
Neil Deakin be5cbf2741 Bug 1777207, don't replace extensions of executables when saving on Windows any more; the filename has already been validated and it can cause the filename a user chose to be incorrect, r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D156729
2022-09-08 16:37:00 +00:00
Mark Banner c9b0aa74c1 Bug 1789254 - Migrate enterprisepolicies consumers to use ESM imports directly. r=mkaply,necko-reviewers,application-update-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D156464
2022-09-08 14:40:07 +00:00
Norisz Fay 1bb0960ae2 Backed out 3 changesets (bug 1789254) for causing bc failures on browser_xpcom_graph_wait.js CLOSED TREE
Backed out changeset bea1e1ba4a14 (bug 1789254)
Backed out changeset 4086aaa5f3d0 (bug 1789254)
Backed out changeset 131cac1d1146 (bug 1789254)
2022-09-08 17:14:00 +03:00
Mark Banner 5dca28c108 Bug 1789254 - Migrate enterprisepolicies consumers to use ESM imports directly. r=mkaply,necko-reviewers,application-update-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D156464
2022-09-08 12:43:32 +00:00
Marian-Vasile Laza 09e004e7af Backed out changeset 715213e00a5b (bug 1775522) for causing xpcshell failures on marStageSuccessCompleteSvc.js. CLOSED TREE 2022-09-06 21:30:17 +03:00
Max Christian Pohle 532b941c71 Bug 1775522 - Add timestamps to updater logs with test adaption, r=bytesized,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156311
2022-09-06 17:13:59 +00:00
Itiel 342a3bda43 Bug 1787651 - Update the accent-color var to use the Proton colors, and use it for the Update menuitem dot in about:addons r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D155794
2022-09-06 10:56:20 +00:00
Nick Alexander f7cb13e745 Bug 1781929 - Part 4: Pass through or launch Firefox from notification server. r=nrishel
When the notification server callback is executed by the Windows
notification system, it invokes Firefox with additional command line
parameters, most importantly the Windows-specific notification
"Windows tag".

If no appropriate Firefox is running, the command line will be
processed, the provided Windows tag will be inspected (and seen to not
be registered with this running Firefox instance) and a "launch URL"
stored as part of the Windows notification itself opened (if one is
provided).

If an appropriate Firefox is running, the remoting protocol will
forward this command line to the running instance.  If the instance
recognizes the provided `--notification-windowsTag`, the command line
will be ignored.  When the notification server exits, Windows will
fallback to the Windows 8.1 style notification callbacks registered
for this Windows tag and the existing (non notification server)
behaviour will occur.

In fact, the server therefore waits for a Windows tag-specific system
event to be signalled by the invoked Firefox (or a sibling process).
If we were to return `S_OK` from the notification server immediately,
and a running Firefox process would handle the notification via
Windows 8.1-style notification callbacks, then Windows would fall back
to those callbacks.  The invoked callbacks unregister themselves upon
completion, often before the launched Firefox has an opportunity to
process the command line.  By waiting for this system event, we allow
the invoked Firefox to process the command line while its own
notification callbacks are registered and therefore recognize that its
callbacks will handle the notification.

Differential Revision: https://phabricator.services.mozilla.com/D154468
2022-09-03 22:49:02 +00:00
Nick Alexander 50265c7a9a Bug 1781929 - Part 2: Include executable as first argument; log to Windows Event Log. r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D153659
2022-09-03 22:49:01 +00:00
Marian-Vasile Laza 08d282ce78 Backed out 5 changesets (bug 1781929, bug 1784367) for causing bc test failures. CLOSED TREE
Backed out changeset 34003f6f7b27 (bug 1781929)
Backed out changeset 8e6fe1c18e8d (bug 1781929)
Backed out changeset e50432e37751 (bug 1781929)
Backed out changeset abf6eff708d8 (bug 1781929)
Backed out changeset 15fec49b7587 (bug 1784367)
2022-09-03 02:26:04 +03:00
Nick Alexander 7ad3c38071 Bug 1781929 - Part 4: Pass through or launch Firefox from notification server. r=nrishel
When the notification server callback is executed by the Windows
notification system, it invokes Firefox with additional command line
parameters, most importantly the Windows-specific notification
"Windows tag".

If no appropriate Firefox is running, the command line will be
processed, the provided Windows tag will be inspected (and seen to not
be registered with this running Firefox instance) and a "launch URL"
stored as part of the Windows notification itself opened (if one is
provided).

If an appropriate Firefox is running, the remoting protocol will
forward this command line to the running instance.  If the instance
recognizes the provided `--notification-windowsTag`, the command line
will be ignored.  When the notification server exits, Windows will
fallback to the Windows 8.1 style notification callbacks registered
for this Windows tag and the existing (non notification server)
behaviour will occur.

In fact, the server therefore waits for a Windows tag-specific system
event to be signalled by the invoked Firefox (or a sibling process).
If we were to return `S_OK` from the notification server immediately,
and a running Firefox process would handle the notification via
Windows 8.1-style notification callbacks, then Windows would fall back
to those callbacks.  The invoked callbacks unregister themselves upon
completion, often before the launched Firefox has an opportunity to
process the command line.  By waiting for this system event, we allow
the invoked Firefox to process the command line while its own
notification callbacks are registered and therefore recognize that its
callbacks will handle the notification.

Differential Revision: https://phabricator.services.mozilla.com/D154468
2022-09-02 20:22:51 +00:00
Nick Alexander 1b44d58145 Bug 1781929 - Part 2: Include executable as first argument; log to Windows Event Log. r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D153659
2022-09-02 20:22:50 +00:00
Kirk 9e35e9fa3c Bug 1726462 - Add test for the "no window update restart" feature r=webdriver-reviewers,bhearsum,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151860
2022-09-02 17:50:04 +00:00
Kirk 67de9994c9 Bug 1726462 - Fix No Window Auto Restart feature to rely on more dependable observer r=bhearsum
It seems that the "browser-lastwindow-close-granted" observer is not entirely reliable about notifying when the last window was closed. Instead we will rely on "domwindowclosed" and checking if that was the last window, which seems to be more reliable.

Differential Revision: https://phabricator.services.mozilla.com/D151859
2022-09-02 17:50:04 +00:00
Katherine Patenio 2f8bc4bb9a Bug 1786433 - [Colorway Closet - about:addons] update Independent Voices colorways background color and expiry date border r=dao
Differential Revision: https://phabricator.services.mozilla.com/D155749
2022-09-02 15:06:06 +00:00
Sarah Clements 3312ce0c28 Bug 1764137 - Add correct aria-roles to named-deck in firefoxview r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D156085
2022-09-02 10:59:13 +00:00
Paul Zuehlcke cc5eea6b97 Bug 1736688 - Remove telemetry probe: EXTERNAL_PROTOCOL_HANDLER_DIALOG_CONTEXT_SCHEME. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D156213
2022-09-02 10:35:44 +00:00
Nick Alexander e5be087cf6 Bug 1788713 - Read default profile targeting with existing lock in `backgroundupdate` task. r=bytesized,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156216
2022-09-01 22:48:22 +00:00
Luca Greco 088c86b28a Bug 1775898 - Fix browser_doorhanger_install.js intermittent failures. r=mixedpuppy
The failures triggered after the changes introduced in this test from Bug 1784292 and tracked by orangefactor
are all triggered from the test case named `test_blockedInstallDomain_with_unified_extensions`:

- in that test case we are using a new chrome window (because the test case covers the behaviors expected when
  the unified extension button have been enabled by flipping the related pref) and the new chrome
  window is closed shortly after calling BrowserTestUtils.openNewForegroundTab.

- By opening and quickly closing a new chrome window, of all the tests in that test file,
  `test_blockedInstallDomain_with_unified_extensions` is the only one that have a pretty
  good chance to trigger this kind of failure.

- the failure is triggered when the chrome window has been already closed by the time all the promises that
  BrowserTestUtils.openNewForegroundTab is internally waiting on (see the lines linked below) are settled,
  and that triggers the failure due to an uncaught rejection triggered as a side-effect of trying to access
  tabbrowser.ownerGlobal.windowGlobalChild for a chrome window that is already gone:
  - https://searchfox.org/mozilla-central/rev/380fc5571b039fd453b45bbb64ed13146fe9b066/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm#278-279

The attached patch just adds an await on the call to BrowserTestUtils.openNewForegroundTab, which prevents
the intermittent failure from being triggered.

As a side note (either as an alternative approach to the one currently in this patch or indipendently from
fixing this specific intermittent):

it seems worth confirming if we could be changing BrowserTestUtils.openNewForegroundTab to expect
the possibility that the chrome window have been closed and just omit the innerWindowId in the
profile marker if collected too late to be able to retrieve the innerWindowId.

Differential Revision: https://phabricator.services.mozilla.com/D155876
2022-08-31 16:44:32 +00:00
Katherine Patenio 17bfc1ee19 Bug 1786607 - make about:addons colorway closet CTA label consistent with Firefox View r=rpl,dao
Differential Revision: https://phabricator.services.mozilla.com/D155413
2022-08-30 15:35:56 +00:00
nchevobbe 4ef6742cb2 Bug 1787724 - Migrate GMPProvider.jsm to system ES module. r=rpl,arai.
This patch is the result of `mach esmify --convert toolkit/mozapps/extensions/internal/GMPProvider.jsm`.
Callsites were fixed manually, as well as occasional references in comments.

Differential Revision: https://phabricator.services.mozilla.com/D155832
2022-08-30 05:01:54 +00:00
Itiel 96502edf3a Bug 1787621 - Fix contrast on the about:addons Available Updates count badge, when in dark mode r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D155784
2022-08-30 04:21:26 +00:00
Amy Churchwell ebdd25813c Bug 1778362 - Set up holdback study for Colorway Closet. r=dao,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D153120
2022-08-26 18:55:00 +00:00
Dana Keeler b4c45d4248 Bug 1781104 - remove unnecessary bits parameter from nsICertOverrideService r=djackson,necko-reviewers,geckoview-reviewers,extension-reviewers,kershaw,calu
Differential Revision: https://phabricator.services.mozilla.com/D152826
2022-08-26 18:48:38 +00:00
Katherine Patenio ac33ac38e2 Bug 1747229 - implement telemetry probes for colorway closet r=bigiri,dao,rpl
Differential Revision: https://phabricator.services.mozilla.com/D151771
2022-08-26 17:05:58 +00:00
Sandor Molnar 0896f4dab8 Backed out changeset 38bea6dcef39 (bug 1775522) for causing xpc failures in toolkit/mozapps/update/tests/unit_base_updater/marSuccessComplete.js CLOSED TREE 2022-08-24 21:08:37 +03:00
Sandor Molnar 75c176ac2c Backed out changeset 298518fe0caf (bug 1786607) for causing browser-chrome failures in browser/components/colorways/tests/browser/browser_colorwayCloset.js 2022-08-24 20:35:51 +03:00
Katherine Patenio 1418ca42af Bug 1786607 - make about:addons colorway closet CTA label consistent with Firefox View r=rpl,dao
Differential Revision: https://phabricator.services.mozilla.com/D155413
2022-08-24 15:53:08 +00:00
Max Christian Pohle baf6dd2ec6 Bug 1775522 - Add timestamps to updater logs, r=bytesized,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D155232
2022-08-24 15:44:04 +00:00
William Durand cb31c16d87 Bug 1784292 - Anchor extension popups to the unified extensions button. r=mconley,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D154408
2022-08-19 06:25:13 +00:00
Dão Gottwald 43ae100762 Bug 1785265 - [Colorway Closet] Set role="presentation" on colorway illustrations. r=bigiri,extension-reviewers,rpl
Differential Revision: https://phabricator.services.mozilla.com/D154902
2022-08-18 15:49:25 +00:00
Sean Pedigo 676a85b30d Bug 1751990 - Removed usages of six underneath toolkit directory r=firefox-build-system-reviewers,glandium
Depends on D152463

Differential Revision: https://phabricator.services.mozilla.com/D137058
2022-08-17 20:53:47 +00:00
Nick Alexander ba86996b7a Bug 1783051 - Turn default browser agent's `EventLog` into a Windows-only header utility. r=rkraesig
Differential Revision: https://phabricator.services.mozilla.com/D153658
2022-08-17 20:01:58 +00:00
Geoff Lankow 6cf03f159c Bug 1784254 - Skip page action parts of test when run in Thunderbird. r=willdurand,extension-reviewers
Thunderbird doesn't have page actions, so these parts of the test fail.

Differential Revision: https://phabricator.services.mozilla.com/D154844
2022-08-17 08:00:31 +00:00
Mike Kaply 41d6c8e6ec Bug 1779018 - Use policy to determine if executable files can be launched. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D152195
2022-08-16 22:32:52 +00:00
William Durand efd406d7c1 Bug 1784254 - Make `page_action` and `hidden` mutually exclusive. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D154387
2022-08-16 06:59:46 +00:00
Mark Banner 0bbc4182e5 Bug 1784699 - Add some more globals to ESLint xpcshell environment. r=arai,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D154603
2022-08-15 16:50:31 +00:00
Kirk Steuber 244c64dc64 Bug 1700158 - Add test that Background Update Tasks don't interfere with an in-progress internal download r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D154477
2022-08-12 19:18:08 +00:00
Kirk Steuber f0b12076e5 Bug 1700158 - Prevent the Background Update task from using the internal downloader r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D152095
2022-08-12 19:18:08 +00:00
Nick Alexander 7e300e8d78 Bug 1784117 - Lift default profile targeting to Nimbus in background tasks. r=barret
This was oversight.  In background tasks, I took some care to provide
the snapshot of the default profile's targeting state to the Firefox
Messaging System, but it also needs to be provided to Nimbus to filter
experiments directly.

For expedience, I provide an extra targeting context object to
`ExperimentManager.onStartup`.

The targeting contexts for Nimbus proper and Firefox Messaging System
are somewhat independent; that's why the triggering context remains in
the invocation of `sendTriggerMessage`.

Depends on D154308

Differential Revision: https://phabricator.services.mozilla.com/D154309
2022-08-11 17:39:53 +00:00
Nick Alexander c5c10dbc02 Bug 1784117 - Pre: Fix typoes. r=barret,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D154308
2022-08-11 17:39:53 +00:00
Shane Caraveo 11ef3eba2f Bug 1775597 fix focus test for addons searchbar r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D153285
2022-08-10 20:59:05 +00:00
Nick Alexander e11a3f65ec Bug 1782924 - Avoid crash writing Firefox Messaging System targeting information at shutdown. r=application-update-reviewers,bytesized
I tested this as much as I could locally -- hence the `dump`
workaround -- but I have no particular suggestion for how to test this
in automation.  Even triggering the targeting snapshotting during
shutdown requires the timers and shutdown process to line up in a way
that's not trivial to guarantee.

Differential Revision: https://phabricator.services.mozilla.com/D154285
2022-08-10 20:35:34 +00:00
Katherine Patenio 1a5fb7c7df Bug 1774432 - consolidate BuiltInTheme mocks for browser_colorwayCloset.js and browser_colorwaycloset_aboutaddons.js r=bigiri,dao,rpl
Differential Revision: https://phabricator.services.mozilla.com/D151774
2022-08-08 19:29:41 +00:00
William Durand 194e762e3c Bug 1781998 - Make hidden and browser_action or action mutually exclusive. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D153924
2022-08-08 17:09:39 +00:00
Nick Alexander a3a541479b Bug 1781952 - Enable Nimbus/Firefox Messaging System in `backgroundupdate` task. r=bytesized,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152948
2022-08-05 03:51:55 +00:00
Nicholas Rishel 6e432b193e Bug 1782818 - Use COM notification server for toast notifications in MSIX packages. r=nalexander,Jamie
This converges Windows native notification behavior across all installers to use the COM notification server.

This also fixes an issue where interacting with an MSIX notification opened a new window with new tabs correlated to the toast notification launch arguments. MSIX by default calls the application sending a notification with the provided launch arugments, which was an problem as we use launch arguments in the COM server to reconstruct the origin of a notification.

Differential Revision: https://phabricator.services.mozilla.com/D153538
2022-08-04 21:46:15 +00:00