iframe.sub.html (553B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <script src="/resources/testdriver.js"></script> 4 <script src="/resources/testdriver-vendor.js"></script> 5 <body> 6 <script> 7 // Step 3 (workers/same-site-cookies/third-party.{}) 8 test_driver.set_test_context(window.top); 9 const type = (new URLSearchParams(window.location.search)).get("type"); 10 let iframe = document.createElement("iframe"); 11 iframe.src = "https://{{hosts[][]}}:{{ports[https][0]}}/workers/same-site-cookies/resources/iframe-iframe.html?type=" + type; 12 document.body.appendChild(iframe); 13 </script> 14 </body>