Closed Bug 1576736 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 18683 - [WPT/referrer-policy] Call getRequestURLs() for each subtest

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream][domsecurity-backlog])

Sync web-platform-tests PR 18683 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/18683
Details from upstream follow.

Hiroshige Hayashizaki <hiroshige@chromium.org> wrote:

[WPT/referrer-policy] Call getRequestURLs() for each subtest

Previously, getRequestURLs(), PolicyDelivery/Subresouce
object creation etc. were done once per test HTML file and
reused among multiple subtests.

This CL introduces invokeScenario() that does these things and
calls invokeScenario() for each subtest, and thus
calls getRequestURLs() for each subtest.

This removes hacky modifications to subresource.url
in 4K-referrer-length-related subtests to avoid cache hit.
Also this makes subresource URLs unique for
srcdoc-related subtests (previously the same image URL
was used).

Bug: 906850
Change-Id: I894a902338a90526678b70d01857103f46984189
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1723013
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@{#690288}

PR 18683 applied with additional changes from upstream: edd8fe11e357990cf3dafff83504c4f4a605028c
Component: web-platform-tests → DOM: Security
Product: Testing → Core
PR 18683 applied with additional changes from upstream: edd8fe11e357990cf3dafff83504c4f4a605028c
PR 18683 applied with additional changes from upstream: edd8fe11e357990cf3dafff83504c4f4a605028c
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/95a10f00c0f6 [wpt PR 18683] - [WPT/referrer-policy] Call getRequestURLs() for each subtest, a=testonly
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.