popup-with-structured-header.https.html (999B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <meta name=timeout content=long> 4 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharnessreport.js></script> 6 <script src="/common/dispatcher/dispatcher.js"></script> 7 <script src="/common/get-host-info.sub.js"></script> 8 <script src="/common/utils.js"></script> 9 <script src="resources/common.js"></script> 10 <script src="resources/popup-test.js"></script> 11 <script> 12 13 [ 14 { 15 "title": "popup with structured coop unsafe-none", 16 "coop": "unsafe-none; report-to=endpoint", 17 "opener": "severed", 18 }, 19 { 20 "title": "popup with structured coop same-origin", 21 "coop": "same-origin; report-to=endpoint", 22 "opener": "preserved", 23 }, 24 { 25 "title": "popup with structured coop same-origin-allow-popups", 26 "coop": "same-origin-allow-popups; report-to=endpoint", 27 "opener": "severed", 28 } 29 ].forEach(variant => { 30 popup_test(`Same-origin ${variant.title}`, SAME_ORIGIN, { coop: variant.coop }, variant.opener); 31 }); 32 33 </script>