In 'gen_test_backend.py' we fallback to an 'EmptyConfig' in the event there is
no build environment. We do this for the benefit of tests that don't need a
Firefox build (like Python unittests). Without it, we wouldn't be able to run
e.g |mach python-test python/mozversioncontrol| unless you had a build.
However since this 'EmptyConfig' doesn't have 'ENABLE_TESTS' set, it means any
manifests defined in a 'moz.build' behind the 'TEST_DIRS' variables will not be
discovered.
Differential Revision: https://phabricator.services.mozilla.com/D120386
Now that `piptools` is no longer installed from the vendored location,
there are no remaining cases where we are doing `install_pip_package()`
with a vendored package.
Differential Revision: https://phabricator.services.mozilla.com/D123241
We've been installing `piptools` so that we can use the `pip-compile`
binary. However, we can just as easily do
`python -m piptools compile ...` instead, which also allows us to
skip a redundant install.
Differential Revision: https://phabricator.services.mozilla.com/D123240
This update makes wgpu a vendored dependency instead of having it in gfx/wgpu.
## Notes
It relies on https://phabricator.services.mozilla.com/D123157
It has a quirk related to OpenGL ES backend. Previousy, we manually had to disable GL backend
in order to avoid vendoring WASM dependencies in. This time, manual editing is more complicated,
so instead this change adds a few cargo patch lines to point WASM dependencies to dummy projects.
The update also totally removes SPIRV-Cross, since the latest `wgpu` doesn't depend on it any more.
The compiled binary size for Gecko should improve with this.
Differential Revision: https://phabricator.services.mozilla.com/D123153
When two successive `AudioInputProcessing::NotifyInputData` calls are
followed by only one `AudioInputProcessing::ProcessInput` call, the
audio input data in the first `NotifyInputData` call will be dropped
silently, and these incomplete audio data will lead to unrecognizable
sounds. To avoid dropping any audio input, we need to queue all the
unprocessed audio input data from `NotifyInputData` instead of keeping
tracking the newest one only.
Depends on D123996
Differential Revision: https://phabricator.services.mozilla.com/D123840
`AudioDataBuffers` is used to hold the information of the audio input
and output. However, nothing special needs to be done there.
Depends on D123997
Differential Revision: https://phabricator.services.mozilla.com/D123996
See the discussion here: https://twitter.com/Rich_Harris/status/1433153204678799365
This should make attribute selectors roughly as fast as class selectors.
I think it's worth trying and see if perf bots complain on
micro-benchmarks and stylebench and such.
I made attributes more specific than local names, but less specific than
classes, which I think makes sense. When doing something like
foo[data-bar], filtering by data-bar seems likely to yield less elements
than filtering by foo.
While at it, remove the bloom filter pref since we shipped it in
bug 1704551 for 87 and we haven't heard complaints.
Differential Revision: https://phabricator.services.mozilla.com/D124383
This field will be useful to JS code such as JSWindowActors which need to be
able to detect when their WindowContext is no longer active.
Differential Revision: https://phabricator.services.mozilla.com/D124098
We vendor `glean_parser==3.6.0`, and that was incompatible with
`glean-sdk==36.0.0`'s requirement of `glean_parser==2.5.0`.
`glean-sdk==40.0.0` expects `glean_parser==3.6.0`, which is perfect.
Differential Revision: https://phabricator.services.mozilla.com/D122899
With top-level await now supported, ModuleScopes use the generator machinery. As
a heuristic, we use different storage strategies for generators with few vs many
local variables. This patch applies that condition to module scopes as well for
consistency (and to avoid tripping checks).
Differential Revision: https://phabricator.services.mozilla.com/D124232
When the `FAIL` text goes away, there could be some antialiased fringe left which
caused the test to fail. Use Ahem font to reduce likelihood of this
happening again.
Differential Revision: https://phabricator.services.mozilla.com/D124423
The autofocus attribute could run scripts while it's autofocusing
which may run the promise_tests, so that the focus() usage
in the tests could become nested focusing steps.
Differential Revision: https://phabricator.services.mozilla.com/D123861
Automatic update from web-platform-tests
Fix DCHECK failure on aborted response
We need to check the AbortSignal status before starting loading.
Bug: 1245439
Change-Id: I3f4a43e8acbb6c2f77d3839367866365cabe08d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3139723
Reviewed-by: Adam Rice <ricea@chromium.org>
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/main@{#917657}
--
wpt-commits: 2af53e681fe37f5b9f0f8d02ad3d60c95437821f
wpt-pr: 30302
Automatic update from web-platform-tests
[ResourceTiming]: Fix incorrect for-loop iteration
We were using
`for (const [key, value] in Object.entries(thingy))`
but that iterates the indices of the array returned by Object.entries
We need to use
`for (const [key, value] of Object.entries(thingy))`
to get (key, value) pairs instead of (index,`undefined`) pairs.
Bug: 1171767
Change-Id: I81848afe8dc31dced5363476a1367ce353f8a02a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3138594
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Tom McKee <tommckee@chromium.org>
Cr-Commit-Position: refs/heads/main@{#917636}
--
wpt-commits: 778ac9655ae8dd6976501429e641fa2096e88665
wpt-pr: 30296
Automatic update from web-platform-tests
Add Webtransport over HTTP/3 test server (#29727)
--
wpt-commits: 1903175e1e7241a16da454f69c1c62ba00963a4e
wpt-pr: 29727
Automatic update from web-platform-tests
Add Content-Security-Policy WPTs for WebTransport
This CL adds two test cases:
- when connect-src is set to none, the WebTransport connection fails
- when connect-src is set to the page destination, the WebTransport
connection is established successfully
Furthermore, the custom-reponse server handler is also added in this CL,
which will be used in some follow-up CLs to respond to CONNECT requests.
The test expectations have also been updated in this CL, by skipping
these WebTransport WPTs for the timebeing until the server is added.
Bug: 1201569
Change-Id: I4c0c1b947751e71accda69682769c3f461c7fb6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3134999
Commit-Queue: Nidhi Jaju <nidhijaju@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/main@{#917597}
--
wpt-commits: 679b01b186186215fdd3cbdb54039d8a31b8bc15
wpt-pr: 30281
Automatic update from web-platform-tests
[wasm] Deprecate cross-origin module sharing
With this CL cross-origin module sharing gets disabled by default.
It can be re-enabled by setting the command line switch
`cross-origin-webassembly-module-sharing-allowed`, by setting the
enterprise policy `CrossOriginWebAssemblyModuleSharingEnabled`, or
by --enable-features=CrossOriginWebAssemblyModuleSharingEnabled.
Bug: chromium:1225641
Change-Id: I950f2121856a8c185df93e27c476ec90faf3f136
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3094205
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Anqing Zhao <anqing@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/main@{#917573}
--
wpt-commits: cd381d102622e91faf515ab77f8ca0376fbaf311
wpt-pr: 30239
Automatic update from web-platform-tests
Add test for ImageCapture.takePhoto() setOptions failure
This change is a follow-up to crrev.com/c/3132384 which adds a new Web
Platform Test that reproduces the issue by calling takePhoto() on a
stream which doesn't provide PhotoCapabilities.
Bug: 1229991
Change-Id: I685c587915587edf2573e182658d84de637171e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3138862
Auto-Submit: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#917528}
--
wpt-commits: 37bce9094cbec3cc3b69832925808f5a7811913e
wpt-pr: 30293