| <!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('style').textContent = ''; // this triggers createSheet |
| innerDocument.documentElement.textContent = ''; |
| |
| gc(); |
| innerDocument.styleSheets[0] && innerDocument.styleSheets[0].ownerNode; |
| finishJSTest(); |
| }; |
| |
| </script> |
| <iframe src="data:text/html,<style>*{}</style>"></iframe> |
| <script src="../../../resources/js-test-post.js"></script> |