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 711715617e9eb85849c9b775a231362b6a6b99c8..70763cdb673fb6c384bc8356725af4e575ca56d3 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 |
| + // is finalized either.) Hence, a stopped parser is the strongest |
| + // condition we can test for here. Bail, if so. |
| + if (isStopped()) |
|
haraken
2014/09/08 07:25:58
Can we simply replace the above isDetached() with
sof
2014/09/08 21:17:46
I thought it worthwhile to call out as separate at
|
| + return; |
| +#endif |
| + |
| + |
| attemptToRunDeferredScriptsAndEnd(); |
| } |