blob: a892db8c4a99e05867c5106094f6188b106ea88a [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/js-test-pre.js"></script>
<script>
description('This tests that accessing ownerNode on a disconnected style sheet does not crash');
jsTestIsAsync = true;
window.onload = function() {
var innerDocument = document.querySelector('iframe').contentDocument;
document.body.removeChild(document.querySelector('iframe'));
innerDocument.querySelector('link').rel = 'icon'; // this triggers process
innerDocument.documentElement.textContent = '';
gc();
innerDocument.styleSheets[0] && innerDocument.styleSheets[0].ownerNode;
finishJSTest();
};
</script>
<iframe src="data:text/html,<link rel='stylesheet' href='data:text/css,*{}'>"></iframe>
<script src="../../../resources/js-test-post.js"></script>