Closed Bug 1564430 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 17606 - COOP and COEP tests

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Anne van Kesteren <annevk@annevk.nl> wrote:

COOP and COEP tests

Initial (incomplete) take at restructuring some of the existing tests to account for name and logic changes.

TODO:

  • [x] Rewrite COEP popup tests (at the end of require-corp.tentative.html) into COOP+COEP tests.
  • [x] Add more COOP+COEP tests.
  • [x] Add COOP unsafe-inherit tests. (Writing this down I realize currently it also inherits COEP which is a bug. Make sure to test that and fix the draft.)
  • [ ] Add some tests for initial/non-initial about:blank/blob/data URLs.
  • [ ] Workers...
  • [ ] [Suggestions?]
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Type: -- → task

bug 1543068 + bug 1543066 + turn on some prefs will pass the tests

(In reply to Junior [:junior] from comment #2)

bug 1543068 + bug 1543066 + turn on some prefs will pass the tests

To be specific:

Turn on browser.tabs.remote.useCrossOriginEmbedderPolicy and browser.tabs.remote.useCrossOriginOpenerPolicy
in folder html/cross-origin-opener-policy/ (previous html/cross-origin-opener/)

Turn on browser.tabs.remote.useCrossOriginEmbedderPolicy and browser.tabs.remote.useCORP
in folder html/cross-origin-embedder-policy/ (previous html/cross-origin/)

The following tests were disabled based on stability try push: html/cross-origin-opener-policy/Sandboxed Cross-Origin-Opener-Policy popup should result in a network error
Ran 19 tests and 143 subtests OK : 19 PASS : 20 FAIL : 123 New tests that have failures or other problems: /html/cross-origin-embedder-policy/blob.https.html Cross-Origin-Embedder-Policy and blob: URL from https://not-web-platform.test:8443 in subframe via navigate: FAIL Cross-Origin-Embedder-Policy and blob: URL from https://not-web-platform.test:8443 in subframe via subframe: FAIL Cross-Origin-Embedder-Policy and blob: URL from https://web-platform.test:8443 in subframe via navigate: FAIL Cross-Origin-Embedder-Policy and blob: URL from https://web-platform.test:8443 in subframe via subframe: FAIL Cross-Origin-Embedder-Policy and blob: URL from https://www1.web-platform.test:8443 in subframe via navigate: FAIL Cross-Origin-Embedder-Policy and blob: URL from https://www1.web-platform.test:8443 in subframe via subframe: FAIL /html/cross-origin-embedder-policy/data.https.html Cross-Origin-Embedder-Policy and data: URLs: FAIL /html/cross-origin-embedder-policy/require-corp.https.html "require-corp" top-level: fetch() to response without CORP should fail: FAIL "require-corp" top-level: navigating a frame from "require-corp" to "none" should fail: FAIL "require-corp" top-level: navigating a frame to "none" should fail: FAIL /html/cross-origin-embedder-policy/sandbox.https.html Cross-Origin-Embedder-Policy and sandbox: FAIL /html/cross-origin-embedder-policy/srcdoc.https.html Cross-Origin-Embedder-Policy and srcdoc: FAIL /html/cross-origin-opener-policy/coep-navigate-popup.https.html Popup navigating to same-origin with coop unsafe-inherit/no coep: FAIL Popup navigating to same-origin with coop/no coep: FAIL Popup navigating to same-origin with no coop/coep: FAIL Popup navigating to same-origin with no coop/no coep: FAIL Popup navigating to same-site with coop unsafe-inherit/coep: FAIL Popup navigating to same-site with coop unsafe-inherit/no coep: FAIL Popup navigating to same-site with coop/coep: FAIL Popup navigating to same-site with coop/no coep: FAIL Popup navigating to same-site with no coop/coep: FAIL Popup navigating to same-site with no coop/no coep: FAIL /html/cross-origin-opener-policy/coep-redirect.https.html Redirect from coop/coep to no coop/coep: FAIL Redirect from coop/no coep to coop/coep: FAIL Redirect from no coop/no coep to coop/coep: FAIL /html/cross-origin-opener-policy/coep.https.html Same-origin popup with coop unsafe-inherit without coep: FAIL Same-origin popup without coep: FAIL Same-site popup with coop unsafe-inherit without coep: FAIL Same-site popup with coop unsafe-inherit/coep: FAIL Same-site popup with coop/coep: FAIL Same-site popup without coep: FAIL /html/cross-origin-opener-policy/coop-navigated-popup.https.html Open a popup to a document without COOP, then navigate it to a document with: FAIL /html/cross-origin-opener-policy/coop-sandbox.https.html Sandboxed Cross-Origin-Opener-Policy popup should result in a network error: FAIL /html/cross-origin-opener-policy/popup-none.https.html none document opening popup to https://not-web-platform.test:8443 with COOP: "": FAIL none document opening popup to https://not-web-platform.test:8443 with COOP: "jibberish": FAIL none document opening popup to https://not-web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL none document opening popup to https://not-web-platform.test:8443 with COOP: "same-origin": FAIL none document opening popup to https://not-web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL none document opening popup to https://not-web-platform.test:8443 with COOP: "same-site": FAIL none document opening popup to https://web-platform.test:8443 with COOP: "": FAIL none document opening popup to https://web-platform.test:8443 with COOP: "jibberish": FAIL none document opening popup to https://web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL none document opening popup to https://web-platform.test:8443 with COOP: "same-origin": FAIL none document opening popup to https://web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL none document opening popup to https://web-platform.test:8443 with COOP: "same-site": FAIL none document opening popup to https://www1.web-platform.test:8443 with COOP: "": FAIL none document opening popup to https://www1.web-platform.test:8443 with COOP: "jibberish": FAIL none document opening popup to https://www1.web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL none document opening popup to https://www1.web-platform.test:8443 with COOP: "same-origin": FAIL none document opening popup to https://www1.web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL none document opening popup to https://www1.web-platform.test:8443 with COOP: "same-site": FAIL /html/cross-origin-opener-policy/popup-same-origin-unsafe-allow-outgoing.https.html same-origin_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "jibberish": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "same-origin": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "same-site": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "jibberish": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "same-origin": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "same-site": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "jibberish": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "same-origin": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-origin_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "same-site": FAIL /html/cross-origin-opener-policy/popup-same-origin.https.html same-origin document opening popup to https://not-web-platform.test:8443 with COOP: "": FAIL same-origin document opening popup to https://not-web-platform.test:8443 with COOP: "jibberish": FAIL same-origin document opening popup to https://not-web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-origin document opening popup to https://not-web-platform.test:8443 with COOP: "same-origin": FAIL same-origin document opening popup to https://not-web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-origin document opening popup to https://not-web-platform.test:8443 with COOP: "same-site": FAIL same-origin document opening popup to https://web-platform.test:8443 with COOP: "": FAIL same-origin document opening popup to https://web-platform.test:8443 with COOP: "jibberish": FAIL same-origin document opening popup to https://web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-origin document opening popup to https://web-platform.test:8443 with COOP: "same-origin": FAIL same-origin document opening popup to https://web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-origin document opening popup to https://web-platform.test:8443 with COOP: "same-site": FAIL same-origin document opening popup to https://www1.web-platform.test:8443 with COOP: "": FAIL same-origin document opening popup to https://www1.web-platform.test:8443 with COOP: "jibberish": FAIL same-origin document opening popup to https://www1.web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-origin document opening popup to https://www1.web-platform.test:8443 with COOP: "same-origin": FAIL same-origin document opening popup to https://www1.web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-origin document opening popup to https://www1.web-platform.test:8443 with COOP: "same-site": FAIL /html/cross-origin-opener-policy/popup-same-site-unsafe-allow-outgoing.https.html same-site_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "": FAIL same-site_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "jibberish": FAIL same-site_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-site_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "same-origin": FAIL same-site_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-site_unsafe-allow-outgoing document opening popup to https://not-web-platform.test:8443 with COOP: "same-site": FAIL same-site_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "": FAIL same-site_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "jibberish": FAIL same-site_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-site_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "same-origin": FAIL same-site_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-site_unsafe-allow-outgoing document opening popup to https://web-platform.test:8443 with COOP: "same-site": FAIL same-site_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "": FAIL same-site_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "jibberish": FAIL same-site_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-site_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "same-origin": FAIL same-site_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-site_unsafe-allow-outgoing document opening popup to https://www1.web-platform.test:8443 with COOP: "same-site": FAIL /html/cross-origin-opener-policy/popup-same-site.https.html same-site document opening popup to https://not-web-platform.test:8443 with COOP: "": FAIL same-site document opening popup to https://not-web-platform.test:8443 with COOP: "jibberish": FAIL same-site document opening popup to https://not-web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-site document opening popup to https://not-web-platform.test:8443 with COOP: "same-origin": FAIL same-site document opening popup to https://not-web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-site document opening popup to https://not-web-platform.test:8443 with COOP: "same-site": FAIL same-site document opening popup to https://web-platform.test:8443 with COOP: "": FAIL same-site document opening popup to https://web-platform.test:8443 with COOP: "jibberish": FAIL same-site document opening popup to https://web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-site document opening popup to https://web-platform.test:8443 with COOP: "same-origin": FAIL same-site document opening popup to https://web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-site document opening popup to https://web-platform.test:8443 with COOP: "same-site": FAIL same-site document opening popup to https://www1.web-platform.test:8443 with COOP: "": FAIL same-site document opening popup to https://www1.web-platform.test:8443 with COOP: "jibberish": FAIL same-site document opening popup to https://www1.web-platform.test:8443 with COOP: "same-origin unsafe-allow-outgoing": FAIL same-site document opening popup to https://www1.web-platform.test:8443 with COOP: "same-origin": FAIL same-site document opening popup to https://www1.web-platform.test:8443 with COOP: "same-site unsafe-allow-outgoing": FAIL same-site document opening popup to https://www1.web-platform.test:8443 with COOP: "same-site": FAIL
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/f3c095c5a4fd [wpt PR 17606] - COOP and COEP tests, a=testonly https://hg.mozilla.org/integration/mozilla-inbound/rev/b6204930d784 [wpt PR 17606] - Update wpt metadata, a=testonly
Blocks: 1574690
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.