coop-noopener-allow-popups-restrict-properties.https.html (1036B)
1 <!doctype html> 2 <meta name="timeout" content="long"> 3 <title> 4 Cross-Origin-Opener-Policy: noopener-allow-popups means that the opener 5 has no access to the openee. This test verfies it for restrict-properties 6 COOP values. 7 </title> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/common/dispatcher/dispatcher.js"></script> 11 <script src="/common/get-host-info.sub.js"></script> 12 <script src="/common/utils.js"></script> 13 <script src="../../resources/common.js"></script> 14 <script src="../../resources/noopener-helper.js"></script> 15 <script> 16 17 18 test_noopener_opening_popup("noopener-allow-popups", 19 "restrict-properties", 20 SAME_ORIGIN, 21 /*opener_expectation=*/true); 22 test_noopener_opening_popup("restrict-properties", 23 "noopener-allow-popups", 24 SAME_ORIGIN, 25 /*opener_expectation=*/false); 26 </script>