| <!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> |