Chromium Code Reviews| Index: Source/core/html/parser/HTMLDocumentParser.cpp |
| diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp |
| index 6550314ea84dcfcda1d5c7d343b5027dd2216d9a..0a366a3645308653d8a7a7044a6ac0f4288a07bd 100644 |
| --- a/Source/core/html/parser/HTMLDocumentParser.cpp |
| +++ b/Source/core/html/parser/HTMLDocumentParser.cpp |
| @@ -239,6 +239,17 @@ void HTMLDocumentParser::prepareToStopParsing() |
| if (isDetached()) |
| return; |
| +#if ENABLE(OILPAN) |
| + // The Oilpan sub-variant of the above; the document (parser) may |
| + // only have stopped by this stage, but the parser hasn't been cancelled |
| + // and detached. (The will not currently happen when the LocalFrame |
|
haraken
2014/09/11 14:47:26
The => That
|
| + // is finalized either.) Hence, a stopped parser is the strongest |
| + // condition we can test for here. Bail, if so. |
| + if (isStopped()) |
| + return; |
| +#endif |
| + |
| + |
| attemptToRunDeferredScriptsAndEnd(); |
| } |