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

Issue 2858743003: Don’t call functions on a possibly-deleted object (Closed)

Created:
3 years, 7 months ago by Avi (use Gerrit)
Modified:
3 years, 7 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Don’t call functions on a possibly-deleted object JavaScriptDialogClosed walks up a list of frames. It shouldn’t be deleting frames and then calling functions on them. BUG=717410 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2858743003 Cr-Commit-Position: refs/heads/master@{#469181} Committed: https://chromium.googlesource.com/chromium/src/+/44acfaa84e1b59c9cda18fc9c9b8a2cd5dc35564

Patch Set 1 #

Patch Set 2 : comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -21 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 2 chunks +5 lines, -13 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 3 chunks +2 lines, -6 lines 2 comments Download

Messages

Total messages: 18 (13 generated)
Avi (use Gerrit)
I have a feeling you're gonna want to talk to me about this, especially since ...
3 years, 7 months ago (2017-05-03 02:47:53 UTC) #5
Charlie Reis
On 2017/05/03 02:47:53, Avi (ping after 24h) wrote: > I have a feeling you're gonna ...
3 years, 7 months ago (2017-05-03 21:33:47 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/2858743003/20001
3 years, 7 months ago (2017-05-03 22:49:31 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/44acfaa84e1b59c9cda18fc9c9b8a2cd5dc35564
3 years, 7 months ago (2017-05-03 22:55:47 UTC) #17
Avi (use Gerrit)
3 years, 7 months ago (2017-05-04 15:15:04 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/2858743003/diff/20001/content/browser/web_con...
File content/browser/web_contents/web_contents_impl.cc (left):

https://codereview.chromium.org/2858743003/diff/20001/content/browser/web_con...
content/browser/web_contents/web_contents_impl.cc:4368: //
http://crbug.com/288961 ). The only safe thing to do here is return.
On 2017/05/03 21:33:46, Charlie Reis wrote:
> Good find that this used to happen in
> RenderFrameHostImpl::JavaScriptDialogClosed (due to https://crrev.com/61829). 
> And yes, it doesn't happen anymore because dialogs aren't allowed during
> beforeunload.

2017 me is super grateful to 2013 me for the hint.

Powered by Google App Engine
This is Rietveld 408576698