create-popup.html (725B)
1 <!DOCTYPE html> 2 <script src="utils.js"></script> 3 <title>Nested frames in a Fenced Frame tree creating popups</title> 4 <script> 5 // It is the document that `popup-noopener-inner.html` loads in a nested 6 // iframe/fenced frame. 7 // It's expected that the opener/openee references should be null, and 8 // window.name should be the empty string. 9 const [popup_noopener_key, popup_openee_key, popup_name_key] = parseKeylist(); 10 const src_popup = generateURL(`popup-noopener-destination.html`, 11 [popup_noopener_key, popup_name_key]); 12 const popup = window.open(src_popup, "foo"); 13 if (popup) { 14 writeValueToServer(popup_openee_key, "FAIL"); 15 } else { 16 writeValueToServer(popup_openee_key, "PASS"); 17 } 18 </script>