blob: 1a747c8bb9c53066cbb1231fa4efd9019a96a61d [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ ServiceControlsEnabled=true ] -->
<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
addEventListener("load", () => {
const frame = document.querySelector("iframe");
const frameSet = document.createElement("frameset");
const frameDocument = frame.contentDocument;
frameDocument.getSelection().selectAllChildren(frameDocument.body);
frameSet.onblur = () => document.body.appendChild(frame);
frame.focus();
});
</script>
</head>
<body>
<p>This test passes if it does not crash.</p>
<iframe srcdoc="<body>Hello</body>"></iframe>
</body>
</html>