Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/webappapis/structured-clone/structured-clone-detached-window-crash.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>window.structuredClone() doesn't crash when window is detached</title>
<body>
<script>
let i = document.createElement("iframe");
document.body.appendChild(i);
let i_win = i.contentWindow;
i.remove();
i_win.structuredClone("some data");
</script>