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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2783743002: Fix nullptr deref in maybeRenderFallbackContent() (Closed)
Patch Set: +test Created 3 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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 1943a85561a0a1532dd6762f7aa613ffa32afffd..b3f3867b8d56f7ff9897508ec262cfd1885ebef4 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -2078,8 +2078,8 @@ bool WebLocalFrameImpl::maybeRenderFallbackContent(
return false;
FrameLoader& frameloader = frame()->loader();
- DCHECK(frameloader.provisionalDocumentLoader());
- frameloader.loadFailed(frameloader.provisionalDocumentLoader(), error);
+ if (frameloader.provisionalDocumentLoader())
arthursonzogni 2017/03/31 09:16:33 Can you add a comment that explain why the provisi
+ frameloader.loadFailed(frameloader.provisionalDocumentLoader(), error);
return true;
arthursonzogni 2017/03/31 09:16:33 Returning true here will not work. You can try to
Nate Chapin 2017/03/31 23:59:59 Is it safe to unconditionally call DidStopLoading
}

Powered by Google App Engine
This is Rietveld 408576698