1
0
Fork 0
firefox/browser/base/content/test/popups/popup_blocker_frame.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

27 lines
733 B
HTML

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Page with iframe that contains page that opens two popups</title>
</head>
<body>
<iframe id="iframe"></iframe>
<script type="text/javascript">
let params = new URLSearchParams(location.search);
let base = params.get('base') || location.href;
let frame = document.getElementById('iframe');
function addPopupOpeningFrame() {
frame.src = new URL("popup_blocker.html", base);
}
if (params.get('delayed') !== 'true') {
addPopupOpeningFrame();
} else {
addEventListener("message", () => {
addPopupOpeningFrame();
}, {once: true});
}
</script>
</body>
</html>