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

764382 Коммитов

Автор SHA1 Сообщение Дата
Luca Greco f9985ad963 Bug 1638099 - Add xpcshell test to explicitly assert that service workers fail to spawn if the addon is disabled. r=asuth,mixedpuppy
This patch introduces a new xpcshell test that covers the behavior expected by the changes
applied from D119532.

The current testing strategy is based on the same internal Gecko platform APIs that are used
internally by Firefox DevTools internal API that about:debugging is using to detect when a worker is
spawned and terminated (based on JSProcessActors and nsIWorkerDebuggerManager) and to force spawn
a registered service worker (by calling the nsIServiceWorkerRegistrationInfo.attachDebugger method).

Differential Revision: https://phabricator.services.mozilla.com/D119799
2021-07-26 17:52:25 +00:00
Luca Greco c346419b44 Bug 1638099 - Ensure spawning a new service worker for a disabled webextension does fail. r=asuth
This patch does prevent a service worker previously registered by a webextension to be spawned
if the webextension isn't enabled.

Instead of marking the service worker as disabled (e.g. as part of the registration data that we
store on disk), this patch is currently adding an additional check in
ServiceWorkerPrivateImpl::SpawnIfNeeded to make it early exit with an error if:
- the worker principal has a moz-extension url
- and it does not have a WebExtensionPolicy or the WebExtensionPolicy is not active
  (which would mean that the extension was being uninstalled or disabled)

Differential Revision: https://phabricator.services.mozilla.com/D119532
2021-07-26 17:52:25 +00:00
Luca Greco 4f6b894e7a Bug 1638099 - Unregister all extension service workers on extension shutdown if the app is not also shutting down. r=mixedpuppy
This patch introduces changes to parent/ext-backgroundPage.js and Extension's shutdown methods to make sure
that all service workers registered by an extension are unregistered when the extension is shutting down,
unless the application is also shutting down (in which case the registration is not unregistered because
for the already installed extenson the previously activeWorker is expected to be still active across browser
restarts).

These changes prevent also to hit the issue that D119532 was triggering when an extension was reloaded
and it does not need any of the changes to ContentPrincipal::AddonPolicy from D119531.

Differential Revision: https://phabricator.services.mozilla.com/D119903
2021-07-26 17:52:24 +00:00
Kagami Sascha Rosylight 38acfa9c75 Bug 1712339 - Remove mouse event default action and revert bug 1674658 r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D120854
2021-07-26 17:34:07 +00:00
Agi Sferro 0e754e748c Bug 1722347 - Uncomment ensure_*_packages. r=nalexander
This was missed in Bug 1721669, likely a rebase error.

Differential Revision: https://phabricator.services.mozilla.com/D120861
2021-07-26 17:16:03 +00:00
Agi Sferro a193bd2970 Bug 1722347 - Add missing |application| parameter in install_private_packages. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D120857
2021-07-26 17:16:03 +00:00
Christoph Kerschbaumer 5a0e65f9c3 Bug 1720535: Add https-first-disabled annotation to mochitest harness r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D119970
2021-07-26 16:47:45 +00:00
Michelle Goossens adf989bb23 Bug 1718297 - Part 1: Disable failing mochitest-media tests on Windows 10 2004 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D119836
2021-07-26 16:40:35 +00:00
Michelle Goossens c638f51ce3 Bug 1718292 - Part 1: Disable failing xpcshell tests on Windows 10 2004 r=jmaher,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D119633
2021-07-26 16:38:22 +00:00
Cosmin Sabou a0159236f1 Backed out changeset e9a336383b55 (bug 1721647) for bc failures on browser_all_files_referenced.js. CLOSED TREE 2021-07-26 20:04:46 +03:00
Bryce Seager van Dyk 418bebb92e Bug 1721874 - Remove getDecryptingGMPVideoDecoder. r=jolin
This code path is now the same as getGMPVideoDecoder, so we can merge them into
one and remove the decrypting decoder specific case.

Differential Revision: https://phabricator.services.mozilla.com/D120649
2021-07-26 16:15:24 +00:00
ffxbld 24499204c2 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=pascalc
Differential Revision: https://phabricator.services.mozilla.com/D120836
2021-07-26 15:45:06 +00:00
Dave Townsend 5cbb812cba Bug 1721647: Add a stub page data service API to enable parallel development. r=mak
This adds the stub API for the page data service and some basic docs. The service can be used from
xpcshell tests and the events respond with sane data. As there are no consumers currently the
in-memory cache never clears.

