Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Unified Diff: Source/core/inspector/DOMPatchSupport.cpp

Issue 521363002: Make XHR use the background HTML parser (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix compile Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/DOMPatchSupport.cpp
diff --git a/Source/core/inspector/DOMPatchSupport.cpp b/Source/core/inspector/DOMPatchSupport.cpp
index 9bcca0b922b5513566c1e72caebae0c1bdf09bd3..9708d9671ef630af589c9776f11745de8b1ea04c 100644
--- a/Source/core/inspector/DOMPatchSupport.cpp
+++ b/Source/core/inspector/DOMPatchSupport.cpp
@@ -97,6 +97,7 @@ void DOMPatchSupport::patchDocument(const String& markup)
parser = HTMLDocumentParser::create(toHTMLDocument(*newDocument), false);
else
parser = XMLDocumentParser::create(*newDocument, 0);
+ parser->pinToMainThread();
eseidel 2014/09/09 22:18:20 This shouldn't be necessary with insert(), but see
parser->insert(markup); // Use insert() so that the parser will not yield.
parser->finish();
parser->detach();

Powered by Google App Engine
This is Rietveld 408576698