diff --git a/testing/web-platform/meta/html/cross-origin-opener/new_window_same_site.html.ini b/testing/web-platform/meta/html/cross-origin-opener/new_window_same_site.html.ini new file mode 100644 index 000000000000..610c71830b67 --- /dev/null +++ b/testing/web-platform/meta/html/cross-origin-opener/new_window_same_site.html.ini @@ -0,0 +1,2 @@ +[new_window_same_site.html] + prefs: [browser.tabs.remote.useCrossOriginOpenerPolicy:true] diff --git a/testing/web-platform/tests/html/cross-origin-opener/new_window_same_site.html b/testing/web-platform/tests/html/cross-origin-opener/new_window_same_site.html new file mode 100644 index 000000000000..b75f7ff7a646 --- /dev/null +++ b/testing/web-platform/tests/html/cross-origin-opener/new_window_same_site.html @@ -0,0 +1,26 @@ + + + + + + + diff --git a/testing/web-platform/tests/html/cross-origin-opener/new_window_same_site.html.headers b/testing/web-platform/tests/html/cross-origin-opener/new_window_same_site.html.headers new file mode 100644 index 000000000000..34bd099a302f --- /dev/null +++ b/testing/web-platform/tests/html/cross-origin-opener/new_window_same_site.html.headers @@ -0,0 +1 @@ +Cross-Origin-Opener-Policy: same-site diff --git a/testing/web-platform/tests/html/cross-origin-opener/resources/postback.sub.html b/testing/web-platform/tests/html/cross-origin-opener/resources/postback.sub.html new file mode 100644 index 000000000000..ee08bab4d55e --- /dev/null +++ b/testing/web-platform/tests/html/cross-origin-opener/resources/postback.sub.html @@ -0,0 +1,13 @@ + + + + diff --git a/testing/web-platform/tests/html/cross-origin-opener/resources/window.sub.html b/testing/web-platform/tests/html/cross-origin-opener/resources/window.sub.html new file mode 100644 index 000000000000..7c72f87c3ddd --- /dev/null +++ b/testing/web-platform/tests/html/cross-origin-opener/resources/window.sub.html @@ -0,0 +1,18 @@ + + + + +
+ + diff --git a/testing/web-platform/tests/html/cross-origin-opener/resources/window.sub.html.headers b/testing/web-platform/tests/html/cross-origin-opener/resources/window.sub.html.headers new file mode 100644 index 000000000000..34bd099a302f --- /dev/null +++ b/testing/web-platform/tests/html/cross-origin-opener/resources/window.sub.html.headers @@ -0,0 +1 @@ +Cross-Origin-Opener-Policy: same-site