diff --git a/html/cross-origin-opener-policy/navigate-to-aboutblank.https.html b/html/cross-origin-opener-policy/navigate-to-aboutblank.https.html new file mode 100644 index 000000000000000..8e3da11e04d3aca --- /dev/null +++ b/html/cross-origin-opener-policy/navigate-to-aboutblank.https.html @@ -0,0 +1,176 @@ + + This tests the inheritance of COOP for navigations to about:blank. + + + + + + + + + + +

Non-initial empty documents (about:blank) should inherit their + cross-origin-opener-policy from the navigation's initiator top level document, + if the initiator and its top level document are same-origin, or default + (unsafe-none) otherwise. +

+ +
    +
  1. Create the opener popup with a given COOP openerCOOP.
  2. +
  3. Add iframe to the opener popup that is either same-origin or + cross-origin. +
  4. +
  5. Opener's iframe opens a new window, to a network document with openeeCOOP.
  6. +
  7. Opener's iframe navigates the openee popup to about:blank.
  8. +
+ + diff --git a/html/cross-origin-opener-policy/navigate-top-to-aboutblank.https.html b/html/cross-origin-opener-policy/navigate-top-to-aboutblank.https.html new file mode 100644 index 000000000000000..34a75cee57a1f63 --- /dev/null +++ b/html/cross-origin-opener-policy/navigate-top-to-aboutblank.https.html @@ -0,0 +1,166 @@ + + This tests the inheritance of COOP for navigations of the top document to about:blank. + + + + + + + + + + +

Non-initial empty documents (about:blank) should inherit their + cross-origin-opener-policy from the navigation's initiator top level document, + if the initiator and its top level document are same-origin, or default (to + unsafe-none) otherwise. +

+ +
    +
  1. Create the opener popup with a given COOP openerCOOP.
  2. +
  3. Add iframe to the opener popup that is either same-origin or + cross-origin. +
  4. +
  5. Opener opens a new window, to a network document with the same origin and + COOP value as opener.
  6. +
  7. Opener's iframe navigates its parent frame (opener) to about:blank.
  8. +
  9. Verify the openee still has access to its opener.
  10. +
+ + diff --git a/lint.ignore b/lint.ignore index bcf58ea5cfe0f66..5d8db43125e7523 100644 --- a/lint.ignore +++ b/lint.ignore @@ -309,6 +309,8 @@ SET TIMEOUT: feature-policy/experimental-features/resources/focus-without-user-a SET TIMEOUT: permissions-policy/experimental-features/resources/focus-without-user-activation-iframe-tentative.html SET TIMEOUT: html/browsers/windows/auxiliary-browsing-contexts/resources/close-opener.html SET TIMEOUT: html/cross-origin-embedder-policy/resources/reporting-worker.js +SET TIMEOUT: html/cross-origin-opener-policy/navigate-to-aboutblank.https.html +SET TIMEOUT: html/cross-origin-opener-policy/navigate-top-to-aboutblank.https.html SET TIMEOUT: html/cross-origin-opener-policy/reporting/resources/dispatcher.js SET TIMEOUT: html/dom/documents/dom-tree-accessors/Document.currentScript.html SET TIMEOUT: html/webappapis/timers/*