<!DOCTYPE html>
<script src="../../../resources/js-test.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 srcdoc="<link rel='stylesheet' href='data:text/css,*{}'>"></iframe>