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

Issue 2182273003: FrameHostMsg_CreateChildFrame can legitimately fail during renderer shutdown. (Closed)

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

Description

FrameHostMsg_CreateChildFrame can legitimately fail during renderer shutdown. https://crbug.com/631600 shows a legitimate scenario where the browser destroys WebContents (and consequently RenderProcessHost), but the renderer process keeps running for a while and calls RenderFrameImpl::createChildFrame. In this case we expect to fail sending FrameHostMsg_CreateChildFrame IPC and therefore to exit early via: if (child_routing_id == MSG_ROUTING_NONE) return nullptr; BUG=631600 Committed: https://crrev.com/c4df88364164c2b0bf8eda3d16a50da716f308e0 Cr-Commit-Position: refs/heads/master@{#408136}

Patch Set 1 #

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

Messages

Total messages: 10 (4 generated)
Łukasz Anforowicz
Charlie, can you take a look please?
4 years, 4 months ago (2016-07-26 21:28:26 UTC) #2
Charlie Reis
[CC dcheng] Yes, looks like this sync IPC can fail any time the RenderFrameMessageFilter is ...
4 years, 4 months ago (2016-07-26 23:38:00 UTC) #3
dcheng
LGTM (though I think it's slightly surprising that this is the order of events)
4 years, 4 months ago (2016-07-27 01:08:58 UTC) #5
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/2182273003/1
4 years, 4 months ago (2016-07-27 15:04:26 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-27 15:41:09 UTC) #8
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 15:42:29 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c4df88364164c2b0bf8eda3d16a50da716f308e0
Cr-Commit-Position: refs/heads/master@{#408136}

Powered by Google App Engine
This is Rietveld 408576698