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

Issue 2260383002: Don't crash after calling frame_->stopLoading(). (Closed)

Created:
4 years, 4 months ago by Charlie Reis
Modified:
4 years, 4 months ago
Reviewers:
dcheng
CC:
chromium-reviews, nasko+codewatch_chromium.org, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, creis+watch_chromium.org, nasko, site-isolation-reviews_chromium.org, Nate Chapin, lfg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't crash after calling frame_->stopLoading(). It's possible for frame_ to be deleted after this call, so add null checks after call sites. BUG=639688, 639689 TEST=No more OnStop or NavigateInternal crashes in RenderFrameImpl. Committed: https://crrev.com/594e9909a655dd435a9a7b0ccc049423f71b6dc7 Cr-Commit-Position: refs/heads/master@{#413438}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M content/renderer/render_frame_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (13 generated)
Charlie Reis
Daniel, do you know how calling frame_->stopLoading() might cause frame_ to be null? I'm curious ...
4 years, 4 months ago (2016-08-21 22:40:53 UTC) #11
dcheng
LGTM. stopLoading() can dispatch events, so I guess this is expected.
4 years, 4 months ago (2016-08-22 06:51:56 UTC) #12
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/2260383002/1
4 years, 4 months ago (2016-08-22 11:52:05 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-22 13:45:21 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 13:47:13 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/594e9909a655dd435a9a7b0ccc049423f71b6dc7
Cr-Commit-Position: refs/heads/master@{#413438}

Powered by Google App Engine
This is Rietveld 408576698