popup-noopener-destination.html (801B)
1 <!DOCTYPE html> 2 <script src="utils.js"></script> 3 <title>Destination page opened by a frame in a Fenced Frame tree</title> 4 <script> 5 // It is the document that `popup-noopener-inner.html` loads in a new 6 // window/tab from a root fenced frame, an iframe in a fenced frame and from 7 // a nested fenced frame. It's expected that any popup opened from a Fenced 8 // Frame tree cannot reach the opener. 9 const [popup_noopener_key, popup_name_key] = parseKeylist(); 10 if (window.opener) { 11 writeValueToServer(popup_noopener_key, "FAIL: window.opener is not null"); 12 } else { 13 writeValueToServer(popup_noopener_key, "PASS"); 14 } 15 if (window.name) { 16 writeValueToServer(popup_name_key, "FAIL: window.name is not empty"); 17 } else { 18 writeValueToServer(popup_name_key, "PASS"); 19 } 20 </script>