I think I caught all the places in our tree that add event listeners for these
events on a non-Window (and hence depend on bubbling behavior), but I'm a
little worried about what happens if webextensions do bareword
addEventListener() for these events...
Differential Revision: https://phabricator.services.mozilla.com/D66798
--HG--
extra : moz-landing-system : lando
Automatic update from web-platform-tests
Plumb COEP reporter for requests initiated from a service worker
This adds COEP reporter for service worker contexts. CORP failures
happening on subresource requests initiated from a service worker are
reported to the COEP reporter owned by EmbeddedWorkerInstance.
Bug: 1056122
Change-Id: I7884487e0261b4d85bf98b5844c3e34c0b985ebe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2098166
Commit-Queue: Makoto Shimazu <shimazu@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749584}
--
wpt-commits: 418686f8133f02b6bcf9451522342747b266f1e2
wpt-pr: 22206
Automatic update from web-platform-tests
[client-hints] Add UA full version hint
This aligns the implementation with PR#79 [1], by adding both a JS API
and a Client Hint header that expose the browser's full version, and
removing Sec-CH-UA exposing the full version as a result of an opt-in.
[1] https://github.com/WICG/ua-client-hints/pull/79
Change-Id: Idb48b4ab17e5f80e2ecb950a7a3be63aa8099e0e
Bug: 1041883
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2093472
Auto-Submit: Yoav Weiss <yoavweiss@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Daniel Vogelheim <vogelheim@chromium.org>
Commit-Queue: Yoav Weiss <yoavweiss@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749548}
--
wpt-commits: 2b59a1ef857e16769d2cb230cc512fb914e9ed5d
wpt-pr: 22176
Automatic update from web-platform-tests
Fix Flaky Composite Order test
This patch fixes the flakiness in getting running-animation order by
making sure the animation is running before we make a measurement.
This test passed all 500 repeated run.
Bug: 1060216
Change-Id: I8b271e1e0d31dac0203aa3a7bb3359f7f1d1eec6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2099474
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Hao Sheng <haozhes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749528}
--
wpt-commits: bb7e53928c77ab258efbd4023cf8687fed27a4c7
wpt-pr: 22202
Automatic update from web-platform-tests
Plumb COEP reporter to a service worker
CORP check happens before a service worker sends the response back to
the client. This CL plumbs a reporter to notify a server of failures of
the check. Note that the error is going to the COEP reporter for the
client, not for the service worker because the check in
FetchRespondWithObserver is considered for the network request is
initiated by the client.
Bug: 1056122
Change-Id: Id8b83f8c506a78e15653a993e9471d9eab0532b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2094073
Commit-Queue: Makoto Shimazu <shimazu@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749513}
--
wpt-commits: 406e70921a39c45e51e1856f10ad74f1b875a03b
wpt-pr: 22188
Automatic update from web-platform-tests
Add same-origin visibility test for user activation.
Also tweak the existing test for crossorigin user activation visibility.
Change-Id: I814cd976f3389c89284d4db2db665464f7ee2689
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2096900
Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749293}
--
wpt-commits: 413a5f533f40757314d81ee99fed3f04a148ec00
wpt-pr: 22168
--HG--
rename : testing/web-platform/tests/html/user-activation/resources/activation-hierarchy-grandchild.html => testing/web-platform/tests/html/user-activation/resources/activation-hierarchy-crossorigin-grandchild.html
Automatic update from web-platform-tests
Fix timeout in update-and-send-events-replacment.html
The handling of iframe load events is finicky as indicated in the open
WHATWG issue:
https://github.com/whatwg/html/issues/490
This patch switches the wait mechanism to one that is well behaved
across browsers. The new process arms the listener before inserting the
iframe into the document.
Bug: 1059963
Change-Id: I372d4fdae3b270699aedf2c5a4de4429e62f42a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2096782
Reviewed-by: Yi Gu <yigu@chromium.org>
Commit-Queue: Kevin Ellis <kevers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748853}
--
wpt-commits: ee5cfa46292bdcdd576e698503f4a4a9ffa977c0
wpt-pr: 22160
Automatic update from web-platform-tests
Implemented Phase for ScrollTimelines
Implemented Phase for ScrollTimelines. Also updated Phase to match
current time model for internal and external behavior which will allow
phase to be accessed as an enum in animation.cc where it will be used
in different calculations.
Added unit test as well as a WPT test for ScrollTimeline Phases.
Bug: 1046833
Change-Id: Ib86f68b34ef91f4e70fdefd55bdb2629dc415a72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2084777
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Commit-Queue: Jordan Taylor <jortaylo@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#749231}
--
wpt-commits: b1a00b22058e6fa8893f69f2752adcb111c72b10
wpt-pr: 22074
Automatic update from web-platform-tests
Support getAnimations() for ShadowRoot
This patch makes Webanimation to support getAnimations() whose target
element is a shadow root on which this method is called.
Spec: https://drafts.csswg.org/web-animations/#extensions-to-the-documentorshadowroot-interface-mixin
Bug: 1046916
Change-Id: Ibb201fe3a8a21f3852d4f5135ce344238b1476c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2051768
Commit-Queue: Hao Sheng <haozhes@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749222}
--
wpt-commits: 3a555dbaa99c26825758f7a3c6b38b7aa965f275
wpt-pr: 22093
Automatic update from web-platform-tests
COOP: with COOP "same-origin" opener/name should be aligned
The two tests had inconsistent expectations as discovered by Valentin. When COOP is involved and COOP causes noopener to be set, we should simultaneously not copy over any name.
Unfortunately this was not clearly reflected by the specification, but is the intended behavior as the fewer unintentended communication channels the better.
--
wpt-commits: a74aa25543d131b783d8b24e625b9a87a8c586cb
wpt-pr: 22186
Automatic update from web-platform-tests
CORS: verify that bad preflight response headers fail the load
--
wpt-commits: 2f0cf365496719ff1a8f432522bf02e0b8785493
wpt-pr: 22135
Automatic update from web-platform-tests
webrtc: add more BUNDLE assertions
adding a positive test for "it bundles on the first transport and closed the second"
BUG=1058826
Change-Id: I1dad046855739d033f028385fb6caca288fa0cf7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2096763
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749114}
--
wpt-commits: 5c86a44cd5a4f6b7de63fe005b9558b2b5918a7f
wpt-pr: 22184
Automatic update from web-platform-tests
[css-flexbox] Delete redundant flex-wrap tests
These don't have a match so weren't being run:
third_party/blink/web_tests/external/wpt/css/css-flexbox/flex-wrap-001.htm
third_party/blink/web_tests/external/wpt/css/css-flexbox/flex-wrap_nowrap.html
third_party/blink/web_tests/external/wpt/css/css-flexbox/flex-wrap_wrap-reverse.html
third_party/blink/web_tests/external/wpt/css/css-flexbox/flex-wrap_wrap.html
These are failing in all browsers on wpt.fyi because they're not written
correctly:
third_party/blink/web_tests/external/wpt/css/css-flexbox/ttwf-reftest-flex-wrap-reverse.html
third_party/blink/web_tests/external/wpt/css/css-flexbox/ttwf-reftest-flex-wrap.html
And we already have these flex-wrap tests that encompass all the
behavior those above were trying to test:
flexbox-flex-wrap-default.htm
flexbox-flex-wrap-flexing.html
flexbox-flex-wrap-nowrap.htm
flexbox-flex-wrap-wrap.htm
flexbox-flex-wrap-wrap-reverse.htm
Fixed: 953534
Change-Id: I13d1c373da08db897548e9309058e25f75048f14
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2094545
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Auto-Submit: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749095}
--
wpt-commits: 7cb390c9ffc067383255b0906297943df332b289
wpt-pr: 22147
Automatic update from web-platform-tests
Change to plural |userAgentSpecificTypes|
This changes the name of the field to |userAgentSpecificTypes| from
|userAgentSpecificType|
Bug: 1049093
Change-Id: I7583c998bb5f0cc222e5df12bd54368b96895a3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2095129
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Auto-Submit: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748968}
--
wpt-commits: ebcb931b73c52f49bb17f1443ba54b21e90e0967
wpt-pr: 22161
Automatic update from web-platform-tests
Migrate image policies from feature policy to document policy
This CL migrates following features from feature policy to document policy:
- unoptimized-lossless-images
- unoptimized-lossless-images-strict
- unoptimized-lossy-images
- oversized-images
Following tests are being migrated to document policy:
- feature-policy-unoptimized-lossless-images
- feature-policy-unoptimized-lossless-images-strict
- feature-policy-unoptimized-lossy-images
- feature-policy-image-policies-with-border-radius
- feature-policy-unoptimized-images-cached-image
- unoptimized-lossy-images-reporting
- unoptimized-lossy-images-reporting-onload
- feature-policy-oversized-images
- feature-policy-oversized-images-edge-cases
- feature-policy-oversized-images-forced-layout
- feature-policy-oversized-images-responsive-image
- feature-policy-oversized-images-styles
- feature-policy-oversized-images-resize
- oversizsed-images-reporting
Changed the test content of
feature-policy-image-policies-with-border-radius. As
legacy-image-formats is removed, The bmp image is not expected to be
blocked. Previously ekaramad@ removed allow=”legacy-image-formats” in
the test but did not update the expected png file in CL(
https://chromium-review.googlesource.com/c/chromium/src/+/1548869).
Also removed flaky expectations on test
feature-policy-image-policies-with-border-radius.
Following web tests are removed:
- external/wpt/feature-policy/parameters/
Bug: 993790
Change-Id: I10e5c4a646efcfab1cdc757c012ae35e75a42241
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2058702
Commit-Queue: Charlie Hu <chenleihu@google.com>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Reviewed-by: Ian Clelland <iclelland@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748930}
--
wpt-commits: 3bf9565b16741968f6b02d55e6f359285fd4a414
wpt-pr: 21908
--HG--
rename : testing/web-platform/tests/feature-policy/reporting/oversized.jpg => testing/web-platform/tests/document-policy/reporting/oversized.jpg
rename : testing/web-platform/tests/feature-policy/reporting/unoptimized-image.jpg => testing/web-platform/tests/document-policy/reporting/unoptimized-image.jpg
Automatic update from web-platform-tests
bluetooth: getDevices() implementation
This change implements getDevices() which returns a list of
WebBluetoothDevice objects that the current site has permission to
access. If the kWebBluetoothNewPermissionsBackend flag is enabled, the
list of devices will contain all of the permitted devices. If the flag
is not enabled, then the list of devices will contain the permitted
devices that are currently connected to the system.
Design doc:
https://docs.google.com/document/d/1h3uAVXJARHrNWaNACUPiQhLt7XI-fFFQoARSs1WgMDM/edit#heading=h.5ugemo7p04z9
Bug: 577953
Change-Id: I9785f24ee46ac634b6a96d6146f54da37d132a4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2044660
Commit-Queue: Ovidio de Jesús Ruiz-Henríquez <odejesush@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Vincent Scheib <scheib@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748917}
--
wpt-commits: 298c1a238766be0140170f39e5c883fe2ca00ac3
wpt-pr: 21972
Automatic update from web-platform-tests
WPT: Deflake some Indexed DB tests
Noticed as flakes in wpt-firefox-stability-nightly, interfering
with landing some other tests.
These tests don't use helpers to ensure unique database names and are
sensisive to residue left by previous tests, e.g. if the cleanup
functions don't run. Make the tests somewhat more robust by ensuring
unique names and deleting state left by previous runs.
Change-Id: Ie2cb5672f12c0fed0e6ff53900f16e5ba8998262
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2086452
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Commit-Queue: Joshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748914}
--
wpt-commits: 0669d1c55b206b3d4ab5dfe22c118791ead205a7
wpt-pr: 22090
Automatic update from web-platform-tests
[NativeFS] Update web tests to use new writing API.
And remove tests for the old/soon to be removed writing API.
Bug: 853326
Change-Id: Ief44f98be8b59844976de26c90df9b4933041188
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2095564
Reviewed-by: Olivier Yiptong <oyiptong@chromium.org>
Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748758}
--
wpt-commits: afb12c96d94c64b056989284c3c90084d2e560c1
wpt-pr: 22150
Automatic update from web-platform-tests
Update admin docs (#22148)
* Add an emergency playbook in the wake of #21424
* Update contacts by the way
Co-Authored-By: Michael[tm] Smith <mike@w3.org>
--
wpt-commits: 90d1be516a4db2f71ffac6ec2dc3f3c44bc1bf5b
wpt-pr: 22148
Automatic update from web-platform-tests
[Security] Remove proxies and opener on COOP's Browsing instance swaps
This removes the relationship between the opener and opened window
during a Cross-Origin-Opener-Policy(COOP) triggered browsing instance
swap, as described in [1].
Which is done by:
- Keeping the |require_coop_browsing_instance_swap| boolean beyond the
navigation request scope as it is needed after its destruction.
- Removing render frame proxies to unrelated site instances within
CommitPending, after the creation of the swap out proxy.
- Deleting the |FrameTreeNode::opener_| (setting it to nullptr).
Most of the WPTs expectations were removed, except for the
CrossOriginIsolated bit which is not implemented yet. This required a
few changes to the tests (mainly common.js) as the change of the window
proxy may be delayed until the previous render frame is unloaded. Which
might take some time since several tests are run in parallel.
This can become immediate by addressing the TODO in [2], but this has
side effects that are not well understood yet.
Some tests are also crashing due to specificities of the test code,
which is being addressed in https://crrev.com/c/2074482.
[1] https://docs.google.com/document/d/1M9dYuKpUMVxWfufhJFPpdAR0rbDVQIYe-YFZWsfs9VQ/edit#heading=h.8uxfgpakgc0
[2] https://source.chromium.org/chromium/chromium/src/+/master:content/browser/frame_host/render_frame_proxy_host.cc;drc=70a2e4eb2bce58d4817b538f0249afb366245dda;l=121?originalUrl=https:%2F%2Fcs.chromium.org%2F
Change-Id: I2b69af8b20035a4b5d6f99795b4a05c4548da728
Bug: 922191
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2062335
Commit-Queue: Camille Lamy <clamy@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Auto-Submit: Pâris Meuleman <pmeuleman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748656}
--
wpt-commits: 356d989b2b5d06448ac2b167833db21553a4bf29
wpt-pr: 22015
Automatic update from web-platform-tests
Update performance.measureMemory to the latest proposal
This changes the |type| field of the result to |userAgentSpecificType|
that contains a list of memory types instead of a string.
Bug: 1049093
Change-Id: I313135f8c23f6a7cd00d0861bdd9ef9017846d40
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2096444
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748661}
--
wpt-commits: 63d868ddd979a22b1389ab3b46633ffed776de53
wpt-pr: 22154
Automatic update from web-platform-tests
webrtc: add WPT for unbundled connections
adds a web platform test which asserts that not negotiating
https://tools.ietf.org/html/draft-ietf-mmusic-sdp-bundle-negotiation
results in different ICE transports.
BUG=1058826
Change-Id: I0c83c1092808d84c8ad876a97b9ba4661b340ccd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2095537
Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com>
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748645}
--
wpt-commits: 9ced7dc56eb077a371dded8dbf37211ecb79ec00
wpt-pr: 22152