Automatic update from web-platform-testsElement::setAttribute() modified to accept TrustedTypes
Element::setAttribute() modified to accept generic TrustedType
(StringOrTrustedHTMLOrTrustedScriptOrTrustedScriptURLOrTrustedURL)
(the name will be changed later).
This is the implementation used for setting attributes explicitly.
Added virtual GetCheckedAttributesNames() method, overriden in
HTMLXXXElement files, to return list of names of attributes that
need to have values checked against Trusted Types.
Added new implementations of Element::setAttribute(),
one per each Trusted Type, to be used internally
in HTMLElement functions.
Corrected existing TrustedXXX::GetString() implementations
to be concise.
Added TrustedScriptURL::GetString().
Bug: 739170
Change-Id: I3a9f51cbed5d75f8059141738b419cc66e529006
Reviewed-on: https://chromium-review.googlesource.com/1146563
Commit-Queue: Maja Kabus <kabusm@google.com>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588867}
--
wpt-commits: ef04d8b0f2e9a65ef82b33e03978ec0b34ec8c29
wpt-pr: 12764
Automatic update from web-platform-testsReturn a 404 when trying to access a .any.* path that doesn't exist. (#12849)
--
wpt-commits: cb4c37d196f1bf49f3c04b1ac077c392714b65ea
wpt-pr: 12849
Automatic update from web-platform-tests[css-properties-values-api] Reify values from styleMap.get.
This CL gives return values from element.styleMap.get the correct type
according to the current PropertyRegistration.
The expected behavior is exactly the same as for attributeStyleMap, so
those tests have been adapted to run for both API entry points.
Note: PrepopulatedComputedStylePropertyMap is available in worklets,
where the ExecutionContext is not a Document, but we don't need to
reify values in this case, because already-reified values are "pushed"
rather than "pulled". (See ::UpdateStyle).
Note: Exit ParseIfRegistered before registration lookup. This avoids
the lookup if we already know that we won't need it (which is the case
for [Prepopulated]ComputedStylePropertyMap).
Bug: 641877
Change-Id: Id54a22079c88368efccc372d01252fa3e7734d10
Reviewed-on: https://chromium-review.googlesource.com/1201302
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Anders Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588840}
--
wpt-commits: ba2287be3eb16c7c8b6f0ced3680a539309b2a14
wpt-pr: 12827
Automatic update from web-platform-tests[css-contain] Fix size containment in elements with scrollbars
To determine the size of an element with "contain: size"
we should treat it as having no contents
(https://drafts.csswg.org/css-contain/#containment-size).
Scrollbars are not part of the box's contents,
so we should take them into account to determine box size.
BUG=872794
TEST=external/wpt/css/css-contain/contain-size-scrollbars-001.html
Change-Id: I166af8469243a9c3b52c3e30569d1d81c3de6e9e
Reviewed-on: https://chromium-review.googlesource.com/1206210
Commit-Queue: Manuel Rego <rego@igalia.com>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588809}
--
wpt-commits: b778f69ee0d2a1080191d58f9d6eeb9c950b19d4
wpt-pr: 12840
Automatic update from web-platform-testsFetch: align CORS test with new "safelisted headers" rules
See https://github.com/whatwg/fetch/pull/736 for context.
--
wpt-commits: efa5cebbd4a2b5df055a12212c534b13052154b8
wpt-pr: 12797
Automatic update from web-platform-testsDevice Sensor: Remove placeholder enumerator values in the sensor::SensorType
According to the mojo style guide:
https://chromium.googlesource.com/chromium/src/+/master/docs/security/mojo.md#do-not-define-placeholder-enumerator-values
It is recommended not to define placeholder enumerator values. Currently,
sensor::SensorType defines two such values: FIRST and LAST. This CL removes
these two placeholder values.
Bug: 870781
Cq-Include-Trybots: luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: I8b275bc5680c8c0d97fe2e7208301d6f33236cbe
Reviewed-on: https://chromium-review.googlesource.com/1197423
Commit-Queue: Jun Cai <juncai@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588678}
--
wpt-commits: bdf21e69ffaeb96097dfbc0888e4d9eb5413fed2
wpt-pr: 12769
Automatic update from web-platform-testsdocument.open(): Test non-fully active documents (#12770)
For https://github.com/whatwg/html/pull/3977.
--
wpt-commits: 61bc4ecc726596e5ce8634752e09a5e8a20e060f
wpt-pr: 12770
Automatic update from web-platform-tests[Background Fetch] Record via UMA whether a fetch has duplicate requests
Also reject the registration if that happens with a warning, and add a
failing WPT test.
Bug: 871174, 780025
Change-Id: Ibdcc49bc47ea959e0c255a48f5d090cb865a6e45
Reviewed-on: https://chromium-review.googlesource.com/1202262
Reviewed-by: Steven Holte <holte@chromium.org>
Reviewed-by: Mugdha Lakhani <nator@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Commit-Queue: Rayan Kanso <rayankans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588614}
--
wpt-commits: 98c37ef258eb21fb1c3dbf508437e58be21c2145
wpt-pr: 12830
Automatic update from web-platform-testsbindings: Set function name for attribute accessors
This aligns the behavior with the current Web IDL specification as well as
Firefox and Safari.
Bug: 878074
Change-Id: Ia862c1d0d8319fb78726817b69f9151e5fb500fd
Reviewed-on: https://chromium-review.googlesource.com/1191727
Commit-Queue: Timothy Gu <timothygu@chromium.org>
Reviewed-by: Hitoshi Yoshida <peria@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588544}
--
wpt-commits: 31f62ee2b6103a94aafa6ffd5e205c8898f4b9ba
wpt-pr: 12765
Automatic update from web-platform-testsRemove kereliuk from suggested reviewers (#12829)
I'm no longer working on WPT to focus on a new project.
--
wpt-commits: a0f75fcad81bee1dbe35d30c94aed9b7630d9dda
wpt-pr: 12829
Automatic update from web-platform-testsString_list_directive created
Created a primitive version of function AllowTrustedTypePolicy
"require-trusted-types" changed into "trusted-types" and takes a list of policy names
createPolicy updated to throw when policy name is not allowed
Tests added for policy creation attempt when policy name is on the whitelist and when it isn't
Tests added fot policy creation attempt with no whitelist given
Poked at existing tests to change "require-trusted-types" into "trusted-types"
Removed boolean require_safe_types_ from csp_directive_list
Bug: 739170
Change-Id: Ida0188cf38f8edba8b966b2f708b7a7919d08b29
Reviewed-on: https://chromium-review.googlesource.com/1186325
Reviewed-by: Andy Paicu <andypaicu@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Commit-Queue: Orsolya Bernadett Batiz <orsibatiz@google.com>
Cr-Commit-Position: refs/heads/master@{#588496}
--
wpt-commits: 1de1550e95396f979da97620a289c213acaf55e2
wpt-pr: 12798
Automatic update from web-platform-testsWPT: More refactoring navigation-redirect.https.html
This makes the test more extensible. Preparation for adding tests for
the Clients API and resultingClientId. Specifically, the requestInfos
from the workers and the expectations will have a resultingClientId
in addition to the URL.
Bug: 876223, 778497
Change-Id: Id7c25a77f43f33d40b64ea77c2cf51a0745f57c6
Reviewed-on: https://chromium-review.googlesource.com/1203711
Commit-Queue: Matt Falkenhagen <falken@chromium.org>
Reviewed-by: Makoto Shimazu <shimazu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588479}
--
wpt-commits: d4fb17e0338a3b412af81244d7254cd2b9bc27a0
wpt-pr: 12820
Automatic update from web-platform-tests[WebSocket] Fix cookies/006.html?wss wpt
The websockets/cookies/006.html?wss test didn't work on any modern
browser because you can't set a secure cookie from JavaScript on an
insecure page. See
https://wpt.fyi/results/websockets/cookies/006.html%3Fwss.
Change the expectations to never see the cookie set.
Add a new test, 006.https.html, which runs over https so that the cookie
can be set. Unfortunately, due to mixed content checks, this can't test
the insecure "ws:" scheme, so it still doesn't cover all the cases the
original test intended to.
BUG=803200
Change-Id: I7e280ebc781c693529588a68cd5eef5332b730fa
Reviewed-on: https://chromium-review.googlesource.com/1203495
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588469}
--
wpt-commits: 5ea49ac887f0d4880819d24fe3bc85bc38b96ca7
wpt-pr: 12819
Automatic update from web-platform-tests[cookies] Remove cookies when tests complete (#12817)
Avoid test interactions by removing cookies at the completion of each
test. Use the `add_cleanup` feature of testharness.js to ensure that
this occurs regardless of the passing/failing status of each test.
Persist the existing "setup" logic which defensively removes cookies as
a precaution against still other tests which do not properly restore
global state.
This resolves a known instability caused by
`cookies/prefix/__secure.document-cookie.https.html`. That test sets a
cookie with a "Domain" attribute which
`cookies/prefix/__secure.header.https.html` is not written to remove.
--
wpt-commits: 88e4a9aa658f08de05f6a4d5354c30100c15e688
wpt-pr: 12817
Automatic update from web-platform-testsImplement TextEncoderStream and TextDecoderStream
Add support for streaming encoding and decoding via the
TextEncoderStream and TextDecoderStream.
See design doc
https://docs.google.com/document/d/17goe4jacAYjHHtprfVPSrqDvF_J58u2qirz0HQ58sQ4/edit
Modify transform_stream.cc so it doesn't claim every exception happened
during construction
Remove failing wpt expectations. Add a new test for TextDecoderStream
constructor and property behaviour.
BUG=845427
Change-Id: I538022680ef8e90f5eb2b11fd1775e902e7f25fd
Reviewed-on: https://chromium-review.googlesource.com/1174073
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588443}
--
wpt-commits: fc41987112cd5f0b1198b759ab63e828413a0ee3
wpt-pr: 12467
Automatic update from web-platform-testsHTML: test fieldset content before legend
--
wpt-commits: 7d5c48839d6e9bf65271141e1e4900e63411b23c
wpt-pr: 12810
Automatic update from web-platform-testsLint CSS-COLLIDING-TEST-NAME should treat foo and foo-manual as equivalent (#12813)
--
wpt-commits: 3b610ee654fc7b69fd83e6da3c26f7b39a1131f1
wpt-pr: 12813
Automatic update from web-platform-tests[eme] Ensure license is expired before using it (#8623)
This test generates a license that expires 1s from the current time, calls
update() with it, and then waits for 5s before calling play(). However,
Chrome caches a few frames in advance of play() being called. Depending on
the time granularity, the CDM may see a valid license and decode part of
the media file.
This change delays calling update() for 2s to ensure that the license has
expired, and ensures that the browser can't cache frames to use when play()
is called.
--
wpt-commits: 84097c6b8f84bc0d00c208bf7893cd0e10d654d5
wpt-pr: 8623
Automatic update from web-platform-testsFix missing close bracket in css/css-writing-modes/svg-aliasing-001.html (#12788)
--
wpt-commits: 3a58de991a53a5a358234a8ad4e3d7f8d733d34a
wpt-pr: 12788