1
0
Fork 0
firefox/testing/web-platform/tests/fenced-frame/resources/create-popup.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

18 lines
725 B
HTML

<!DOCTYPE html>
<script src="utils.js"></script>
<title>Nested frames in a Fenced Frame tree creating popups</title>
<script>
// It is the document that `popup-noopener-inner.html` loads in a nested
// iframe/fenced frame.
// It's expected that the opener/openee references should be null, and
// window.name should be the empty string.
const [popup_noopener_key, popup_openee_key, popup_name_key] = parseKeylist();
const src_popup = generateURL(`popup-noopener-destination.html`,
[popup_noopener_key, popup_name_key]);
const popup = window.open(src_popup, "foo");
if (popup) {
writeValueToServer(popup_openee_key, "FAIL");
} else {
writeValueToServer(popup_openee_key, "PASS");
}
</script>