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

Issue 2783743002: Fix nullptr deref in maybeRenderFallbackContent() (Closed)

Created:
3 years, 8 months ago by Nate Chapin
Modified:
3 years, 8 months ago
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix nullptr deref in maybeRenderFallbackContent() There are no strict guarantees the provisional DocumentLoader won't have been detached by the time maybeRenderFallbackContent() is called. BUG=704523 Review-Url: https://codereview.chromium.org/2783743002 Cr-Commit-Position: refs/heads/master@{#464526} Committed: https://chromium.googlesource.com/chromium/src/+/ecbbca63b50474ff80cf3410e491f2bc52813b81

Patch Set 1 #

Patch Set 2 : +test #

Total comments: 5

Patch Set 3 : Add case for when frame isn't loading #

Patch Set 4 : Fix tests, handled the non-loading cause in the maybeRenderFallbackContent() if block #

Total comments: 2

Patch Set 5 : Rebase, flip was_loading #

Total comments: 3

Patch Set 6 : enum-ify MaybeRenderFallbackContent #

Total comments: 8

Patch Set 7 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -10 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 1 chunk +11 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 1 chunk +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 1 chunk +63 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/fallback.html View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 3 4 5 6 1 chunk +11 lines, -3 lines 0 comments Download

Messages

Total messages: 52 (31 generated)
Nate Chapin
Greetings PlzNavigaters, I made a crash in https://chromium.googlesource.com/chromium/src/+/476af767372c72fd5e71f365e78481af9ce9a1d9. The fix is simple and obvious, but ...
3 years, 8 months ago (2017-03-28 18:25:01 UTC) #6
arthursonzogni
On 2017/03/28 18:25:01, Nate Chapin wrote: > Greetings PlzNavigaters, > > I made a crash ...
3 years, 8 months ago (2017-03-29 08:24:39 UTC) #9
Nate Chapin
On 2017/03/29 08:24:39, arthursonzogni wrote: > On 2017/03/28 18:25:01, Nate Chapin wrote: > > Greetings ...
3 years, 8 months ago (2017-03-29 19:16:13 UTC) #10
arthursonzogni
On 2017/03/29 19:16:13, Nate Chapin wrote: > On 2017/03/29 08:24:39, arthursonzogni wrote: > > On ...
3 years, 8 months ago (2017-03-30 08:42:01 UTC) #11
Nate Chapin
On 2017/03/30 08:42:01, arthursonzogni wrote: > On 2017/03/29 19:16:13, Nate Chapin wrote: > > On ...
3 years, 8 months ago (2017-03-30 22:50:35 UTC) #12
arthursonzogni
On 2017/03/30 22:50:35, Nate Chapin wrote: > On 2017/03/30 08:42:01, arthursonzogni wrote: > > On ...
3 years, 8 months ago (2017-03-31 09:15:55 UTC) #17
arthursonzogni
https://codereview.chromium.org/2783743002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/2783743002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#newcode2081 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:2081: if (frameloader.provisionalDocumentLoader()) Can you add a comment that explain ...
3 years, 8 months ago (2017-03-31 09:16:33 UTC) #18
Nate Chapin
https://codereview.chromium.org/2783743002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/2783743002/diff/20001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#newcode2083 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:2083: return true; On 2017/03/31 09:16:33, arthursonzogni wrote: > Returning ...
3 years, 8 months ago (2017-03-31 23:59:59 UTC) #20
arthursonzogni
On 2017/03/31 23:59:59, Nate Chapin wrote: > Is it safe to unconditionally call DidStopLoading here? ...
3 years, 8 months ago (2017-04-03 11:02:02 UTC) #24
Nate Chapin
On 2017/04/03 11:02:02, arthursonzogni wrote: > On 2017/03/31 23:59:59, Nate Chapin wrote: > > Is ...
3 years, 8 months ago (2017-04-04 18:41:00 UTC) #27
arthursonzogni
It looks good to me. Thanks! LGTM % one error to fix. https://codereview.chromium.org/2783743002/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc ...
3 years, 8 months ago (2017-04-05 07:53:34 UTC) #30
Nate Chapin
https://codereview.chromium.org/2783743002/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2783743002/diff/60001/content/renderer/render_frame_impl.cc#newcode5271 content/renderer/render_frame_impl.cc:5271: bool was_loading = !frame_->isLoading(); On 2017/04/05 07:53:34, arthursonzogni wrote: ...
3 years, 8 months ago (2017-04-11 18:39:00 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2783743002/80001
3 years, 8 months ago (2017-04-11 18:39:55 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/408222)
3 years, 8 months ago (2017-04-11 18:53:43 UTC) #36
Nate Chapin
Hey creis, would you mind doing a quick content/ review here?
3 years, 8 months ago (2017-04-11 20:28:22 UTC) #38
Charlie Reis
https://codereview.chromium.org/2783743002/diff/80001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2783743002/diff/80001/content/renderer/render_frame_impl.cc#newcode5263 content/renderer/render_frame_impl.cc:5263: // If the frame wasn't loading but was fallback-elligible, ...
3 years, 8 months ago (2017-04-11 21:08:40 UTC) #39
Nate Chapin
https://codereview.chromium.org/2783743002/diff/80001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2783743002/diff/80001/content/renderer/render_frame_impl.cc#newcode5267 content/renderer/render_frame_impl.cc:5267: // browser to unwind its state, and leave the ...
3 years, 8 months ago (2017-04-12 21:58:01 UTC) #44
Charlie Reis
Yep, that works for me-- thanks! LGTM. https://codereview.chromium.org/2783743002/diff/100001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2783743002/diff/100001/content/renderer/render_frame_impl.cc#newcode5265 content/renderer/render_frame_impl.cc:5265: // If ...
3 years, 8 months ago (2017-04-12 22:05:22 UTC) #45
Nate Chapin
https://codereview.chromium.org/2783743002/diff/100001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2783743002/diff/100001/content/renderer/render_frame_impl.cc#newcode5265 content/renderer/render_frame_impl.cc:5265: // If the frame wasn't loading but was fallback-elligible, ...
3 years, 8 months ago (2017-04-13 17:32:22 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2783743002/120001
3 years, 8 months ago (2017-04-13 17:33:45 UTC) #49
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 20:26:46 UTC) #52
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/ecbbca63b50474ff80cf3410e491...

Powered by Google App Engine
This is Rietveld 408576698