From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../navigate-top-to-aboutblank.https.html | 171 +++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 testing/web-platform/tests/html/cross-origin-opener-policy/navigate-top-to-aboutblank.https.html (limited to 'testing/web-platform/tests/html/cross-origin-opener-policy/navigate-top-to-aboutblank.https.html') diff --git a/testing/web-platform/tests/html/cross-origin-opener-policy/navigate-top-to-aboutblank.https.html b/testing/web-platform/tests/html/cross-origin-opener-policy/navigate-top-to-aboutblank.https.html new file mode 100644 index 0000000000..fe605baf45 --- /dev/null +++ b/testing/web-platform/tests/html/cross-origin-opener-policy/navigate-top-to-aboutblank.https.html @@ -0,0 +1,171 @@ + + 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. +
+ + -- cgit v1.2.3