coop-navigated-history-popup.https.html (939B)
1 <!doctype html> 2 <title>Cross-Origin-Opener-Policy: a navigating popup that then goes back in history</title> 3 <meta name=timeout content=long> 4 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharnessreport.js></script> 6 <script src="/common/get-host-info.sub.js"></script> 7 <script src="resources/common.js"></script> 8 <script> 9 const title = `Popup navigating to other origin with COOP: same-origin and back in history`; 10 const channel = title.replace(/ /g,"-"); 11 const opener = false; 12 const openerDOMAccess = false; 13 const navigateURL = `${CROSS_ORIGIN.origin}/html/cross-origin-opener-policy/resources/coop-coep.py?coop=same-origin&coep=&navHistory=-1`; 14 15 async_test(t => { 16 url_test(t, `${SAME_ORIGIN.origin}/html/cross-origin-opener-policy/resources/coop-coep.py?coop=&coep=&navigate=${encodeURIComponent(navigateURL)}&avoidBackAndForth=1&channel=${channel}`, channel, opener, openerDOMAccess); 17 }, title); 18 </script>