Chromium Code Reviews| 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(); |