Differential Revision: https://phabricator.services.mozilla.com/D120498
2021-07-26 15:30:58 +00:00
Dorel Luca e6c34860a8 Backed out 7 changesets (bug 1719194) for Spidermonkey failure in gecko/js/src/frontend/SyntaxParseHandler. CLOSED TREE
Backed out changeset d5966f092353 (bug 1719194)
Backed out changeset 5b1c02e1173b (bug 1719194)
Backed out changeset a0b7896b840d (bug 1719194)
Backed out changeset 09725af9e55b (bug 1719194)
Backed out changeset 74fe6205ace1 (bug 1719194)
Backed out changeset 6fbc8ee2c1bd (bug 1719194)
Backed out changeset bd6a7fdc412e (bug 1719194)
2021-07-26 19:03:47 +03:00
Andrei Oprea a66714326b Bug 1716736 - Add schema validation for experiment enrollments in tests r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D118367
2021-07-26 14:48:22 +00:00
Nicolas B. Pierron 2249630d55 Bug 1719194 part 5 - Reorganize the previous parse cache to hide internals. r=arai
This patch does 2 things:
 - It moves the closedOverBindings out of the cachedGCThings_.
 - It hides the ScriptIndex extracted from cachedGCThings_.

The cachedGCThings_ used to contain both the TaggedParserAtomIndex and the
ScriptIndex as a TaggedScriptThingIndex. These 2 indexes are referring to data
which are not the same sources. The TaggedParserAtomIndex are indexes in the
parseAtom table, while the ScriptIndex are either newly allocated or reference
to an existing Stencil which is used as input.

Thus, the closedOverBindings_ are moved away of the cachedGCThings_ to highlight
that these are not indexes into an existing Stencil, but references to the
CompilationState.

As the ScriptIndex contained in the cachedGCThings_ are not valid for the
FullParseHandler, the ScriptIndex returned value is now hidden under private
functions, and the function index is used as a replacement. This way, the
ScriptIndex reference should not leak in the FullParseHandler, thus avoiding
confusion.

Differential Revision: https://phabricator.services.mozilla.com/D120635
2021-07-26 13:58:49 +00:00
Nicolas B. Pierron 07e0ceb7af Bug 1719194 part 4 - Move previous parse cache in the CompilationState. r=arai
This patch moves data from the CompilationInput to the CompilationState such
that the lifetime of the allocation spans are matching the LifoAlloc scope
maintained by the CompilationState.

A new structure named CompilationSyntaxParseCache is added to hold gcThings,
scriptData and scriptExtra spans which are made to either be allocated or alias
previous Stencil produced by the SyntaxParseHandler.

The FullParseHandler, instead of copying each span, now reference the
CompilationSyntaxParseCache as a constant.

Differential Revision: https://phabricator.services.mozilla.com/D120634
2021-07-26 13:58:49 +00:00
Nicolas B. Pierron 86856d9895 Bug 1719194 undo part 0 - Remove OpaqueThingType added in part 0. r=arai
The OpaqueThingType placeholder was necessary when making this series of
patches. It is no longer needed anymore.

Differential Revision: https://phabricator.services.mozilla.com/D120234
2021-07-26 13:58:49 +00:00
Nicolas B. Pierron ea955bc7f1 Bug 1719194 part 3 - Remove Rooted<BaseScript*> from the FullParseHandler. r=arai
In order to be able to parse from an existing Stencil instead of a BaseScript*,
we have to replace all references to BaseScript* data by abstract data which can
be computed from both, and without the need for allocating GC objects.

This patch is the last change to the FullParseHandler to abstract over a GC
object (BaseScript*) and a Stencil. It removes all references to the
Rooted<BaseScript*> and replaces them by a simple boolean flag which indicate
whether we are reusing data from a pre-parsed function, instead of doing a full
parse which includes resolving bindings and parsing inner functions.

This patch also include a renaming of functions named `canSkip*` into `reuse*`,
to better highlight why we are doing differently.

