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

Issue 2335753002: Avoid use-after-free if frame is deleted when stopping loading. (Closed)

Created:
4 years, 3 months ago by Charlie Reis
Modified:
4 years, 3 months ago
Reviewers:
ncarter (slow)
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, darin-cc_chromium.org
Target Ref:
refs/pending/branch-heads/2785
Project:
chromium
Visibility:
Public.

Description

Avoid use-after-free if frame is deleted when stopping loading. WebFrame::stopLoading can run onload event handlers, which have the ability to delete the frame. This means we must be careful when calling it from within RenderFrameImpl, or else the remainder of the function may try to access a deleted object. BUG=638166, 639689 TEST=See bug 638166 comment 11 NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2307463003 Cr-Commit-Position: refs/heads/master@{#416082} (cherry picked from commit ba53b47ffb07652d639e68db92743dc9aea21e5c)

Patch Set 1 #

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

Messages

Total messages: 8 (4 generated)
Charlie Reis
Nick, can you give me a sanity check that I got the merge correct? I'm ...
4 years, 3 months ago (2016-09-12 18:33:35 UTC) #2
ncarter (slow)
This seems safe, though aesthetically it's squarely in the middle of crazytown. lgtm
4 years, 3 months ago (2016-09-12 18:37:11 UTC) #3
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/2335753002/1
4 years, 3 months ago (2016-09-12 18:57:45 UTC) #6
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 19:04:27 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1)

Powered by Google App Engine
This is Rietveld 408576698