blob: 2f48f07c85743072a6e29b86291090d329239467 [file] [log] [blame]
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
test( () => {
const iframe = document.createElement('iframe')
const button = document.createElement('button');
iframe.contentDocument.body.appendChild(button); = 'button';
button.onfocus = () => {
// This will detach the iframe's document from its frame before
// reattaching to the DOM and creating a new document. Ensure nothing
// touches the cleared frame.
// Cause the button to be focused and scrolled into view.
iframe.contentWindow.location.hash = 'button';
}, "Detaching document during scroll to fragment doesn't crash");