DOMImplementation-createDocument-with-null-browsing-context-crash.html (610B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>DOMImplementation.createDocument()</title> 4 <link rel="author" title="Nate Chapin" href="mailto:japhet@chromium.org"> 5 <link rel=help href="https://dom.spec.whatwg.org/#dom-domimplementation-createdocument"> 6 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1086801"> 7 <meta name="assert" content="Calling on createDocument() on a DOMImplementation from a document with a null browsing context should not crash"/> 8 <iframe id="i"></iframe> 9 <script> 10 var doc = i.contentDocument; 11 i.remove(); 12 doc.implementation.createDocument("", ""); 13 </script>