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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 1642283002: Deal with frame removal by content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Last nits Created 4 years, 9 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: third_party/WebKit/Source/core/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index c5b90833586a910d8ed2c0d8f567e32b7d1bd25d..b9a4a344130e8add5bf03516c50c50334c6cc12f 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -319,6 +319,9 @@ void DocumentLoader::finishedLoading(double finishTime)
commitData(0, 0);
}
+ if (!m_frame)
+ return;
+
m_applicationCacheHost->finishedLoadingMainResource();
endWriting(m_writer.get());
if (m_state < MainResourceDone)

Powered by Google App Engine
This is Rietveld 408576698