cross-site-frame-with-sandboxed-embed.html (721B)
1 <!doctype html> 2 3 <head> 4 <meta charset="utf-8" /> 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 </head> 10 11 <body> 12 <script> 13 promise_test(async (t) => { 14 const child = document.createElement("iframe"); 15 child.src = SECURE_ORIGIN + 16 "/cookies/samesite/resources/same-site-none-embed.html"; 17 child.sandbox = "allow-scripts allow-same-site-none-cookies" 18 document.body.appendChild(child); 19 20 await fetch_tests_from_window(child.contentWindow); 21 }, "Intermediate Frame"); 22 23 </script> 24 </body>