DOMImplementation-createHTMLDocument-with-null-browsing-context-crash.html (620B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>DOMImplementation.createHTMLDocument()</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-createhtmldocument"> 6 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1086800"> 7 <meta name="assert" content="Calling on createHTMLDocument() 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.createHTMLDocument(); 13 </script>