1
0
Fork 0
firefox/testing/web-platform/tests/html/cross-origin-opener-policy/coop-noopener-allow-popups.https.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

50 lines
2.2 KiB
HTML

<!doctype html>
<meta name="timeout" content="long">
<title>
Cross-Origin-Opener-Policy: noopener-allow-popups means that the opener
has no access to the openee.
</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/dispatcher/dispatcher.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="/common/utils.js"></script>
<script src="./resources/common.js"></script>
<script src="./resources/noopener-helper.js"></script>
<script>
test_noopener_opening_popup("noopener-allow-popups",
"unsafe-none",
SAME_ORIGIN,
/*opener_expectation=*/true);
test_noopener_opening_popup("noopener-allow-popups",
"noopener-allow-popups",
SAME_ORIGIN,
/*opener_expectation=*/false);
test_noopener_opening_popup("noopener-allow-popups",
"same-origin",
SAME_ORIGIN,
/*opener_expectation=*/false);
test_noopener_opening_popup("noopener-allow-popups",
"same-origin-allow-popups",
SAME_ORIGIN,
/*opener_expectation=*/false);
test_noopener_opening_popup("noopener-allow-popups",
"same-origin-allow-popups",
CROSS_ORIGIN,
/*opener_expectation=*/false);
test_noopener_opening_popup("same-origin-allow-popups",
"noopener-allow-popups",
SAME_ORIGIN,
/*opener_expectation=*/false);
test_noopener_opening_popup("same-origin",
"noopener-allow-popups",
SAME_ORIGIN,
/*opener_expectation=*/false);
test_noopener_opening_popup("unsafe-none",
"noopener-allow-popups",
SAME_ORIGIN,
/*opener_expectation=*/false);
test_noopener_navigating_away("unsafe-none");
</script>