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

Issue 1136593003: Delete entry in WebFrame->RenderFrameProxy map at WebFrame::close time. (Closed)

Created:
5 years, 7 months ago by nasko
Modified:
5 years, 7 months ago
Reviewers:
ncarter (slow)
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delete entry in WebFrame->RenderFrameProxy map at WebFrame::close time. The entry in the WebFrame->RenderFrameProxy map is removed in the RenderFrameProxy destructor, but the destructor runs after the frame has been destroyed. Remove the entry at the time of WebFrame::close(). BUG=357747 Committed: https://crrev.com/ef4c112d2d588c58e44b7566b93bd6b26ddaaedd Cr-Commit-Position: refs/heads/master@{#328897}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a CHECK #

Patch Set 3 : Fix destruction from RenderFrameImpl. #

Total comments: 4

Patch Set 4 : Add a comment for the frameDetached call. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -7 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 2 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
nasko
Hey Nick, This is a small, independent CL to ensure we invalidate map entries as ...
5 years, 7 months ago (2015-05-07 21:25:30 UTC) #2
ncarter (slow)
lgtm with paranoid suggestion https://codereview.chromium.org/1136593003/diff/1/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/1136593003/diff/1/content/renderer/render_frame_proxy.cc#newcode133 content/renderer/render_frame_proxy.cc:133: Is it worth adding a ...
5 years, 7 months ago (2015-05-07 21:35:52 UTC) #3
nasko
https://codereview.chromium.org/1136593003/diff/1/content/renderer/render_frame_proxy.cc File content/renderer/render_frame_proxy.cc (right): https://codereview.chromium.org/1136593003/diff/1/content/renderer/render_frame_proxy.cc#newcode133 content/renderer/render_frame_proxy.cc:133: On 2015/05/07 21:35:52, ncarter wrote: > Is it worth ...
5 years, 7 months ago (2015-05-07 21:40:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136593003/20001
5 years, 7 months ago (2015-05-07 21:44:42 UTC) #7
nasko
Nick, the new CHECK did fire, so the latest patchset fixes the issue.
5 years, 7 months ago (2015-05-07 22:47:13 UTC) #8
ncarter (slow)
lgtm with comment suggestions https://codereview.chromium.org/1136593003/diff/40001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1136593003/diff/40001/content/renderer/render_frame_impl.cc#newcode735 content/renderer/render_frame_impl.cc:735: if (!is_subframe_ && render_frame_proxy_) I ...
5 years, 7 months ago (2015-05-07 23:33:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136593003/60001
5 years, 7 months ago (2015-05-07 23:44:57 UTC) #12
nasko
Thanks! https://codereview.chromium.org/1136593003/diff/40001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1136593003/diff/40001/content/renderer/render_frame_impl.cc#newcode735 content/renderer/render_frame_impl.cc:735: if (!is_subframe_ && render_frame_proxy_) On 2015/05/07 23:33:36, ncarter ...
5 years, 7 months ago (2015-05-07 23:46:06 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-08 01:17:51 UTC) #14
commit-bot: I haz the power
5 years, 7 months ago (2015-05-08 01:18:34 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ef4c112d2d588c58e44b7566b93bd6b26ddaaedd
Cr-Commit-Position: refs/heads/master@{#328897}

Powered by Google App Engine
This is Rietveld 408576698