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

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

Issue 2436623004: [Fetch, Loader] Expect on-heap objects will never get destroyed with a reference (Closed)
Patch Set: Created 4 years, 2 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/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 83912c85c72ef76136a71665479b9a957ef579fc..4be0fd7fbd413dd8abf6baaf37112ca3c0200590 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -354,9 +354,6 @@ void FrameLoader::replaceDocumentWhileExecutingJavaScriptURL(
Document::NoDismissal)
return;
- // DocumentLoader::replaceDocumentWhileExecutingJavaScriptURL can cause the
- // DocumentLoader to get deref'ed and possible destroyed, so protect it with a
- // RefPtr.
DocumentLoader* documentLoader(m_frame->document()->loader());
UseCounter::count(*m_frame->document(),
@@ -613,7 +610,7 @@ void FrameLoader::finishedParsing() {
checkCompleted();
if (!m_frame->view())
- return; // We are being destroyed by something checkCompleted called.
hiroshige 2016/10/21 05:45:14 If this |if| block remains, then should we leave s
yhirano 2016/10/26 11:09:34 I'm not 100% sure but it looks FrameLoaderClient::
+ return;
// Check if the scrollbars are really needed for the content. If not, remove
// them, relayout, and repaint.

Powered by Google App Engine
This is Rietveld 408576698