blob: 12e10d240d4715534fcd1e4f04296102d85b5873 [file] [log] [blame]
<html>
<body>
<script src="../../resources/js-test.js"></script>
<script>
description("Verify that detached windows are still writable");
const iframe = document.createElement('iframe');
document.body.appendChild(iframe);
const iframeContentWindow = iframe.contentWindow;
iframeContentWindow.foo = 1;
iframe.remove();
iframeContentWindow.foo++;
shouldBe("iframeContentWindow.foo", "2");
</script>
</body>
</html>