Automatic update from web-platform-tests
LazyLoad: Add test for deferred images using attributes at parse time
This CL adds tests for base URL, referrer-policy and crossorigin state
at parse time are retained when the deferred frame is loaded-in.
Bug: 984983
Change-Id: Ifab76a15a4addf750251cbfd0e6849c535b95531
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1719445
Commit-Queue: rajendrant <rajendrant@chromium.org>
Reviewed-by: Tarun Bansal <tbansal@chromium.org>
Reviewed-by: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682123}
--
wpt-commits: f5d30dadbd7f158898c64aa6fdb1cd843f54fd1d
wpt-pr: 18087
Automatic update from web-platform-tests
Remove XRWebGLLayer.context attribute
It was removed from the latest version of the WebXR spec.
Bug: 987026
Change-Id: I44186ad46827dee8227e07b9f5039ff3ee5217aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1721048
Reviewed-by: Alexander Cooper <alcooper@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Brandon Jones <bajones@chromium.org>
Commit-Queue: Jacob DeWitt <jacde@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682062}
--
wpt-commits: 9cefb45585f175f4bf663e1069f0fb14b5237ef5
wpt-pr: 18120
Automatic update from web-platform-tests
Remove XRDeviceImpl
The WebXR API used to have an intermediate device that must be obtained
prior to requesting sessions. This device was removed from the API.
This change removes the implementation backing it (across a mojo
boundary) in the browser process.
Effectively this change merges XRDeviceImpl and VRServiceImpl and
simplifies some parts of the code related where multiple async
operations were required.
Bug: 944987
Change-Id: If1c426baab8e3149059f32773e9a21313769df0b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1676344
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Klaus Weidner <klausw@chromium.org>
Reviewed-by: Alexander Cooper <alcooper@chromium.org>
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682057}
--
wpt-commits: 76d99090df4409748a5eb44dfaa91f9bddf8f7da
wpt-pr: 17632
Automatic update from web-platform-tests
Set WebXR Gamepad.index to -1
Bug: 974058
Change-Id: I7330d1d79df05f040956e920757074d8135387f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1721037
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Alexander Cooper <alcooper@chromium.org>
Commit-Queue: Jacob DeWitt <jacde@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682017}
--
wpt-commits: 620a86bfcceb548cf0ddb7e1c528e8edb89c6226
wpt-pr: 18118
Automatic update from web-platform-tests
Remove XRLayer
Now, only XRWebGLLayer is defined by the spec and it does not inherit
from XRLayer.
Bug: 987023
Change-Id: Iaf4f878b33ef816df1e85a39642dea25f318bfa3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1721929
Reviewed-by: Mounir Lamouri <mlamouri@chromium.org>
Reviewed-by: Brandon Jones <bajones@chromium.org>
Commit-Queue: Jacob DeWitt <jacde@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681905}
--
wpt-commits: cd3b99a919f2d8119d94c21de51dbbda315f408f
wpt-pr: 18119
Automatic update from web-platform-tests
[wptserve] Validate alternate_host configuration (#17943)
Some values of `alternate_host` will invalidate tests. Script the server
to refuse to run if the operator supplies an inappropriate value.
--
wpt-commits: b683b48465900b5585bf08ee4b6c25b219944333
wpt-pr: 17943
Automatic update from web-platform-tests
MathML: Add tests to check legacy mathsize values (#18037)
These values have been removed from MathML Core ( https://github.com/mathml-refresh/mathml/issues/7 )
--
wpt-commits: 54f7b9af46a8a8b6e9d43907d19d3250cbfbc83e
wpt-pr: 18037
Automatic update from web-platform-tests
MathML: remove msqrt test from direction-overall.html (#18156)
This test is no longer valid now that dir is supported in the msqrt element.
The child positions are already tested in writing-mode-002.html.
--
wpt-commits: 8f4701ee191bd368f440a310a095672f6cae7ca2
wpt-pr: 18156
Automatic update from web-platform-tests
MathML: Add generic tests for layout in various writing modes. (#18143)
* MathML: Add generic tests for layout in various writing modes.
This relies on the basic templates from mathml-fragments to cover at least
all MathML elements, but more advanced cases might be added later.
Additional changes:
- mathml/support/mathml-fragments.js: msub, msup and msubsup cannot contain
arbitrary children so remove the mathml-container tag.
- mathml/support/layout-comparison.js: check that the children of element and
reference have the same display values and skip those that have
"display: none" since they are not laid out.
--
wpt-commits: a972fe4b170e31107a3429299de738af881a53e2
wpt-pr: 18143
Automatic update from web-platform-tests
Add test to check visual rendering of padding/border/margin on the mrow element. (#18145)
--
wpt-commits: 1c97ca89d6d15b38fd66842d7d23f321f7ade664
wpt-pr: 18145
Automatic update from web-platform-tests
Remove mathml/relations/css-styling/padding-border-margin/padding-003.html (#18137)
This contains invalid markup for none/mmultiscripts and is already tested in padding-002 for mspace.
--
wpt-commits: aac3672ccc0dfcc5ae4ca062225eb0ab53b3c820
wpt-pr: 18137
Automatic update from web-platform-tests
[css-properties-values-api] Improve 'invalid at computed-value time' WPT
This verifies that a reference to a cycle or 'guaranteed-invalid value' [1]
behaves as 'unset' for custom properties registered with inherits=true.
We already have tests that verify the same for inherits=false, but the
inherits=true case is important to check that we're actually using 'unset'
behavior, and not 'initial' behavior.
[1] https://drafts.csswg.org/css-variables/#guaranteed-invalid
Bug: 980930
Change-Id: I1c478f65eeca6b528766ebe023a7179442263285
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1722836
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681755}
--
wpt-commits: 9bca3a3de1f857520956056ea04b541c7977b566
wpt-pr: 18139
Automatic update from web-platform-tests
[webnfc] NFCReader.html -> NFCReader.https.html and make it pass
This CL renames the wpt test NFCReader.html to NFCReader.https.html
because WebNFC API is available only in secure contexts, then fixes the
code to make it pass.
BUG=520391
Change-Id: Id8f584c7ced901f15b087aec5f96fd83ba8f6d68
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1720154
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com>
Commit-Queue: Leon Han <leon.han@intel.com>
Cr-Commit-Position: refs/heads/master@{#681752}
--
wpt-commits: 3e43b47d07712aee8d02a6c0f960dfe0cf4eb198
wpt-pr: 18107
Automatic update from web-platform-tests
Eliminate DeprecatedLower in Element::LocalNameForSelectorMatching()
This patch changes Element::LocalNameForSelectorMatching() to
use LowerASCII instead of DeprecatedLower.
DeprecatedLower has partial Unicode conversions, such as
converting U+212A to 'k', but lowering only ASCII is mandated
by the spec:
https://www.w3.org/TR/selectors-4/#case-sensitive
Currently, there are 6 usages of AtomicString::DeprecatedLower
and 37 usages of String::DeprecatedLower. This patch reduces
one of the 6 usages.
Bug: 627682
Change-Id: I49bdbbae645a287bf6dacdcb0a6481f7eb93c022
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1720642
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Auto-Submit: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681724}
--
wpt-commits: d6dc091ed8362637dc39cf94bed3ef1c73a2b66a
wpt-pr: 18115
Automatic update from web-platform-tests
MathML: Add tests for mrow layout in different writing modes. (#18128)
This also introduces new helper functions for future writing mode tests.
--
wpt-commits: 4b80026622619da0ccdad9d49d65ac80d89eb483
wpt-pr: 18128
Automatic update from web-platform-tests
Add test for sideways writing-mode (#18127)
--
wpt-commits: aef14686d9c71e64782cb0a102dc7cdf7e0a2cfa
wpt-pr: 18127
Automatic update from web-platform-tests
Add padding/border/margin tests for more MathML elements. (#18121)
* Add padding/border/margin tests for more MathML elements.
This also introduces useful helpers in mathml-fragments.js
--
wpt-commits: e079873c1f30f13e23388a86b2b5beeddd349c78
wpt-pr: 18121
Automatic update from web-platform-tests
Fix border-001.html (#18113)
The border style also needs to be set before the widths have any effect.
To keep things non intrusive transparent is chosen for the color.
--
wpt-commits: 7bfa241671d6ca921229f6601d2d7b70dd55da90
wpt-pr: 18113
Automatic update from web-platform-tests
[css-writing-modes] tests propagation of writing-mode and direction from body to root (#18114)
--
wpt-commits: 3da813a3818539a4ce3ca996281723ca9bc4c878
wpt-pr: 18114
Automatic update from web-platform-tests
Add tests to check mapping of CSS attributes. (#18111)
This also introduce a new helper to generate MathML fragments for each tag.
--
wpt-commits: ed46be30657580c975499e8dd7998aa51d7fc6e5
wpt-pr: 18111
Automatic update from web-platform-tests
Add missing renderer-side check for navigator.cookieEnabled.
We weren't doing the renderer-side security checks for navigator.cookieEnabled,
so they would get rejections browser-side. I am not sure this is the real
cause of 983090, but it is a real bug.
This became an issue after the big port of document.cookie (and navigator.cookieEnabled)
to RestrictedCookieManager, as previously-used RenderFrameMessageFilter::OnCookiesEnabled
was missing browser-side checks, while the new RestrictedCookieManager::CookiesEnabledFor
has them.
Bug: 983090
Change-Id: I12bd582c952691276ed149fb44d1c4a07f564fdb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715601
Commit-Queue: Maks Orlovich <morlovich@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681364}
--
wpt-commits: 744eb4db76cecc379c9529937a8a634d013eb9e6
wpt-pr: 18050
Automatic update from web-platform-tests
Reland "Re-write test pointerevent_pointermove_in_pointerlock.html"
This reverts commit 02efc0f4be0797b2c151e4aa598b125a6eccf191.
Reason for revert: [Cherry-picked & WIP] reland with fixing the test.
Original change's description:
> Revert "Re-write test pointerevent_pointermove_in_pointerlock.html"
>
> This reverts commit 9b7bafff73e59dc5d0cfcd0f499aa20be66bca54.
>
> Reason for revert: Causing leak failures on WebKit Linux Leak bot
>
> https://luci-milo.appspot.com/p/chromium/builders/ci/WebKit%20Linux%20Leak/2348
>
> Original change's description:
> > Re-write test pointerevent_pointermove_in_pointerlock.html
> >
> > The test was failing in wpt because it passing non-integer value to
> > test driver. This CL changes it to use "origin" instead.
> > This CL rewrites the test to makes it cleaner, instead of adding event
> > listener inside event listener.
> > This CL also changes the test to send the "move" events after receiving
> > pointerlockchange.
> >
> > Bug: 986277
> > Change-Id: I0f51523c3c90791339877b2e51afa8e9a4cc9d4d
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717195
> > Reviewed-by: Lan Wei <lanwei@chromium.org>
> > Commit-Queue: Ella Ge <eirage@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#680563}
>
> TBR=lanwei@chromium.org,eirage@chromium.org
>
> Change-Id: Ia53d1066363ceaf804f61ada369a4126c859f875
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 986277
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1716038
> Reviewed-by: Noel Gordon <noel@chromium.org>
> Commit-Queue: Noel Gordon <noel@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#680743}
TBR=noel@chromium.org,lanwei@chromium.org,eirage@chromium.org
Bug: 986277
Change-Id: I9b104597d2965261104e5842855ab235bdec8081
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1719227
Reviewed-by: Ella Ge <eirage@chromium.org>
Reviewed-by: Noel Gordon <noel@chromium.org>
Commit-Queue: Ella Ge <eirage@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681360}
--
wpt-commits: 2bf3a6d07ee2350d763954327a73a5098fe4122a
wpt-pr: 18090
Automatic update from web-platform-tests
[ImageCapture] Add pan/tilt constraint and wire in Linux/CrOS.
Pan and Tilt Constraints are part of the UVC spec.
For Linux/CrOS, we can use V4L2 controls like
(V4L2_CID_PAN_ABSOLUTE and V4L2_CID_TILT_ABSOLUTE).
Spec: https://github.com/w3c/mediacapture-image/pull/182
Test Page: https://riju.github.io/WebCamera/samples/panTilt/
Putting Pan/Tilt feature behind a flag:
chrome --enable-blink-features=MediaCapturePanTilt
Intent to Implement and Ship discussions:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/j-Q08QgBipM/F3a5sau1BwAJ
Bug: 934063
Change-Id: I552c4c8be717c3b67c4d91f826a1f16850430fa4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1508519
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Miguel Casas <mcasas@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Commit-Queue: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com>
Cr-Commit-Position: refs/heads/master@{#681332}
--
wpt-commits: c019cf8328f1b985a37936ff2d617053f09aa3c1
wpt-pr: 15741
Automatic update from web-platform-tests
Remove element from whitespace reattach set when detached.
An element is added to the set if a child is removed in order to force
an update of whitespace siblings. Removing a child doesn't cause a
style recalc or layout tree rebuild, but removing an inline element
between say two whitespace nodes makes one of the whitespace LayoutTexts
unnecessary. We keep this set until the next lifecycle update and marks
the elements in the set for layout tree rebuild to reach the whitespace
children. We skip these nodes if the layout object had been detached in
the meantime.
What happens here, however is that we didn't remove the elements from
the set when the elements were removed from the document. In this case
it is even adopted into a different document and gets a new layout
object in that document's layout tree.
When the original document gets its lifecycle update, we try to rebuild
the layout tree of the element which is now in a different document and
DCHECKs fail for style dirtiness.
Bug: 981384
Change-Id: I26fe3a8ac2c6b8994e6d4ad9593a8476422a0535
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1719345
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681312}
--
wpt-commits: 5fb2692263f71ff8cb1b8af8349c3873d69e6ba5
wpt-pr: 18091
Automatic update from web-platform-tests
Reland "[LargestContentfulPaint] Set startTime"
This reverts commit 6df4545104337f8087db2c39ebb2ff8f8b03ac89.
Reason for revert: Reverting the revert might "fix" the test now that the failures are expected after a new wpt roll:
https://crrev.com/219a669145c403c99e3d7f441abbaad0e5d23a90/third_party/blink/web_tests/platform/win7/virtual/scalefactor200withoutzoom/external/wpt/largest-contentful-paint/observe-after-untrusted-scroll-expected.txt
Original change's description:
> Revert "[LargestContentfulPaint] Set startTime"
>
> This reverts commit 58051e426031caabd8ae28b96a9be1f92f3cd913.
>
> Reason for revert: Most suspicious CL for failing paint-related test
> failures as mentioned in the linked bug.
>
> Bug: 987915
>
> Original change's description:
> > [LargestContentfulPaint] Set startTime
> >
> > Currently startTime is 0, which is a problem because getEntries()
> > methods all sort by startTime. To help with this problem, we set the
> > startTime to renderTime, if available, or to loadTime, if renderTime is
> > nt available.
> >
> > Bug: 965505
> > Change-Id: Ie70b69269f7ce4be0fdc94f33a44a84e062d3ba5
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1719379
> > Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
> > Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#681147}
>
> TBR=npm@chromium.org,yoavweiss@chromium.org
>
> Change-Id: Ie810b8a3ac88369ab73a66670865f462f590e1ec
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 965505
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1719351
> Reviewed-by: Friedrich [CET] <fhorschig@chromium.org>
> Commit-Queue: Friedrich [CET] <fhorschig@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#681224}
TBR=npm@chromium.org,fhorschig@chromium.org,yoavweiss@chromium.org
Change-Id: I02478f0c560c64268593c3a9df158b4e505f4667
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 987915, 965505
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1720811
Reviewed-by: Friedrich [CET] <fhorschig@chromium.org>
Commit-Queue: Friedrich [CET] <fhorschig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681269}
--
wpt-commits: 7706c8a1c449aba22110e597bc223ebd7682f042
wpt-pr: 18110
Automatic update from web-platform-tests
Revert "[LargestContentfulPaint] Set startTime"
This reverts commit 58051e426031caabd8ae28b96a9be1f92f3cd913.
Reason for revert: Most suspicious CL for failing paint-related test
failures as mentioned in the linked bug.
Bug: 987915
Original change's description:
> [LargestContentfulPaint] Set startTime
>
> Currently startTime is 0, which is a problem because getEntries()
> methods all sort by startTime. To help with this problem, we set the
> startTime to renderTime, if available, or to loadTime, if renderTime is
> nt available.
>
> Bug: 965505
> Change-Id: Ie70b69269f7ce4be0fdc94f33a44a84e062d3ba5
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1719379
> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
> Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#681147}
TBR=npm@chromium.org,yoavweiss@chromium.org
Change-Id: Ie810b8a3ac88369ab73a66670865f462f590e1ec
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 965505
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1719351
Reviewed-by: Friedrich [CET] <fhorschig@chromium.org>
Commit-Queue: Friedrich [CET] <fhorschig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681224}
--
wpt-commits: bc60e6f82132cfc9a5b688c566c7772024b3c15c
wpt-pr: 18108
Automatic update from web-platform-tests
MathML: Split color-1 and visibility-1 into smaller tests. (#18105)
This makes easier to debug, allows finer control on failure expectations and
more accurate references to spec sections. Feature detections are also
performed for the individual fraction, radical and menclose tests
to avoid false negative results.
Add feature detection for root and menclose too.
--
wpt-commits: e3d51119c3d46646de3c00a68bd6f463c4d097f3
wpt-pr: 18105
--HG--
rename : testing/web-platform/tests/mathml/relations/css-styling/color-1-ref.html => testing/web-platform/tests/mathml/relations/css-styling/color-001-ref.html
rename : testing/web-platform/tests/mathml/relations/css-styling/color-1-ref.html => testing/web-platform/tests/mathml/relations/css-styling/color-002-ref.html
rename : testing/web-platform/tests/mathml/relations/css-styling/color-1-ref.html => testing/web-platform/tests/mathml/relations/css-styling/color-003-ref.html
rename : testing/web-platform/tests/mathml/relations/css-styling/color-1-ref.html => testing/web-platform/tests/mathml/relations/css-styling/color-004-ref.html
rename : testing/web-platform/tests/mathml/relations/css-styling/visibility-1-ref.html => testing/web-platform/tests/mathml/relations/css-styling/visibility-001-ref.html
rename : testing/web-platform/tests/mathml/relations/css-styling/visibility-1-ref.html => testing/web-platform/tests/mathml/relations/css-styling/visibility-002-ref.html
rename : testing/web-platform/tests/mathml/relations/css-styling/visibility-1-ref.html => testing/web-platform/tests/mathml/relations/css-styling/visibility-003-ref.html
rename : testing/web-platform/tests/mathml/relations/css-styling/visibility-1-ref.html => testing/web-platform/tests/mathml/relations/css-styling/visibility-004-ref.html
Automatic update from web-platform-tests
MathML: Use feature detection in more tests to avoid false negative results (#18104)
* MathML: Use feature detection in more tests to avoid false negative results.
* direction-token-ref.html: use style="direction: rtl;" for the reference instead of dir="rtl", otherwise nothing is actually tested. This matches how it is in WebKit's repository.
* displaystyle-1.html: Verify that the sibling of the mfrac actually draws large operator bigger, otherwise test passes when displaystyle/largeop are not supported at all.
* feature-detection.js: Add feature detection for the dir attribute.
* html5-tree/display-1.html also relies on mspace support.
--
wpt-commits: 092345c265335fc722353f049e5a1b1851744260
wpt-pr: 18104
Automatic update from web-platform-tests
[LargestContentfulPaint] Set startTime
Currently startTime is 0, which is a problem because getEntries()
methods all sort by startTime. To help with this problem, we set the
startTime to renderTime, if available, or to loadTime, if renderTime is
nt available.
Bug: 965505
Change-Id: Ie70b69269f7ce4be0fdc94f33a44a84e062d3ba5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1719379
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681147}
--
wpt-commits: 10f3317909fa85cbed876da201871dcb735ad6f0
wpt-pr: 18088
Automatic update from web-platform-tests
[WPT/referrer-policy] Move delivery_type control out of test_expansion
A subsequent CL [1] will introduce `delivery_type_schema`
that controls relationship between source contexts,
subresource types, and delivery types.
As a preparation, this CL removes the restriction on `delivery_type`
specified in `elements-not-supporting-attr-referrer`,
`elements-not-supporting-rel-noreferrer`, and
`test_expansion` entries, that will be replaced by
`delivery_type_schema` in [1].
Generated files will be updated after some more changes, not now.
Also, changes needed in JavaScripts to handle new generated values
are not included in this CL and will land later.
Just after this CL, the generator produces more files than before
due to lack of `delivery_type_schema`, but this will be fixed
by [1].
[1] https://chromium-review.googlesource.com/c/chromium/src/+/1586548
Bug: 906850
Change-Id: I3d6ecfc6fc377864884f367ba554c2a7fafac671
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717535
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681098}
--
wpt-commits: cf7b59d32e9dc4e00749fd6e5de13dc16872709c
wpt-pr: 18101
Automatic update from web-platform-tests
[WPT/common/security-features] Update origin and redirection values
Generated files will be updated after some more changes, not now.
Also, changes needed in JavaScripts to handle new generated values
are not included in this CL and will land later.
Bug: 906850
Change-Id: If7248e72693df8db1efb4502d2c9e201866b5817
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717475
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681094}
--
wpt-commits: f24470081d3bb009db67a0ce9812b587f75e34de
wpt-pr: 18099
Automatic update from web-platform-tests
[WPT/referrer-policy] Merge target_protocol and origin
As we've already merged `target_protocol` and `origin` into one
`origin` value in underlying JavaScripts, this CL applies
this conversion also in generators.
Generated files will be updated after some more changes, not now.
Also, changes needed in JavaScripts to handle new generated values
are not included in this CL and will land later.
spec.src.json changes are made by:
originTypeConversion = {
"same-origin-http": "same-http",
"same-origin-https": "same-https",
"cross-origin-http": "cross-http",
"cross-origin-https": "cross-https"
}
for test_expansion in sum([s['test_expansion'] for s in spec["specification"]],
[]) + spec["excluded_tests"]:
if 'target_protocol' in test_expansion:
protocols = test_expansion['target_protocol']
origins = test_expansion['origin']
if protocols == '*':
protocols = ['http', 'https']
if origins == '*':
origins = ['same-origin', 'cross-origin']
if isinstance(protocols, unicode):
protocols = [protocols]
if isinstance(origins, unicode):
origins = [origins]
new_origins = []
for protocol in protocols:
for origin in origins:
new_origins.append(originTypeConversion[origin + '-' + protocol])
if len(set(new_origins)) == 4:
new_origins = u"*"
if len(new_origins) == 1:
new_origins = new_origins[0]
test_expansion['origin'] = new_origins
del test_expansion['target_protocol']
spec['test_expansion_schema']['origin'] = [
"same-http", "same-https", "cross-http", "cross-https"
]
del spec['test_expansion_schema']['target_protocol']
Bug: 906850
Change-Id: Iaf4af8c0b599f9cc843244658a2db7577dddeb4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717470
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681090}
--
wpt-commits: 77c921beffddee27d024c21374dd48113edd4111
wpt-pr: 18098
Automatic update from web-platform-tests
[Layout] bugfix: Update scrollable area after overflow recalc
Bug is:
<container overflow:scroll>
<target transform:scale(1)>
Initially, container's scrollbars are disabled.
When target changes its scale and grows outside of container,
scrollbars were not updated.
Fix#1 is to call UpdateScrollbarEnabledState. This resulted in
scrollbars being painted, but not clickable.
Fix#2, calling UpdateScrollableAreaSet makes scrollbars
clickable too.
Fix#2 was an educated guess.
Bug: 926167
Change-Id: I02454047c87aaecede9c56db1c02bbd1b21b15c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1704218
Commit-Queue: Aleks Totic <atotic@chromium.org>
Reviewed-by: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681091}
--
wpt-commits: a00fc0867640cf60333bc8831fad1170881e67d7
wpt-pr: 17868
Automatic update from web-platform-tests
[WPT/referrer-policy] Rename referrer_policy to delivery_value
To use common structures and names in referrer-policy and
mixed-content tests, this CL
- Renames `referrer_policy` to `delivery_value`, and
- Moves it under `test_expansion`, because in mixed-content
tests `delivery_value` can be different among multiple
`test_expansion` entries under a single `specification` entry.
Accordingly, `referrer_policy_schema` is moved to
`test_expansion_schema`'s `delivery_value`, and
related checks in spec_validator are removed.
Generated files will be updated after some more changes, not now.
Bug: 906850
Change-Id: I28beb09ab2eb4c69ec598de415d81cd1c8f77765
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717592
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681076}
--
wpt-commits: bfc2f55ee13c6884059d9d5058a0ec02cf01f239
wpt-pr: 18095
Automatic update from web-platform-tests
[WPT/mixed-content] Tentatively rename source_scheme to source_protocol
To use common names in referrer-policy and
mixed-content tests.
The final goal is to rename all to `source_scheme` (which is done in
https://chromium-review.googlesource.com/c/chromium/src/+/1718991).
This CL renames first `source_scheme` to `source_protocol`,
just to avoid rebasing in a long chain of commits.
Generated files will be updated after some more changes, not now.
Bug: 906850
Change-Id: Ic89e60e8a5f2f2780ad416ef189cfc5d1ad1b16e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717115
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681061}
--
wpt-commits: bb133fdd5ace2f947f43dae92f6d6b278b445205
wpt-pr: 18094
Automatic update from web-platform-tests
[WPT/referrer-policy] Rename delivery_method to delivery_type
To align spec.src.json with other parts of common/security-features/
such as common.js.
Generated files will be updated after some more changes, not now.
Bug: 906850
Change-Id: I87479bcf8ec6cdbf08e10a38a79885940b51e457
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1716109
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681065}
--
wpt-commits: 31c6b94c1b38c75a5e0a2cd93918c0e5009a89b1
wpt-pr: 18093
Automatic update from web-platform-tests
[WPT/mixed-content] Restructure opt_in_method into delivery_type/value
This CL rewrites `opt_in_method` so that both
mixed-content and referrer-policy tests uses
`delivery_type` and `delivery_value`.
Mapping:
| Before this CL | After this CL |
| opt_in_method | delivery_type | delivery_value |
+-------------------+---------------+----------------+
| "no-opt-in" | "meta" | null |
| "meta-csp" | "meta" | "opt-in" |
| "http-csp" | "http-rp" | "opt-in" |
| "img-crossorigin" | Removed |
"img-crossorigin" was removed because it was not implemented.
Generated files will be updated after some more changes, not now.
Bug: 906850
Change-Id: I4ea4571ee1c1312fe8fbc35590548a8021141258
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717107
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681057}
--
wpt-commits: 47cc9ef82b9ba914f3cb17c4a08fcf3960441021
wpt-pr: 18092
Automatic update from web-platform-tests
[WPT/referrer-policy] Rename referrer_url to expectation
To use common names in referrer-policy and
mixed-content tests.
Generated files will be updated after some more changes, not now.
Bug: 906850
Change-Id: Icdb979d429f08a908a74f7f6012b4c0b7dc50c8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717319
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681055}
--
wpt-commits: 0771c1fa77efba15a4022c21a70740d637c02b9d
wpt-pr: 18067
Automatic update from web-platform-tests
[PE]: Improve the interest rect computation under perspective.
This patch tries to normalize some of the rects we deal with when
performing interest rect calculations. This is done by capping the
ranges of numbers that we may encounter, in order to produce more
stable results.
The upside of this is that we will paint more content that we would
otherwise erroneously assume to be not intersecting the viewport
(even after padding).
The downside of this is that we may paint more content that is properly
far off screen.
R=chrishtr@chromium.org
Bug: 986110
Change-Id: I69254d2a855e8f083406b13638741b8bc2b85b5d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715917
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: vmpstr <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681050}
--
wpt-commits: b95e06f14f8094184be1db0f87d1dcc37325c664
wpt-pr: 18048
Automatic update from web-platform-tests
Cookie Store API: Fix crashes on http://localhost.
Issue #1:
The "SecureContext" IDL attribute considers localhost to be secure, but
the Cookie Store API assumed that it would only be exposed on
cryptographically secure origins, so a DCHECK caused attempts to
set/delete cookies on http://localhost to crash.
This CL replaces the DCHECK with an exception that is thrown on attempts
to set/delete secure cookies on cryptographically insecure origins.
Issue #2: The "secure" cookie attribute defaulted to true.
Setting/deleting a secure cookie on a cryptographically insecure origin
is prohibited. The cookieStore.delete() API excluded the option to set
the "secure" attribute, however, so there was no way to delete an
insecure cookie.
This CL defaults the "secure" attribute to true on cryptographically
secure origins, and false otherwise.
Bug: 956641
Change-Id: Iff7c22713e8604d60b68d42199a74b2d08235712
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1700357
Commit-Queue: Staphany Park <staphany@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681054}
--
wpt-commits: 2e135c03ff73a7102011f4e610dc7890eb4332a1
wpt-pr: 17988
Automatic update from web-platform-tests
[WPT/common/security-features] Add delivery_key
This CL adds `delivery_key` to spec.src.json down to
the JSON objects supplied to JavaScript test runners,
to distinguish referrer-policy and mixed-content tests
explicitly by data fields.
Generated files will be updated after some more changes, not now.
Bug: 906850
Change-Id: Iedae7830cbc41eb87ab884a88aa9e667cc54f6e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717109
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681032}
--
wpt-commits: 2c422b2075e70226d9f531d684915798a33e8259
wpt-pr: 18068
Automatic update from web-platform-tests
Move internal xr tests to wpt_internal/webxr
This allows the two sets of tests to run the same infrastructure, and
ensures that they will stay more closely in sync. This also allows
for easier porting of the tests and more consistency in the tests.
Bug: 959476
Change-Id: I8eca0372a4091dd27702b099eb3836bfe9d6648d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717328
Commit-Queue: Klaus Weidner <klausw@chromium.org>
Reviewed-by: Klaus Weidner <klausw@chromium.org>
Auto-Submit: Alexander Cooper <alcooper@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681021}
--
wpt-commits: 7f168d2902db1dd889b314f597f38148ffcdc963
wpt-pr: 18058
Automatic update from web-platform-tests
Include typedefs as idlharness dependencies (#18006)
* Include typedefs as dependencies
* Fix credential-management
* Add FileAPI dep to html/dom interfaces test
--
wpt-commits: bc908ac5428cd665341ff7c990fccfb95d3f07ef
wpt-pr: 18006
Automatic update from web-platform-tests
[idlharness.js] Handle callbacks in very basic manner (#18085)
* Handle callbacks in very basic manner
* Drop todo, keep new Document()
--
wpt-commits: 53f176da20d4a91bc59729472bf1a0ec1399073b
wpt-pr: 18085
Automatic update from web-platform-tests
MathML: Avoid more false negative results for fraction reftests (#18086)
This also introduces improvements to MathMLFeatureDetection:
* Introduce has_mfrac().
* Split mathml source into several lines for better readability.
* Add reference links to core spec.
* Fix detection for lspace/rspace (measure the mrow container instead of mo).
* Add helper function to check a feature for match reftest and otherwise
force failure by displaying a red square at the top left corner.
--
wpt-commits: f1e6032e71849ee5ed11b5794406dd9ebd4bcdf6
wpt-pr: 18086
Automatic update from web-platform-tests
Enable persistent toasts by adding functionality for duration Infinity
This change allows users to show() toasts that will persist indefinitely
by passing through duration: Infinity. The change also adds range boundaries
to duration, so the value must be greater than 0.
Bug: 985468, 972945
Change-Id: I694edab74aff7f99e770e7d37373329f5e663c99
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713684
Commit-Queue: Jack Steinberg <jacksteinberg@chromium.org>
Reviewed-by: Fergal Daly <fergal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680574}
--
wpt-commits: 49dfd42d43a2927760e0fcc8cdb5b2626fafde67
wpt-pr: 17981
Automatic update from web-platform-tests
[Native File System] Remove Writable File Stream code
Removing Writable File Stream code for now until we decide what we want
to do as an API using Writable Streams.
As currently designed, the API does not take into account SafeBrowsing
and Quarantine checks.
Bug: 986865
Change-Id: Ib5bb922359cae1fb8267cd7123345bab6de78090
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717590
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Auto-Submit: Olivier Yiptong <oyiptong@chromium.org>
Commit-Queue: Olivier Yiptong <oyiptong@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680866}
--
wpt-commits: f88d17122816b73fe02ea3da19021f08b67a6743
wpt-pr: 18062
Automatic update from web-platform-tests
[LCP] non-trusted event does not stop the metric (#18083)
* [LCP] non-trusted event does not stop the metric
* Changed test description
--
wpt-commits: f1e49a47d5c06e66f184dbbb028567f2a35f3e9b
wpt-pr: 18083
Automatic update from web-platform-tests
[Trusted Types] Add "sample" value to SecurityPolicyViolation reports.
The reporting format is specified, but still subject to change.
The details are found in the "Integration with Content Security Policy"
chapter of the current Trusted Type spec.
https://wicg.github.io/trusted-types/dist/spec/#integration-with-content-security-policy
Bug: 739170
Change-Id: I4b85af4a6faf2387a24479a121b2c243ab83f350
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715688
Commit-Queue: Daniel Vogelheim <vogelheim@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680847}
--
wpt-commits: ce6fd690a4ac1be7adeeb546a53dd134df931301
wpt-pr: 18047
Automatic update from web-platform-tests
ElementTiming and LCP: add fully active check
The element attribute getter should only return the element when the
document is fully active. This check is done similar to other places
such as Fullscreen::RequestFullscreen. Tests are added.
Bug: 879270, 942033, 942033
Change-Id: Ie90c25ab5d07d03ccb1f9fe330d074c407aeeb7c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717238
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Reviewed-by: Steve Kobes <skobes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680841}
--
wpt-commits: 56edb11ce6572c819c13b4e01340fa91ed426ef1
wpt-pr: 18057
Automatic update from web-platform-tests
Handle display:contents for viewport propagation.
When documentElement/body does not generate a box, its background will
not propagate to the viewport (see [1]). This removes the need
for calling EnsureComputedStyle() on documentElement/body.
The CSSWG has also resolved that to be the case also for other
properties propagated to the viewport[2].
Some of the wpt tests for body propagation didn't actually have a body
element. Added.
[1] https://drafts.csswg.org/css-backgrounds/#special-backgrounds
[2] https://github.com/w3c/csswg-drafts/issues/3779#issuecomment-481762912
Bug: 987207
Change-Id: I06e618e2acd2926b5ae4831bf5825e13e970d035
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1547974
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680834}
--
wpt-commits: d40f18ae072cab633cfb34fb883e12c87c1bc191
wpt-pr: 18039