ancestor-chain-cross-site-embed.html (904B)
1 <!doctype html> 2 <head> 3 <meta charset="utf-8"/> 4 <meta name="timeout" content="long"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/cookies/resources/testharness-helpers.js"></script> 7 <script src="/common/get-host-info.sub.js"></script> 8 <script src="/cookies/resources/cookie-helper.sub.js"></script> 9 <title>Test partitioned cookies ancestor chain: cross site embed</title> 10 </head> 11 <body> 12 <script> 13 14 promise_test(async () => { 15 assert_false(document.cookie.includes("ancestor=chain")); 16 17 const iframe = document.createElement("iframe"); 18 const url = new URL( 19 "./ancestor-chain-same-site-embed.html", 20 get_host_info().ORIGIN + self.location.pathname); 21 22 iframe.src = url.href; 23 document.body.appendChild(iframe); 24 await new Promise(r => iframe.onload = r); 25 26 await fetch_tests_from_window(iframe.contentWindow); 27 28 }, "Embed same-site embed in cross-site"); 29 30 </script> 31 </body>