Reviewed by Maciej.
[WebKit-https.git] / WebCore / dom / DocumentImpl.cpp
index d851efdebbaff13362d971bc6f868cf41de71c6b..1d3a4286c8199320cbabac0d1d020e7ff4b87570 100644 (file)
@@ -1070,7 +1070,7 @@ Tokenizer *DocumentImpl::createTokenizer()
 
 void DocumentImpl::open()
 {
-    if (parsing())
+    if (frame() && frame()->isLoadingMainResource())
         return;
 
     implicitOpen();