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

Unified Diff: Source/WebCore/html/parser/HTMLDocumentParser.cpp

Issue 11819065: Merge 138926 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 7 years, 11 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/WebCore/html/parser/HTMLDocumentParser.cpp
===================================================================
--- Source/WebCore/html/parser/HTMLDocumentParser.cpp (revision 139357)
+++ Source/WebCore/html/parser/HTMLDocumentParser.cpp (working copy)
@@ -146,6 +146,11 @@
if (m_scriptRunner)
document()->setReadyState(Document::Interactive);
+ // Setting the ready state above can fire mutation event and detach us
+ // from underneath. In that case, just bail out.
+ if (isDetached())
+ return;
+
attemptToRunDeferredScriptsAndEnd();
}
« no previous file with comments | « LayoutTests/fast/dom/ready-state-change-crash-expected.txt ('k') | Source/WebCore/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698