Differential Revision: https://phabricator.services.mozilla.com/D120233
2021-07-26 13:58:48 +00:00
Nicolas B. Pierron 7b036c7a1b Bug 1719194 part 2 - Use stencil-like data inferred from BaseScript for skipping functions. r=arai
When delazifying with a `CompileLazyFunction` call, we reused
BaseScript::gcthings to skip over information already provided by the
`SyntaxParseHandler`, such as functions and closed-over bindings.

This change adds a stencil-like scriptData and scriptExtra spans, which are
created from the JSFunctions of BaseScript::gcthings() with the intent of later
using the same API for mapping input data from a Stencil without having to
allocate GC objects for eager delazifying functions.

`CompilationState::init` is modified to call the convertion from the
BaseScript::gcthings() to the `CompilationInput::cacheScriptData_` and
`CompilationInput::cacheScriptExtra_`. The logic of the `FullParseHandler` is
updated to work with the gcthings provided by the `CompilationInput` in a
similar way.

The function `skipLazyInnerFunction` now takes its inputs from the
`ScriptStencil` and from the `ScriptStencilExtra`, thus no longer relying on
`BaseScript::gcthings()` nor on a `JSFunction*` to extract this information
from. `FunctionBox` initialization reflect these changes by taking these 2
inputs as argument as well.

Note that the `ScriptStencil` and `ScriptStencilExtra` provided by the
`CompilationInput` do not reflect the full content of each script, but the bare
minimum used by `skipLazyInnerFunction`.

Differential Revision: https://phabricator.services.mozilla.com/D120232
2021-07-26 13:58:48 +00:00
Nicolas B. Pierron 8652003349 Bug 1719194 part 1 - Use a stencil-like gc-things vector for compiling. r=arai
When delazifying with a `CompileLazyFunction` call, we reused
BaseScript::gcthings to skip over information already provided by the
`SyntaxParseHandler`, such as functions and closed-over bindings.

This change adds a stencil-like gcthings span, which is created from the
BaseScript::gcthings() with the intent of later using the same API for mapping
input data from a Stencil without having to allocate GC objects for eager
delazifying functions.

`CompilationState::init` is modified to call the convertion from the
BaseScript::gcthings() to the `CompilationInput::cachedGcThings_`. The logic of
the `FullParseHandler` is updated to work with the gcthings provided by the
`CompilationInput` in a similar way, except that atoms contained in the original
vector are internalized under `CompilationState::init` instead of being
internalized when visiting each scope under
`propagateFreeNamesAndMarkClosedOverBindings`.

Differential Revision: https://phabricator.services.mozilla.com/D120231
2021-07-26 13:58:47 +00:00
Nicolas B. Pierron 3211f82d3f Bug 1719194 part 0 - Add a new TaggedScriptThing to be used as a placeholder. r=arai
In upcoming patches, we are converting the BaseScript::gcThings to a fake
stencil vector of TaggedScriptThingIndex. As we transition progressively, some
kind are not yet represented and therefore not used. To avoid encoding bad
indexes, we create a new OpaqueThing type which is meant to represent all things
we do not yet care about.

Differential Revision: https://phabricator.services.mozilla.com/D120230
2021-07-26 13:58:47 +00:00
Rob Lemley a82a4bf011 Bug 1670147 - Set values for AccessibleHandler.dll CLSID/IIDs at configure time. r=Jamie,firefox-build-system-reviewers,glandium
Allow for downstream projects such as Thunderbird to set different GUIDs for
AccessibleHandler to avoid clashes when both applications are installed.
The GUIDs themselves can be defined in confvars.sh or in branding/configure.sh
depending on the specific needs of the application. Fallback GUIDs are in
old-configure.

Differential Revision: https://phabricator.services.mozilla.com/D118124
2021-07-26 13:43:36 +00:00
Andrew Osmond edadc33489 Bug 1722239 - Move Linux telemetry tests to WebRender. r=jmaher
autoland

--- target_task_set@d201b02824ec
+++ target_task_set@ao_ci_telemetry
+test-linux1804-64-asan-qr/opt-telemetry-tests-client-e10s
+test-linux1804-64-asan-qr/opt-telemetry-tests-client-fis-e10s
-test-linux1804-64-asan/opt-telemetry-tests-client-e10s
+test-linux1804-64-qr/debug-telemetry-tests-client-e10s
+test-linux1804-64-qr/debug-telemetry-tests-client-fis-e10s
+test-linux1804-64-qr/opt-telemetry-tests-client-e10s
+test-linux1804-64-qr/opt-telemetry-tests-client-fis-e10s
-test-linux1804-64/debug-telemetry-tests-client-e10s
-test-linux1804-64/opt-telemetry-tests-client-e10s

