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

768529 Коммитов

Автор SHA1 Сообщение Дата
Edgar Chen 862d12eb53 Bug 1729008 - Part 1: Make HTMLFormElement::IsDefaultSubmitElement take nsGenericHTMLFormElement as argument; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D124459
2021-09-03 17:21:44 +00:00
Andrei Oprea c2ff7b6409 Bug 1727265 - Remove Nimbus 'sendExposureEvent' option and keep only explicit calls for exposure event r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D123763
2021-09-03 17:12:52 +00:00
Andrew Halberstadt 67cef7d1ab Bug 1721463 - Set ENABLE_TESTS when generating test backend with an EmptyConfig, r=firefox-build-system-reviewers,mhentges
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
2021-09-03 17:10:16 +00:00
Mitchell Hentges 894b32dc18 Bug 1723237: Remove `vendor` argument from `install_pip_package()` r=ahal
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
2021-09-03 17:06:05 +00:00
Mitchell Hentges 78827b7e2c Bug 1723237: Use pip-compile directly from vendored location r=ahal
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
2021-09-03 17:06:05 +00:00
Matthew Gaudet 1c22a97031 Bug 1728802 - Remove overly paranoid guarding of class static block preference to allow riding the trains r=arai
Differential Revision: https://phabricator.services.mozilla.com/D124465
2021-09-03 16:54:12 +00:00
Dzmitry Malyshau 5695f517a5 Bug 1726626 - Move gfx/wgpu into a 3rd party dependency r=jgilbert,bholley
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
2021-09-03 16:52:08 +00:00
Chun-Min Chang edabfc6951 Bug 1725810 - Fix audio distortion r=padenot
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
2021-09-03 16:46:32 +00:00
Chun-Min Chang dc1d317edc Bug 1725810 - Remove `AudioDataBuffers` r=padenot
`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
2021-09-03 16:46:32 +00:00
Chun-Min Chang 30033608c9 Bug 1725810 - Add a test case simulate the issue r=padenot
Add a test for `AudioInputProcessing` to demonstrate the audio
distortion problem

Differential Revision: https://phabricator.services.mozilla.com/D123997
2021-09-03 16:46:32 +00:00
Nan Jiang c1e91a89c5 Bug 1728188 - Re-enable the collection of search query and matched keyword for Firefox Suggest r=adw
Differential Revision: https://phabricator.services.mozilla.com/D124463
2021-09-03 16:16:56 +00:00
Jeff Muizelaar 4d2306308f Bug 1728991 - Drop some unused gfxASurface includes. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D124456
2021-09-03 16:00:34 +00:00
Emilio Cobos Álvarez 7bd3a20ff4 Bug 1728851 - Add attributes to the rule hash. r=boris
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
2021-09-03 15:57:30 +00:00
Byron Campen [:bwc] 31aa2a194a Bug 1685354: Use NS_INLINE_DECL_THREADSAFE_REFCOUNTING_WITH_DESTROY instead of runnables inside d'tor. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D123946
2021-09-03 15:29:28 +00:00
Nika Layzell 5ef668b1b0 Bug 1722880 - Part 3: Support BFCache, unloading, and tab adoption in Pdfjs actors, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D124100
2021-09-03 15:26:14 +00:00
Nika Layzell 537f680c5a Bug 1722880 - Part 2: Expose windowContext getter to JSWindowActors, r=smaug
This will be used by the Pdfjs actor to get isInBFCache

Differential Revision: https://phabricator.services.mozilla.com/D124099
2021-09-03 15:26:13 +00:00
Nika Layzell c525c65ff8 Bug 1722880 - Part 1: Add IsInBFCache to WindowContext, and make it non-SHIP compatible, r=smaug,necko-reviewers,dragana
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
2021-09-03 15:26:13 +00:00
Iulian Moraru d7a06601a0 Backed out changeset 089962073382 (bug 1728903) for causing Bp-hybrid bustages on ImageBitmapRenderingContext.cpp. CLOSED TREE 2021-09-03 18:49:32 +03:00
Mitchell Hentges 9fb43c2035 Bug 1712151: Bump glean-sdk version to 40.0.0 r=ahal
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
2021-09-03 15:22:21 +00:00
Bryce Seager van Dyk 6a1ee36ee9 Bug 1729011 - Change dead link to MDN in nsCOMPtr.h to reference source docs. r=xpcom-reviewers,mccr8 DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D124461
2021-09-03 15:14:01 +00:00
Edgar Chen d902f2d62f Bug 1728626 - PointerEvent.pointerType should be allowed to be arbitrary from constructor; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D124362
2021-09-03 15:04:56 +00:00
Ted Campbell 40a326954c Bug 1728588 - Fix storage heuristic for async JS modules. r=jandem
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
2021-09-03 14:49:26 +00:00
Nazım Can Altınova 0f657df07f Bug 1728544 - Make the MarkerSchema::Searchable enum class values CamelCased r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D124242
2021-09-03 14:30:10 +00:00
Nazım Can Altınova a38b25b295 Bug 1728544 - Make the MarkerSchema::Format enum class values CamelCased r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D124241
2021-09-03 14:30:10 +00:00
Nazım Can Altınova ddae0f7cd6 Bug 1728544 - Make the MarkerSchema::Location enum class values CamelCased r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D124240
2021-09-03 14:30:09 +00:00
Andrei Oprea 681df612a2 Bug 1728420 - New messaging surface Spotlight r=Mardak,dmose,nanj
Differential Revision: https://phabricator.services.mozilla.com/D121913
2021-09-03 13:41:21 +00:00
Sean Feng a2cfaeb18d Bug 1413836 - Use Ahem font to avoid antialiased fringe for focus-pseudo-on-shadow-host-2.html r=dholbert
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
2021-09-03 13:32:28 +00:00
Sean Feng 99c89697c1 Bug 1413836 - Add a test to ensure :focus is applied to host when the focus is moved by <tab> r=smaug
Depends on D123863

Differential Revision: https://phabricator.services.mozilla.com/D124067
2021-09-03 13:32:28 +00:00
Sean Feng a45c0fab1e Bug 1413836 - Add a test to ensure :focus is removed from the hosts r=smaug
When none of the elements inside the shadow dom is focused, :focus
should be removed from the hosts.

Differential Revision: https://phabricator.services.mozilla.com/D123863
2021-09-03 13:32:27 +00:00
Sean Feng 70937ca42d Bug 1413836 - Implement the focusing steps for delegatesFocus r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D123862
2021-09-03 13:32:27 +00:00
Sean Feng c1723db6d8 Bug 1413836 - Avoid nested focus steps in focus-pseudo-matches-on-shadow-host.html r=smaug
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
2021-09-03 13:32:26 +00:00
Sean Feng 12e36564c7 Bug 1413836 - Add a test to ensure delegatesFocus works correctly with real click on nested shadow dom trees r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D123860
2021-09-03 13:32:26 +00:00
Sean Feng ee6438ada7 Bug 1413836 - Enable WPT for delegatesFocus r=smaug
Depends on D123858

Differential Revision: https://phabricator.services.mozilla.com/D123859
2021-09-03 13:32:26 +00:00
Sean Feng 5c5ebb0de3 Bug 1413836 - Add delegatesFocus attribute to shadow dom r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D123858
2021-09-03 13:32:25 +00:00
moz-wptsync-bot a8bd0de51c Bug 1728936 - [wpt-sync] Update web-platform-tests to 2af53e681fe37f5b9f0f8d02ad3d60c95437821f, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: 2af53e681fe37f5b9f0f8d02ad3d60c95437821f
wpt-type: landing
2021-09-03 13:28:54 +00:00
Yutaka Hirano a9b72677be Bug 1728758 [wpt PR 30302] - Fix DCHECK failure on aborted response, a=testonly
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
2021-09-03 13:28:54 +00:00
Tom McKee c171a7e6b9 Bug 1728694 [wpt PR 30296] - [ResourceTiming]: Fix incorrect for-loop iteration, a=testonly
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
2021-09-03 13:28:53 +00:00
Marcos Cáceres 287a00d12f Bug 1728288 [wpt PR 30255] - Fix bad payments test, a=testonly
Automatic update from web-platform-tests
Fix bad payments test (#30255)

--

wpt-commits: 15994385e7413ae5e6248d0d1113f77a314a6371
wpt-pr: 30255
2021-09-03 13:28:53 +00:00
moz-wptsync-bot 60237e804f Bug 1721560 [wpt PR 29727] - Update wpt metadata, a=testonly
wpt-pr: 29727
wpt-type: metadata
2021-09-03 13:28:52 +00:00
bashi dbd50dae25 Bug 1721560 [wpt PR 29727] - Add Webtransport over HTTP/3 test server, a=testonly
Automatic update from web-platform-tests
Add Webtransport over HTTP/3 test server (#29727)

--

wpt-commits: 1903175e1e7241a16da454f69c1c62ba00963a4e
wpt-pr: 29727
2021-09-03 13:28:52 +00:00
moz-wptsync-bot 8e3714777c Bug 1728523 [wpt PR 30281] - Update wpt metadata, a=testonly
wpt-pr: 30281
wpt-type: metadata
2021-09-03 13:28:51 +00:00
Nidhi Jaju 8fc7f9a2ba Bug 1728523 [wpt PR 30281] - Add Content-Security-Policy WPTs for WebTransport, a=testonly
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
2021-09-03 13:28:51 +00:00
moz-wptsync-bot f56d85b3e4 Bug 1728722 [wpt PR 30299] - Update wpt metadata, a=testonly
wpt-pr: 30299
wpt-type: metadata
2021-09-03 13:28:50 +00:00
Antti Koivisto 2259a918f6 Bug 1728722 [wpt PR 30299] - Cascade layer @import tests, a=testonly
Automatic update from web-platform-tests
Cascade layer @import tests (#30299)

* Cascade layer @import tests

* Update css/css-cascade/layer-import.html

Co-authored-by: Tim Nguyen <nt1m@users.noreply.github.com>

Co-authored-by: Tim Nguyen <nt1m@users.noreply.github.com>
--

wpt-commits: aa53a501b570ccdea56a1e1435e361a4eb8c5131
wpt-pr: 30299
2021-09-03 13:28:50 +00:00
moz-wptsync-bot bfa55400f2 Bug 1728209 [wpt PR 30239] - Update wpt metadata, a=testonly
wpt-pr: 30239
wpt-type: metadata
2021-09-03 13:28:49 +00:00
Andreas Haas 4a525584aa Bug 1728209 [wpt PR 30239] - [wasm] Deprecate cross-origin module sharing, a=testonly
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
2021-09-03 13:28:49 +00:00
moz-wptsync-bot 962bd3b8e5 Bug 1728733 [wpt PR 30258] - Update wpt metadata, a=testonly
wpt-pr: 30258
wpt-type: metadata
2021-09-03 13:28:48 +00:00
Munira Tursunova f986aa2a30 Bug 1728733 [wpt PR 30258] - Implement font-synthesis-style functionality, a=testonly
Automatic update from web-platform-tests
Implement font-synthesis-style functionality

Implement of CSS property font-synthesis-style functionality, which
controls synthesized oblique. Added tests for web and system fonts.
Added helper methods that check if synthetic bold and italic are
allowed.

Bug: 509989
Change-Id: I2ebc55370626158230b7a8255aeb065a5fc2eea2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3128025
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/main@{#917571}

--

wpt-commits: 617ff01ccd64a0ec94812bb2f8a2134e864cdf24
wpt-pr: 30258
2021-09-03 13:28:48 +00:00
moz-wptsync-bot 0e4a80496b Bug 1728678 [wpt PR 30293] - Update wpt metadata, a=testonly
wpt-pr: 30293
wpt-type: metadata
2021-09-03 13:28:47 +00:00
Reilly Grant 80f87e3751 Bug 1728678 [wpt PR 30293] - Add test for ImageCapture.takePhoto() setOptions failure, a=testonly
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
2021-09-03 13:28:47 +00:00