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

Issue 2877203002: Don't allow RenderFrames to be created during WebContents destruction. (Closed)

Created:
3 years, 7 months ago by Charlie Reis
Modified:
3 years, 7 months ago
Reviewers:
ncarter (slow)
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 allow RenderFrames to be created during WebContents destruction. Some crashes indicate that a WebContentsObserver might be recreating a RenderFrame after we've called SetRenderFrameCreated(false) in the WebContentsImpl destructor (e.g., c7fd413350000000). This isn't safe, so try to catch any observers that do this. BUG=717650 TEST=Catch the crash earlier. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2877203002 Cr-Commit-Position: refs/heads/master@{#471493} Committed: https://chromium.googlesource.com/chromium/src/+/00627245b117b8e2d83a5272fc26222765882323

Patch Set 1 #

Patch Set 2 : Initial patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M content/browser/frame_host/render_frame_host_delegate.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
Charlie Reis
Just tested manually that a rogue WebContentsObserver that tries to navigate during WebContentsDestroyed will trigger ...
3 years, 7 months ago (2017-05-12 22:13:14 UTC) #5
ncarter (slow)
I like this. Hopefully it will find bugs.
3 years, 7 months ago (2017-05-12 22:18:32 UTC) #6
ncarter (slow)
lgtm On Fri, May 12, 2017 at 3:18 PM, <nick@chromium.org> wrote: > I like this. ...
3 years, 7 months ago (2017-05-12 22:24:04 UTC) #7
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/2877203002/20001
3 years, 7 months ago (2017-05-12 22:25:18 UTC) #10
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 7 months ago (2017-05-12 22:25:20 UTC) #12
ncarter (slow)
git cl lgtm --rebase-all --force --hard --with-branch-heads -- */*
3 years, 7 months ago (2017-05-12 22:26:26 UTC) #13
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/2877203002/20001
3 years, 7 months ago (2017-05-12 22:29:28 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 23:43:52 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/00627245b117b8e2d83a5272fc26...

Powered by Google App Engine
This is Rietveld 408576698