mozilla-central

--- target_task_set@d201b02824ec
+++ target_task_set@ao_ci_telemetry
+test-linux1804-64-asan-qr/opt-telemetry-tests-client-e10s
+test-linux1804-64-asan-qr/opt-telemetry-tests-client-fis-e10s
-test-linux1804-64-asan/opt-telemetry-tests-client-e10s
+test-linux1804-64-ccov-qr/opt-telemetry-tests-client-e10s
-test-linux1804-64-ccov/opt-telemetry-tests-client-e10s
+test-linux1804-64-qr/debug-telemetry-tests-client-e10s
+test-linux1804-64-qr/debug-telemetry-tests-client-fis-e10s
+test-linux1804-64-shippable-qr/opt-telemetry-tests-client-e10s
+test-linux1804-64-shippable-qr/opt-telemetry-tests-client-fis-e10s
-test-linux1804-64-shippable/opt-telemetry-tests-client-e10s
-test-linux1804-64/debug-telemetry-tests-client-e10s

Differential Revision: https://phabricator.services.mozilla.com/D120803
2021-07-26 13:43:24 +00:00
Jan de Mooij 2eb6ef9d2d Bug 1720031 - Check for SetInitializedLength when reordering. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D120626
2021-07-26 13:38:27 +00:00
Marian-Vasile Laza b54ff36b0c Backed out changeset 2035b7835ff6 (bug 1721647) for causing bc failures on browser_all_files_referenced.js. CLOSED TREE 2021-07-26 17:52:34 +03:00
Ben Hearsum 2ba2f74f31 Bug 1614200: fix linting issues. r=jmaher CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D120847
2021-07-26 13:55:02 +00:00
Ben Hearsum 64d95473e4 Bug 1714200: enable currently passing macosx 11.0 tests. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D120756
2021-07-26 13:16:25 +00:00
Ben Hearsum a4d6f61377 Bug 1714200: Use `repackage` as dependent task for mac tests requiring signed builds. r=jmaher
Test jobs expect dmgs, which are not produced by `build-signing`

Depends on D120752

Differential Revision: https://phabricator.services.mozilla.com/D120753
2021-07-26 13:16:25 +00:00
Ben Hearsum bc71d211b0 Bug 1714200: require signed builds to run tests on M1 platforms. r=jmaher
Depends on D120751

Differential Revision: https://phabricator.services.mozilla.com/D120752
2021-07-26 13:16:25 +00:00
Ben Hearsum 638b80adab Bug 1714200: Resign python virtualenv binaries on macOS to workaround issues on M1s. r=jmaher
Depends on D120750

Differential Revision: https://phabricator.services.mozilla.com/D120751
2021-07-26 13:16:24 +00:00
Ben Hearsum df680134e4 Bug 1714200: fix mozinfo apple silicon detection. r=jmaher
(Pdb) platform.uname()
uname_result(system='Darwin', node='macmini-m1-10.local', release='20.5.0', version='Darwin Kernel Version 20.5.0: Sat May  8 05:10:31 PDT 2021; root:xnu-7195.121.3~9/RELEASE_ARM64_T8101', machine='arm64')
(Pdb) platform.uname()[-1]

Differential Revision: https://phabricator.services.mozilla.com/D120750
2021-07-26 13:08:21 +00:00
Hubert Boma Manilla 2c45a516e9 Bug 1722153 - [devtools] Fix blank stacktrace panel when opening from a second location r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D120819
2021-07-26 13:07:55 +00:00
Kimberly Sereduck c4112332c9 Bug 1720698: Add Google Doc canvas preview to page load site list r=perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D120323
2021-07-26 12:52:59 +00:00
Dave Townsend a3463a3d4a Bug 1721647: Add a stub page data service API to enable parallel development. r=mak
This adds the stub API for the page data service and some basic docs. The service can be used from
xpcshell tests and the events respond with sane data. As there are no consumers currently the
in-memory cache never clears.

