Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / inspector / DOMPatchSupport.cpp
index 9bcca0b..9708d96 100644 (file)
@@ -97,6 +97,7 @@ void DOMPatchSupport::patchDocument(const String& markup)
         parser = HTMLDocumentParser::create(toHTMLDocument(*newDocument), false);
     else
         parser = XMLDocumentParser::create(*newDocument, 0);
+    parser->pinToMainThread();
     parser->insert(markup); // Use insert() so that the parser will not yield.
     parser->finish();
     parser->detach();