Closed Bug 1506336 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 14012 - Add referrer-policy module worker tests

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

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

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

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

Hiroshige Hayashizaki <hiroshige@chromium.org> wrote:
>  Add referrer-policy module worker tests
>  
>  This CL adds WPT tests for referrer policy applied to
>  module worker top-level script fetch.
>  
>  The only manual changes are
>  - referrer-policy/generic/common.js
>  - referrer-policy/generic/referrer-policy-test-case.js
>  - referrer-policy/spec.src.json
>  and all other modifications are made by
>  referrer-policy/generic/tools/generate.py.
>  
>  Bug: 880027
>  Change-Id: Ib1f9136161e8efacf317fb9b7e9ba0651a103c41
>  
>  Reviewed-on: https://chromium-review.googlesource.com/1330906
>  WPT-Export-Revision: b98ce2178fe8655330bbea1b2f6f1276d80c003e
Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Whiteboard: [wptsync downstream][domsecurity-backlog] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Ran 399 tests and 441[linux64-debug,linux64-opt], 442[linux32-debug,linux32-opt] subtests
OK     : 398[linux64-debug,linux64-opt], 399[linux32-debug,linux32-opt]
PASS   : 324
FAIL   : 117[linux64-debug,linux64-opt], 118[linux32-debug,linux32-opt]

Existing tests that now have a worse result (e.g. they used to PASS and now FAIL):
/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/generic.keep-origin-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an http
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with keep-origin-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/generic.no-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an http
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with no-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/generic.swap-origin-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an http
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with swap-origin-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/generic.keep-origin-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an https
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with keep-origin-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/generic.no-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an https
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with no-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/generic.swap-origin-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an https
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with swap-origin-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/generic.keep-origin-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an http
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with keep-origin-redirect and when
                                 the target request is same-origin.: FAIL
/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/generic.no-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an http
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with no-redirect and when
                                 the target request is same-origin.: FAIL
/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/generic.swap-origin-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an http
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with swap-origin-redirect and when
                                 the target request is same-origin.: FAIL
/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/generic.keep-origin-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an https
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with keep-origin-redirect and when
                                 the target request is same-origin.: FAIL
/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/generic.no-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an https
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with no-redirect and when
                                 the target request is same-origin.: FAIL
/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/generic.swap-origin-redirect.http.html
    The referrer URL is omitted when a
                                 document served over http requires an https
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with swap-origin-redirect and when
                                 the target request is same-origin.: FAIL
/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/cross-origin.keep-origin-redirect.http.html
    The referrer URL is origin when a
                                 document served over http requires an http
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with keep-origin-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/cross-origin.no-redirect.http.html
    The referrer URL is origin when a
                                 document served over http requires an http
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with no-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/cross-origin.swap-origin-redirect.http.html
    The referrer URL is origin when a
                                 document served over http requires an http
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with swap-origin-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/cross-origin.keep-origin-redirect.http.html
    The referrer URL is origin when a
                                 document served over http requires an https
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with keep-origin-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/cross-origin.no-redirect.http.html
    The referrer URL is origin when a
                                 document served over http requires an https
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with no-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/cross-origin.swap-origin-redirect.http.html
    The referrer URL is origin when a
                                 document served over http requires an https
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with swap-origin-redirect and when
                                 the target request is cross-origin.: FAIL
/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/same-origin-insecure.swap-origin-redirect.http.html
    The referrer URL is origin when a
                                 document served over http requires an http
                                 sub-resource via script-tag using the attr-referrer
                                 delivery method with swap-origin-redirect and when
                                 the target request is same-origin.: FAIL

Tests that are disabled for instability:
/referrer-policy/generic/unsupported-csp-referrer-directive.html: [linux64-debug,linux64-opt]
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f7c412366d16
[wpt PR 14012] - Add referrer-policy module worker tests, a=testonly
https://hg.mozilla.org/mozilla-central/rev/f7c412366d16
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.