Automatic update from web-platform-tests
[LayoutNG] Fix 3 cases of break opportunities after nowrap
This patch fixes lines to break in the following conditions:
1. When wrappable elements appear inside of nowrap elements.
2. When wrappable spaces after nowrap appear inside of nowrap
elements.
3. When non-space break opportunities appear after nowrap.
fast/text/whitespace/018.html improves but still doesn't pass.
It doesn't pass in Edge/Gecko, and at least some of what it
expects look questionable. Further investigation is deferred
to future CLs.
Bug: 920177
Change-Id: Ieba4d446b818120f423b87a7f4a44b3c63a9d995
Reviewed-on: https://chromium-review.googlesource.com/c/1477629
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635180}
--
wpt-commits: 67e1c4c4f8a43d17bcf89b6f5a197d21765f4b46
wpt-pr: 15509
Automatic update from web-platform-tests
[css-flexbox] Shrink-to-fit sizing needs to take margins into account
Originally added in https://crrev.com/c/1327746
Also fixes a typo in one of the tests from that patch.
R=mstensho@chromium.org
Bug: 934936
Change-Id: Ib079171549853a21d5bcdd05dabb461c4a1e492c
Reviewed-on: https://chromium-review.googlesource.com/c/1483946
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635176}
--
wpt-commits: 8d457c05eb33ab4b6a7549696fe1b94b5e4b7054
wpt-pr: 15552
Automatic update from web-platform-tests
Add some tests for the realms involved in creating new platform objects. (#15482)
--
wpt-commits: 1b2fbac6ae44eb3b88c1b01da2d2358eb2f7ef45
wpt-pr: 15482
Automatic update from web-platform-tests
Move some references out of support directories
See #5843
--
Get rid of reftest/, standardize on reference/
--
Rewrite a lot of the border-*-radius tests
These previously formed reftest cycles which means they either
didn't get run or didn't clearly test either thing.
Given what we have visual tests for, it seems more meaningful to
just restrict these tests to testing percentages.
Fixes https://github.com/web-platform-tests/wpt/issues/5492.
--
Give css/css-backgrounds/border-image-6.html a real ref
The current ref is just an image of roughly what it should look
like, which isn't at all useful as a reftest (which needs
pixel-for-pixel equivalence).
--
Get rid of broken reftest, replaced with simple JS test
Using an image as a reference is almost certain to never work.
--
Make various transform3d tests have sane reference graphs
These seem to have been written under the assumption that multiple
<link rel=match> links formed multiple required matches rather than
alternates.
--
Fix text-indent-wrap-001 to have a single reference
This seems to have assumed multiple refs were AND, not OR.
--
wpt-commits: 8d2a5d9ee6e10577da1342bedc1d64bba9799e94, 29f50c937e8be8ccf73dbb8b8e74f0668a1cd426, b855a6d58fa3d9cf36b128e645091e8dd6d50464, 74c9fbb2d655638bc4079636dfc420bde4d94c6c, 8f61bf97d0ab9e47081f4dd068c0f7e72dabb862, b26ec10a9e9d769a20e9959bb90d1ec904f458e8, 7748ad90a13a51a3f74436295869b2f253f98e8a
wpt-pr: 15523
--HG--
rename : testing/web-platform/tests/css/css-images/support/100x100-blue-green.html => testing/web-platform/tests/css/css-images/reference/100x100-blue-green.html
rename : testing/web-platform/tests/css/css-namespaces/reftest/ref-lime-1-block.xml => testing/web-platform/tests/css/css-namespaces/reference/ref-lime-1-block.xml
rename : testing/web-platform/tests/css/css-namespaces/reftest/ref-lime-1-generic.xml => testing/web-platform/tests/css/css-namespaces/reference/ref-lime-1-generic.xml
rename : testing/web-platform/tests/css/css-namespaces/reftest/ref-lime-1.xml => testing/web-platform/tests/css/css-namespaces/reference/ref-lime-1.xml
rename : testing/web-platform/tests/css/css-namespaces/reftest/ref-lime-2-generic.xml => testing/web-platform/tests/css/css-namespaces/reference/ref-lime-2-generic.xml
rename : testing/web-platform/tests/css/css-namespaces/reftest/ref-lime-2.xml => testing/web-platform/tests/css/css-namespaces/reference/ref-lime-2.xml
rename : testing/web-platform/tests/css/css-namespaces/reftest/ref-lime-3.xml => testing/web-platform/tests/css/css-namespaces/reference/ref-lime-3.xml
rename : testing/web-platform/tests/css/css-namespaces/reftest/ref-lime-5.xml => testing/web-platform/tests/css/css-namespaces/reference/ref-lime-5.xml
rename : testing/web-platform/tests/css/css-namespaces/reftest/ref-lime-6.xml => testing/web-platform/tests/css/css-namespaces/reference/ref-lime-6.xml
rename : testing/web-platform/tests/css/css-transforms/reftest/transform-3d-rotateY-stair-above-ref-001.xht => testing/web-platform/tests/css/css-transforms/reference/transform-3d-rotateY-stair-above-ref-001.xht
rename : testing/web-platform/tests/css/css-transforms/reftest/transform-applies-to-001-ref.xht => testing/web-platform/tests/css/css-transforms/reference/transform-applies-to-001-ref.xht
rename : testing/web-platform/tests/css/css-transforms/reftest/transform-applies-to-002-ref.xht => testing/web-platform/tests/css/css-transforms/reference/transform-applies-to-002-ref.xht
rename : testing/web-platform/tests/css/css-transforms/reftest/transform-origin-01-ref.html => testing/web-platform/tests/css/css-transforms/reference/transform-origin-01-ref.html
rename : testing/web-platform/tests/css/css-transforms/transform-box/support/greensquare200x200.html => testing/web-platform/tests/css/css-transforms/transform-box/reference/greensquare200x200.html
rename : testing/web-platform/tests/css/css-writing-modes/reftest/writing-mode-vertical-lr-002-ref.xht => testing/web-platform/tests/css/css-writing-modes/reference/writing-mode-vertical-lr-002-ref.xht
rename : testing/web-platform/tests/css/css-writing-modes/reftest/writing-mode-vertical-rl-001-ref.xht => testing/web-platform/tests/css/css-writing-modes/reference/writing-mode-vertical-rl-001-ref.xht
rename : testing/web-platform/tests/css/css-writing-modes/reftest/writing-mode-vertical-rl-002-ref.xht => testing/web-platform/tests/css/css-writing-modes/reference/writing-mode-vertical-rl-002-ref.xht
rename : testing/web-platform/tests/svg/embedded/support/green-rect-100x100.svg => testing/web-platform/tests/svg/embedded/reference/green-rect-100x100.svg
rename : testing/web-platform/tests/svg/shapes/reftests/support/empty.svg => testing/web-platform/tests/svg/shapes/reftests/reference/empty.svg
Automatic update from web-platform-tests
[WPT] Move common.js from {referrer-policy,mixed-content} to common/security-features
- Moves {referrer-policy,mixed-content}/generic/common.js (which have
been already the same) to common/security-features/resources/common.js
and removes a TODO comment about moving/merging common.js.
- Add common/security-features/README.md.
- Rename paths mechanically (mostly by the generators).
Bug: 906850
Change-Id: I3d60bffa5b230c04257f66b49717d5861accb979
Reviewed-on: https://chromium-review.googlesource.com/c/1476192
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634965}
--
wpt-commits: 8805f23ef629338b6d28ae25cc13839e99acea1b
wpt-pr: 15538
Automatic update from web-platform-tests
Remove new lines in the reference for 'white-space: pre' tests
--
overflow hidden each cue
--
Merge pull request #15491 from gkatsev/update-webvtt-white-space-pre-references
Remove new lines in the reference for 'white-space: pre' tests
--
wpt-commits: 26dcd7d8b72152fdaf4c54a48a6d07c93e579ac2, d0b0e694f77b3fe9509e501f254ce0434f6e7692, fb6ed0e160406ef03834a596d2f217665c7d6d52
wpt-pr: 15491
Automatic update from web-platform-tests
MathML: Update meta help to point to the MathML Core spec. (#15537)
--
wpt-commits: 32b9714f6617222eee674892b5c59ba43aa59623
wpt-pr: 15537
Automatic update from web-platform-tests
Make calc() function can be used in any place that only accepts integer.
https://www.w3.org/TR/css-values-4/#calc-type-checking spec
says that calc() function that resolve to <number> can be used
in any place that only accepts <integer>.
This change makes calc() function's behavior to comply with the spec.
Bug: 931216
Change-Id: Iac9ad21d664bb60538d40ab42cbb8153de6db89f
Reviewed-on: https://chromium-review.googlesource.com/c/1478852
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Eric Willigers <ericwilligers@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634955}
--
wpt-commits: 50b5ebf1abd93b25c1f820c1d7bf49d051c33afb
wpt-pr: 15481
Automatic update from web-platform-tests
[docs] Correct page formatting (#15532)
Insert the YAML frontmatter which distinguishes page content and causes
Jekyll to create an HTML document during the website rendering process.
--
wpt-commits: 70df598b894bfa4a7122720608a3110cb25ceb42
wpt-pr: 15532
Automatic update from web-platform-tests
[docs] Reorganize information on running the tests
Previously, information was organized as follows:
- Section: Introduction
- Page: Introduction
- Introductory material
- Instructions for running the tests manually
- Abbreviated instructions for `wpt run`
- Section: Running the Tests
- Page: Running the Tests
- Instructions for `wpt run`
- Instructions for the web runner
- Notes on writing a custom runner
Dispersing the information about "test running" across multiple sections
tended to dilute the meaning of each section. It also made the
introduction lengthier and possibly more intimidating (especially for
readers who have no intention of running the tests manually).
Restructure the information as follows:
- Section: Introduction
- Page: Introduction
- Introductory material
- Section: Running the Tests
- Page: Running the Tests
- Instructions for running the tests manually
- Reference to "Running the Tests in Automation"
- Page: Running the Tests in Automation
- Instructions for `wpt run`
- Instructions for the web runner
- Notes on writing a custom runner
--
wpt-commits: c271bdc85efc27839b01ec5aecf4f3a22084d820
wpt-pr: 13125
Automatic update from web-platform-tests
v8binding: Make PaintWorkletGlobalScope use IDL callback function
Converts PaintWorkletGlobalScope.registerPaint's second argument
|paintCtor| into IDL callback function type. Also, makes
Paint Worklet use |PaintCallback| of callback function type.
Change-Id: I6706499705a116c85f5c092a46309854db88708c
Reviewed-on: https://chromium-review.googlesource.com/c/1478850
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Hitoshi Yoshida <peria@chromium.org>
Commit-Queue: Yuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634582}
--
wpt-commits: 270d9bf4444b52a2d66dd10ade64cdfa455f2300
wpt-pr: 15497
Automatic update from web-platform-tests
[LayoutNG] Fix inline-level OOFs inside a block-level context.
Previously we considered text-align for inline-level OOFs inside a
block-level context. But we also needed to avoid floats.
This is surprisingly consistent across browsers! However no tests. :(
So fixed and added tests!
Most of the complexity in this patch is making sure the
logical->line->logical coordinate transforms are done correctly.
Bug: 933996
Change-Id: I78207f8b7cba62e9d6f48f087fd5202178b42910
Reviewed-on: https://chromium-review.googlesource.com/c/1480071
Reviewed-by: Aleks Totic <atotic@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634522}
--
wpt-commits: 812dd46343fe233b65429abdf871f5658e81f732
wpt-pr: 15490
Automatic update from web-platform-tests
Add CEReactions tests for some HTML elements
- Covers elements of HTMLAreaElement/HTMLEmbedElement/HTMLFieldSetElement/HTMLImageElement
- Wrap `testReflectAttrWithContentValuesAndDepAttr` function in HTMLButtonElement.html as a common function
- Wrap `testReflectAttrWithDepAttr` function in HTMLButtonElement.html as a common function
- Test formNoValidate of HTMLButtonElement use testReflectBooleanAttributeWithDependentAttributes function
--
wpt-commits: f7086960db87211ada9cd1bcca3abc0334997d3d
wpt-pr: 15454
Automatic update from web-platform-tests
Add test for "fully overlapping" radial gradient case
This adds a test for the case where the start and end circles of a
radial gradient fully overlap (while having non-zero radii).
Bug: 933413
Change-Id: Id059cb607f6fc137111d2306dd9c9eef1f55b6bc
Reviewed-on: https://chromium-review.googlesource.com/c/1483023
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634711}
--
wpt-commits: d45e29788020056d6bb95db7920a67306f06ade5
wpt-pr: 15526
Automatic update from web-platform-tests
Update README and META.yml to use the MathML Core spec. (#15524)
Meta help still needs to be updated.
--
wpt-commits: 1d89f3761c2a5b25dadf6dc4d868b0d6a8ea0bfc
wpt-pr: 15524
Automatic update from web-platform-tests
[Azure Pipelines] Put artifact name in urlencoded POST body (#15522)
... instead of in the query string. This will probably resolve the
"POST requests require a Content-length header" problem [1] assuming
that the cause is a version of curl that doesn't send the header if
the request has no body.
[1] https://dev.azure.com/web-platform-tests/wpt/_build/results?buildId=7671
--
wpt-commits: 5803f5e36a2d8ff3d06e135f39803f9d282fb520
wpt-pr: 15522
Automatic update from web-platform-tests
Update |active_tree_scopes| etc when shadow root with adoptedStyleSheets is inserted
When a shadow root with non-empty |adoptedStyleSheets| is inserted, we
should make sure that the |active_tree_scopes_| list is updated and the
tree scope is marked dirty so that style invalidation & recalc will
work.
Bug: 934340
Change-Id: I365936e4bcc0132c938fe4e200e208abac91d3d9
Reviewed-on: https://chromium-review.googlesource.com/c/1482437
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634624}
--
wpt-commits: cf8e7d68a5fe9e40f6492706dbaafa01f8e8bfc9
wpt-pr: 15513
Automatic update from web-platform-tests
Restrict Device{Orientation|Motion}Events to secure origins.
Registering event handlers to `devicemotion`, `deviceorientation`,
and `deviceorientationabsolute` events is still possible, but the
handlers will never be invoked in non-secure browsing contexts.
The following, related, interfaces are marked as [SecureContext]:
-- DeviceOrientationEvent,
-- DeviceMotionEvent,
-- DeviceMotionEventAcceleration,
-- DeviceMotionEventRotationRate.
The change is gated on RestrictDeviceSensorEventsToSecureContexts,
which is disabled by default, so this CL is a no-op unless the
base::Feature with the same name is manually enabled.
Intent to remove: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/5yqfAXibz1I
Bug: 932078
Change-Id: I9baaafd1f4483f121feadc054650c4d510a2c88d
TBR: haraken@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/c/1473992
Commit-Queue: Balazs Engedy <engedy@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634620}
--
wpt-commits: c401bb4fdb48c7536a96d25570242444f1b6b5f0
wpt-pr: 15398
--HG--
rename : testing/web-platform/tests/orientation-event/devicemotionevent-init.html => testing/web-platform/tests/orientation-event/devicemotionevent-init.https.html
rename : testing/web-platform/tests/orientation-event/deviceorientationabsoluteevent.html => testing/web-platform/tests/orientation-event/deviceorientationabsoluteevent.https.html
rename : testing/web-platform/tests/orientation-event/deviceorientationevent-init.html => testing/web-platform/tests/orientation-event/deviceorientationevent-init.https.html
rename : testing/web-platform/tests/orientation-event/ondeviceorientationabsolute.html => testing/web-platform/tests/orientation-event/ondeviceorientationabsolute.https.html
Automatic update from web-platform-tests
[Azure Pipelines] POST to the /api/checks/azure/1234 endpoint (#15519)
This regressed in https://github.com/web-platform-tests/wpt/pull/15384.
--
wpt-commits: 8d7111a760e99de3e6fd87e0914c60df98836e38
wpt-pr: 15519
Automatic update from web-platform-tests
[PeerConnection] Fire signalingstatechange event at the right time
Prior to this CL, the event was fired before the transceiver state was
updated, in contradiction with the spec, which says it should be fired
after the transceiver state is updated.
Bug: 920200
Change-Id: I757cc0161a5da4888cd628619180e24a54dc732b
Reviewed-on: https://chromium-review.googlesource.com/c/1458203
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634609}
--
wpt-commits: 0f4203743c56377734f9682abb015d56d6a1a71e
wpt-pr: 15292
Automatic update from web-platform-tests
HTML: opener of a Window sans browsing context
For https://github.com/whatwg/html/pull/4379.
--
wpt-commits: ad1ab06b7fcdbf7ef24cf0ed8aa13ac36d04272a
wpt-pr: 15461
Automatic update from web-platform-tests
Implement scroll-snap-stop: always
As specified in the spec, when the snap-area has scroll-snap-stop:
always, we should not pass its snap position when scrolling with an
intended direction.
This patch implements this feature by adding another round of search for
the IntendedEndAndDirectionStrategy. This second round searches for the
snap position with scroll-snap-stop: always that's closest to the
scroll's start position. It then compares with the result from the first
round of search, which is the snap position closest to the scroll's
target position. The comparison selects the area closest to the scroll's
start position ensuring a an area with snap stop is never bypassed.
Bug: 823998
Change-Id: Ic40f82263ced85f8a72c8f5a82d4fb76e403398f
Reviewed-on: https://chromium-review.googlesource.com/c/1460875
Reviewed-by: David Bokan <bokan@chromium.org>
Reviewed-by: Majid Valipour <majidvp@chromium.org>
Commit-Queue: Sandra Sun <sunyunjia@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634421}
--
wpt-commits: 181f8381fe9373e027f4b5ba5d1439843ad2c2e6
wpt-pr: 15399
Automatic update from web-platform-tests
[Code Health] Fix incorrect test name
wpt/web-animations/timing-model/animations/set-the-animation-start-time.html
was renamed in [1] but the name change was not reflected elsewhere.
In addition, the expectation file for the test on Android seems
unnecessary.
[1] bf6c3b0618
Change-Id: I6a640c3d56203380ad19ca3b1bb1278cc6971bd8
Reviewed-on: https://chromium-review.googlesource.com/c/1477938
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Yi Gu <yigu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634404}
--
wpt-commits: b055c7c24f26f1f61c11bb1efcdbcec5805f5f47
wpt-pr: 15469
Automatic update from web-platform-tests
Surface dtlsTransport via state-surfacer
This allows for more consistent state information.
Bug: chromium:907849
Change-Id: I8b71b3ec3eb1acf83624969190519c5f18b2a19e
Reviewed-on: https://chromium-review.googlesource.com/c/1455896
Commit-Queue: Harald Alvestrand <hta@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#633958}
--
wpt-commits: 36baff5e6981e5a235ed1c5f13b45ffed241770b
wpt-pr: 15506
Automatic update from web-platform-tests
Add tentative WPT to verify download in sandbox
General testing idea:
For a network request, the server stores a token in stash.
And after a fixed period of time, we validate the token in the
stash to verify a download has happened. Also assert that no
additional navigation should happen.
In the case of <a download> where the decision of download can be made
before resource fetching, the server sets the token immediately.
In the case of navigation to a download, the server will stream a
response over 1 seconds and set the token at the end only when the
socket has been connected. So it is able to detect any download
cancellation while fetching the resource.
Bug: 539938, 927183
Change-Id: I7b90d46504603f60938a46acee9fbd7d1483988b
Reviewed-on: https://chromium-review.googlesource.com/c/1446395
Reviewed-by: Mike West <mkwst@chromium.org>
Commit-Queue: Yao Xiao <yaoxia@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634249}
--
wpt-commits: 245334dcc1695c3dbc4e1fcdbe849224234093fc
wpt-pr: 15179
Automatic update from web-platform-tests
LongTasks: fix sibling layout test
This CL allows the main frame to produce a long task that is observed by
the child frame. Such a long task can be detected because the
attribution will be same-origin-ancestor.
Bug: 927866
Change-Id: I38849b5f44172cbffd25f3ab429b0c1a96b0f1e3
Reviewed-on: https://chromium-review.googlesource.com/c/1480114
Reviewed-by: Timothy Dresser <tdresser@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634243}
--
wpt-commits: 493fdc7e7908360273baa0ee13421fff692cf8ed
wpt-pr: 15492
Automatic update from web-platform-tests
[Azure Pipelines] Allow Safari TP to be manually triggered (#15502)
To help alleviate https://github.com/web-platform-tests/wpt/issues/15500.
--
wpt-commits: bbb94679c4f6ca8d6779631eacb2871dd804a70a
wpt-pr: 15502
Automatic update from web-platform-tests
Export 2 WPT tests for intrinsic size of SVG images with CSS 'auto' size
The following changes are made:
- Add spec documentation
- Update link to harness JS files.
- Remove trailing whitespace to pass WPT check.
- Use green-256x256.png as a test image and update metrics accordingly.
Bug: 493681
Change-Id: I5e7ebac00d4d4401bfec7780ee40f853ee4fdbb4
Reviewed-on: https://chromium-review.googlesource.com/c/1477703
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Commit-Queue: Frédéric Wang <fwang@igalia.com>
Cr-Commit-Position: refs/heads/master@{#634189}
--
wpt-commits: d4e3d9e54559cbc102866f8c15ffe2f3e1ddf0c8
wpt-pr: 15464
Automatic update from web-platform-tests
Implement Signed Exchange reporting for distributors
This CL implements Signed Exchange reporting for distributors.
Spec: https://github.com/WICG/webpackage/pull/374
This CL has two success test cases only.
I will add more failure test cases in another CL.
Bug: 910516
Change-Id: I31a6e629073970e03a93d2379be1ae63ef6adf6b
Reviewed-on: https://chromium-review.googlesource.com/c/1468855
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Reviewed-by: Christian Dullweber <dullweber@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Reviewed-by: Kunihiko Sakamoto <ksakamoto@chromium.org>
Reviewed-by: Eric Orth <ericorth@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634161}
--
wpt-commits: 66dbfd0ae579135db73772c534879c51f6dbc674
wpt-pr: 15372
Automatic update from web-platform-tests
[WPT] Merge wpt/{referrer-policy,mixed-content}/generic/common.js
To merge wpt/{referrer-policy,mixed-content} test frameworks,
this CL merges their common.js.
The new common.js is based on mixed-content's common.js,
with some aspects imported from referrer-policy's common.js:
- Passes results from subresource payloads to resolved promises,
converting if necessary using wrapResult().
This is for referrer-policy tests that rely on subresource
payload to get referrer request headers, while
mixed-content tests don't use the payload information at all.
- Accepts `additionalAttributes` arguments (to be used to set
referrer-policy-related attributes to elements).
- Extends bindEvents() to clean up event listeners on completion
(which is done for some request types in
referrer-policy's common.js).
- Imports queryImage() (with renaming to
requestViaImageForReferrerPolicy) from referrer-policy's common.js
(this should be merged with mixed-content version of
image requests, but not now).
On mixed-content side:
- expect.py's response for script requests is modified
because postMessage() is required by referrer-policy's common.js.
On referrer-policy side:
- Move referrer-policy-specific code from common.js
to referrer-policy-test-case.js, including wrapResult().
- All tests (except for two [1][2]) are converted to promise-based,
to handle errors correctly.
- Bugs in the remaining two tests [1][2] are fixed.
[1] referrer-policy/generic/iframe-inheritance.html
[2] referrer-policy/generic/sandboxed-iframe-with-opaque-origin.html
Then now
wpt/{referrer-policy,mixed-content}/generic/common.js
are the same.
They are duplicated (i.e. not moved/merged to a single file)
just to avoid mass modification of a large number of
generated files for each step of refactoring,
as these file names are hard-coded there.
Bug: 906850
Change-Id: I39f19d08d658c1a898fc453b621d82a2faaaaf6b
Reviewed-on: https://chromium-review.googlesource.com/c/1455745
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#633917}
--
wpt-commits: 767f361425c20ded79c35630f709fc7addf7f80a
wpt-pr: 15262
Automatic update from web-platform-tests
[Azure Pipelines] Add wpt.fyi hooks for each individual job/run (#15498)
* [Azure Pipelines] Add wpt.fyi hooks for each individual job/run
* Make job name unique
* No dashes in job names
--
wpt-commits: 8ba55334175854f7461257e9d89a104a54f6d748
wpt-pr: 15498