1
0
Fork 0
firefox/testing/web-platform/tests/editing/crashtests/replace-document-root-and-refocus-window.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

23 lines
466 B
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
document.addEventListener("DOMContentLoaded", () => {
document.designMode = "on";
let win;
try {
win = top.open("data:text/html,This is new window");
} catch (e) {
}
document.designMode = "off";
document.documentElement.innerHTML = document.documentElement.innerHTML;
win?.close();
focus();
}, {once: true});
</script>
</head>
<body>
<small contenteditable></small>
</body>
</html>