[wpt-sync] Sync PR 12330 - Fix worklet referrer tests to match spec

RESOLVED FIXED in Firefox 63

Status

()

enhancement
P4
normal
RESOLVED FIXED
Last year
5 months ago

People

(Reporter: wptsync, Unassigned)

Tracking

unspecified
mozilla63
Points:
---

Firefox Tracking Flags

(firefox63 fixed)

Details

(Whiteboard: [wptsync downstream], )

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

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

Dominic Farolino <domfarolino@gmail.com> wrote:
>  Fix worklet referrer tests to match spec
>  
>  This PR fixes worklet referrer tests to match the spec. Basically this reverts a good bit of https://github.com/web-platform-tests/wpt/commit/50b0943d82d36bb92977002bebd5a7990e0ed388#diff-f5dd3dfe0ce7dd53814287bc30b9a197 (the WPTs bit of https://chromium-review.googlesource.com/c/chromium/src/+/1111743) to ensure that we actually do test that the referrer policy of the ["outer settings object"](https://drafts.css-houdini.org/worklets/#dom-worklet-addmodule) is honored when fetching worklet scripts.
>  
>  /cc @nhiroki @nyaxt @hiroshige-g (Note: when this is merged and auto-rolls into Blink, I'll submit my CL that allows Blink to conform to these tests).
Component: web-platform-tests → DOM
Product: Testing → Core
Ran 3 tests and 45 subtests
OK     : 3
FAIL   : 45

New tests that have failures or other problems:
/worklets/animation-worklet-referrer.https.html
    Importing a remote-origin script from a page that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a page that has "origin" referrer policy should send only an origin as referrer.: FAIL
    Importing a remote-origin script from a page that has "same-origin" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a remote-origin worklet script that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a remote-origin worklet script that has "origin" referrer policy should send referrer.: FAIL
    Importing a remote-origin script from a remote-origin worklet script that has "same-origin" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a same-origin worklet script that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a same-origin worklet script that has "origin" referrer policy should send referrer.: FAIL
    Importing a remote-origin script from a same-origin worklet script that has "same-origin" referrer policy should not send referrer.: FAIL
    Importing a same-origin script from a page that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a same-origin script from a page that has "origin" referrer policy should send only an origin as referrer.: FAIL
    Importing a same-origin script from a page that has "same-origin" referrer policy should send referrer.: FAIL
    Importing a same-origin script from a same-origin worklet script that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a same-origin script from a same-origin worklet script that has "origin" referrer policy should send referrer.: FAIL
    Importing a same-origin script from a same-origin worklet script that has "same-origin" referrer policy should send referrer.: FAIL
/worklets/layout-worklet-referrer.https.html
    Importing a remote-origin script from a page that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a page that has "origin" referrer policy should send only an origin as referrer.: FAIL
    Importing a remote-origin script from a page that has "same-origin" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a remote-origin worklet script that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a remote-origin worklet script that has "origin" referrer policy should send referrer.: FAIL
    Importing a remote-origin script from a remote-origin worklet script that has "same-origin" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a same-origin worklet script that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a same-origin worklet script that has "origin" referrer policy should send referrer.: FAIL
    Importing a remote-origin script from a same-origin worklet script that has "same-origin" referrer policy should not send referrer.: FAIL
    Importing a same-origin script from a page that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a same-origin script from a page that has "origin" referrer policy should send only an origin as referrer.: FAIL
    Importing a same-origin script from a page that has "same-origin" referrer policy should send referrer.: FAIL
    Importing a same-origin script from a same-origin worklet script that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a same-origin script from a same-origin worklet script that has "origin" referrer policy should send referrer.: FAIL
    Importing a same-origin script from a same-origin worklet script that has "same-origin" referrer policy should send referrer.: FAIL
/worklets/paint-worklet-referrer.https.html
    Importing a remote-origin script from a page that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a page that has "origin" referrer policy should send only an origin as referrer.: FAIL
    Importing a remote-origin script from a page that has "same-origin" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a remote-origin worklet script that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a remote-origin worklet script that has "origin" referrer policy should send referrer.: FAIL
    Importing a remote-origin script from a remote-origin worklet script that has "same-origin" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a same-origin worklet script that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a remote-origin script from a same-origin worklet script that has "origin" referrer policy should send referrer.: FAIL
    Importing a remote-origin script from a same-origin worklet script that has "same-origin" referrer policy should not send referrer.: FAIL
    Importing a same-origin script from a page that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a same-origin script from a page that has "origin" referrer policy should send only an origin as referrer.: FAIL
    Importing a same-origin script from a page that has "same-origin" referrer policy should send referrer.: FAIL
    Importing a same-origin script from a same-origin worklet script that has "no-referrer" referrer policy should not send referrer.: FAIL
    Importing a same-origin script from a same-origin worklet script that has "origin" referrer policy should send referrer.: FAIL
    Importing a same-origin script from a same-origin worklet script that has "same-origin" referrer policy should send referrer.: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/23d8c44ece32
[wpt PR 12330] - Fix worklet referrer tests to match spec, a=testonly
https://hg.mozilla.org/mozilla-central/rev/23d8c44ece32
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.