[wpt-sync] Sync PR 15538 - [WPT] Move common.js from {referrer-policy,mixed-content} to common/security-features

RESOLVED FIXED in Firefox 67

Status

()

enhancement
P4
normal
RESOLVED FIXED
3 months ago
2 months ago

People

(Reporter: wptsync, Unassigned)

Tracking

unspecified
mozilla67
Points:
---

Firefox Tracking Flags

(firefox67 fixed)

Details

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

Assignee

Description

3 months ago

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

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

Hiroshige Hayashizaki <hiroshige@chromium.org> wrote:

[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}

Assignee

Comment 1

3 months ago
PR 15538 applied with additional changes from upstream: 86bfe06b7260f552913b3274c30377ce7e9968b8, 767f361425c20ded79c35630f709fc7addf7f80a
Assignee

Updated

3 months ago
Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Assignee

Comment 4

3 months ago
Ran 393 tests and 396 subtests
OK     : 392
PASS   : 346
FAIL   : 50

New tests that have failures or other problems:
/fetch/sec-metadata/img.tentative.https.sub.html
    Cross-site image: FAIL[linux32-debug,linux64-debug,linux64-opt]
    Same-origin image: FAIL[linux32-debug,linux64-debug,linux64-opt]
    Same-site image: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/http-csp/cross-origin-http/top-level/keep-scheme-redirect/blockable/opt-in-blocks.https.html
    opt_in_method: http-csp
                                 origin: cross-origin-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/http-csp/cross-origin-http/top-level/no-redirect/blockable/opt-in-blocks.https.html
    opt_in_method: http-csp
                                 origin: cross-origin-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/http-csp/cross-origin-http/top-level/swap-scheme-redirect/blockable/opt-in-blocks.https.html
    opt_in_method: http-csp
                                 origin: cross-origin-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: swap-scheme-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/http-csp/same-host-http/top-level/keep-scheme-redirect/blockable/opt-in-blocks.https.html
    opt_in_method: http-csp
                                 origin: same-host-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/http-csp/same-host-http/top-level/no-redirect/blockable/opt-in-blocks.https.html
    opt_in_method: http-csp
                                 origin: same-host-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/http-csp/same-host-http/top-level/swap-scheme-redirect/blockable/opt-in-blocks.https.html
    opt_in_method: http-csp
                                 origin: same-host-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: swap-scheme-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/meta-csp/cross-origin-http/top-level/no-redirect/blockable/opt-in-blocks.https.html
    opt_in_method: meta-csp
                                 origin: cross-origin-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/meta-csp/same-host-http/top-level/no-redirect/blockable/opt-in-blocks.https.html
    opt_in_method: meta-csp
                                 origin: same-host-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/no-opt-in/cross-origin-http/top-level/keep-scheme-redirect/blockable/no-opt-in-blocks.https.html
    opt_in_method: no-opt-in
                                 origin: cross-origin-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/no-opt-in/cross-origin-http/top-level/no-redirect/blockable/no-opt-in-blocks.https.html
    opt_in_method: no-opt-in
                                 origin: cross-origin-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/no-opt-in/cross-origin-http/top-level/swap-scheme-redirect/blockable/no-opt-in-blocks.https.html
    opt_in_method: no-opt-in
                                 origin: cross-origin-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: swap-scheme-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/no-opt-in/same-host-http/top-level/keep-scheme-redirect/blockable/no-opt-in-blocks.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/no-opt-in/same-host-http/top-level/no-redirect/blockable/no-opt-in-blocks.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/classic-data-worker-fetch/no-opt-in/same-host-http/top-level/swap-scheme-redirect/blockable/no-opt-in-blocks.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-http
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: swap-scheme-redirect
                                 subresource: classic-data-worker-fetch
                                 expectation: blocked: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/link-prefetch-tag/no-opt-in/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html: SKIP[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/module-data-worker-import/http-csp/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: module-data-worker-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/module-data-worker-import/http-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: module-data-worker-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/module-data-worker-import/meta-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: meta-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: module-data-worker-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/module-data-worker-import/no-opt-in/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: module-data-worker-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/module-data-worker-import/no-opt-in/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: module-data-worker-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-animation-data-import/http-csp/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: worklet-animation-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-animation-data-import/http-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-animation-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-animation-data-import/meta-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: meta-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-animation-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-animation-data-import/no-opt-in/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: worklet-animation-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-animation-data-import/no-opt-in/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-animation-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-animation-top-level/http-csp/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: worklet-animation-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-animation-top-level/http-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-animation-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-animation-top-level/meta-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: meta-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-animation-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-animation-top-level/no-opt-in/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: worklet-animation-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-animation-top-level/no-opt-in/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-animation-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-audio-data-import/http-csp/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: worklet-audio-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-audio-data-import/http-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-audio-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-audio-data-import/meta-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: meta-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-audio-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-audio-data-import/no-opt-in/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: worklet-audio-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-audio-data-import/no-opt-in/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-audio-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-audio-top-level/http-csp/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: worklet-audio-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-audio-top-level/http-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-audio-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-audio-top-level/meta-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: meta-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-audio-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-audio-top-level/no-opt-in/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: worklet-audio-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-audio-top-level/no-opt-in/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-audio-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-layout-data-import/http-csp/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: worklet-layout-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-layout-data-import/http-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-layout-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-layout-data-import/meta-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: meta-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-layout-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-layout-data-import/no-opt-in/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: worklet-layout-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-layout-data-import/no-opt-in/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: no-opt-in
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-layout-data-import
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-layout-top-level/http-csp/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: keep-scheme-redirect
                                 subresource: worklet-layout-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-layout-top-level/http-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: http-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-layout-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]
/mixed-content/worklet-layout-top-level/meta-csp/same-host-https/top-level/no-redirect/allowed/allowed.https.html
    opt_in_method: meta-csp
                                 origin: same-host-https
                                 source_scheme: https
                                 context_nesting: top-level
                                 redirection: no-redirect
                                 subresource: worklet-layout-top-level
                                 expectation: allowed: FAIL[linux32-debug,linux64-debug,linux64-opt]

Tests that are disabled for instability:
/mixed-content/link-prefetch-tag/no-opt-in/same-host-https/top-level/keep-scheme-redirect/allowed/allowed.https.html: [linux32-opt]

Comment 5

2 months ago
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cb8f38a459ab
[wpt PR 15538] - [WPT] Move common.js from {referrer-policy,mixed-content} to common/security-features, a=testonly

Comment 6

2 months ago
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7e9b2ef12e6d
[wpt PR 15538] - [WPT] Move common.js from {referrer-policy,mixed-content} to common/security-features, a=testonly

Comment 7

2 months ago
bugherder
Status: NEW → RESOLVED
Last Resolved: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.