Differential Revision: https://phabricator.services.mozilla.com/D120498
2021-07-26 12:51:42 +00:00
Gijs Kruitbosch ee4d7daea5 Bug 1512851 - make share menu handling more generic and replace the file menu's email link with it on macOS, r=sfoster,fluent-reviewers,flod
Depends on D120637

Differential Revision: https://phabricator.services.mozilla.com/D120638
2021-07-26 12:22:38 +00:00
Gijs Kruitbosch e2e1f06304 Bug 1512851 - extract share menu handling from tabbrowser.js into a utility in browser.js, r=sfoster
Depends on D120636

Differential Revision: https://phabricator.services.mozilla.com/D120637
2021-07-26 12:22:38 +00:00
Gijs Kruitbosch d8600dc3ae Bug 1512851 - tidy up file menu popup event handling, r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D120636
2021-07-26 12:22:37 +00:00
Marco Bonardo 099bc398ae Bug 1721805 - Add more detailed database statistics to PlacesDBUtils. r=harry
Use the dbstat virtual table to get some more advanced statistics about the database.
This doesn't have positive or negative effects on users, but allows us to get
more detailed info when asking for logs, and to check how MR2 data distributes
in the database.
The existing maintenance tests ensure the new methods don't throw, there's no
specific test checking for the output, since that's free-form logging.

Differential Revision: https://phabricator.services.mozilla.com/D120616
2021-07-26 12:10:14 +00:00
Hubert Boma Manilla d54f0f14dd Bug 1721384 - [devtools] Fix browser_net_websocket_stacks.js with server side targets r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D120620
2021-07-26 11:51:53 +00:00
Nicolas Chevobbe 98a2311523 Bug 1691585 - [devtools] Enable browser_target_list_service_workers_navigation.js on Fission. r=jdescottes.
There were a few issues when Fission was being enabled:

1. the sw legacy listener was throwing when trying to compute the origin of the
  "current" target in _onProcessAvailable. That's because the function might be
  called while the "old" target was being destroyed, in which case its `url` property
  is nullified. We can't simply use `targetCommand.target` though, as we might
  be notified about the new process being created before about the new frame
  document. The fix is to store a `currentTargetURL` property in the sw legacy listener,
  and to update it when we receive `will-navigate` events.

2. A few functions were ignoring the `targetCommand.destroyServiceWorkersOnNavigation`
   flag and clearing caches when doing a target switch. This meant that we might
   not be notified about sw targets being unregistered after multiple navigations.

Differential Revision: https://phabricator.services.mozilla.com/D120710
2021-07-26 11:34:44 +00:00
Dorel Luca 5a8b32e3c6 Backed out changeset e7dffca31fa7 (bug 1716736) for Browser-chrome failures in browser/components/shell/test/browser_setDefaultBrowser.js. CLOSED TREE 2021-07-26 14:08:51 +03:00
Tooru Fujisawa 086d7e3429 Bug 1721381 - Ignore class static block tests in smoosh jobs. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D120810
2021-07-26 10:39:20 +00:00
Henrik Skupin 8fdd8d1cf7 Bug 1721982 - [marionette] Use domwindowopened observer to detect newly opened windows. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D120734
2021-07-26 10:10:12 +00:00
Henrik Skupin bd33c9cc1f Bug 1721982 - [wdspec] Add test to accept or dismiss a user prompt in a popup window. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D120733
2021-07-26 10:10:12 +00:00
Nicolas Chevobbe c0db300844 Bug 1721398 - [devtools] Don't restore target configuration on target switching. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D120719
2021-07-26 10:07:22 +00:00
Andrei Oprea 9ae9067efe Bug 1716736 - Add schema validation for experiment enrollments in tests r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D118367
2021-07-26 09:43:28 +00:00
Sebastian Hengst c84097c9e1 Merge mozilla-central to autoland. CLOSED TREE 2021-07-26 11:45:27 +02:00
Kershaw Chang 298fea6ff9 Bug 1719135 - Make gTRRService atomic and also avoid doing trrLookup when trr service is not ready, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D120621
2021-07-26 09:37:37 +00:00
Kershaw Chang 960dae5209 Bug 1683062 - Make sure HttpChannelChild::mSuspendCount be updated correctly even if the remote channel is not existed, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D119947
2021-07-26 09:32:30 +00:00