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

Issue 1066823004: PlzNavigate: improve tracking of improper subframe swap-out. (Closed)

Created:
5 years, 8 months ago by carlosk
Modified:
5 years, 8 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: improve tracking of improper subframe swap-out. Upon a FrameTreeNode destruction a speculative RenderFrameHost might be swapped-out instead of being destroyed along with the node. This behavior differs from the current navigation implementation and was causing a leak of a RenderFrameProxyHost. This change adds a CHECK to stop the leak the same way RenderFrameHostManager::SwapOutOldFrame does. BUG=439423 Committed: https://crrev.com/508434a400b2284b82c89d01e2f1970eb7a15546 Cr-Commit-Position: refs/heads/master@{#327044}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Revers the FTN change and adds a check for leaked RFPH. #

Patch Set 3 : Rebase #

Patch Set 4 : Changed NI::GetNavigationRequestForNodeForTesting signature. #

Total comments: 12

Patch Set 5 : Rebase and changes from CR coments (sorry about the mixed patch set) #

Total comments: 2

Patch Set 6 : Revert test changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
carlosk
clamy@, fdegans@: PTAL. https://codereview.chromium.org/1066823004/diff/1/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (left): https://codereview.chromium.org/1066823004/diff/1/content/browser/frame_host/frame_tree_node.cc#oldcode77 content/browser/frame_host/frame_tree_node.cc:77: } N::CancelNavigation -> RFHM::CleanUpNavigation -> RFHM::DiscardUnusedFrame, ...
5 years, 8 months ago (2015-04-08 09:01:48 UTC) #2
clamy
Thanks! It seems that this prevent the navigation request for the subframe from being properly ...
5 years, 8 months ago (2015-04-08 11:29:11 UTC) #3
carlosk
Thanks. No new upload yet. I'll talk to Nasko as suggested. https://codereview.chromium.org/1066823004/diff/1/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (left): ...
5 years, 8 months ago (2015-04-08 16:05:39 UTC) #4
carlosk
nasko@: PTAL As discussed yesterday I updated this change to add the CHECK to avoid ...
5 years, 8 months ago (2015-04-14 10:02:24 UTC) #6
carlosk
I updated the signature of NavigatorImpl::GetNavigationRequestForNodeForTesting to directly take the FrameTreeNode ID to allow using ...
5 years, 8 months ago (2015-04-14 12:01:06 UTC) #8
clamy
Thanks! A few comments. https://codereview.chromium.org/1066823004/diff/80001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (right): https://codereview.chromium.org/1066823004/diff/80001/content/browser/frame_host/navigator_impl_unittest.cc#newcode278 content/browser/frame_host/navigator_impl_unittest.cc:278: process()->sink().ClearMessages(); Why this line? https://codereview.chromium.org/1066823004/diff/80001/content/browser/frame_host/navigator_impl_unittest.cc#newcode372 ...
5 years, 8 months ago (2015-04-14 15:32:04 UTC) #9
nasko
https://codereview.chromium.org/1066823004/diff/80001/content/browser/frame_host/navigator_impl.h File content/browser/frame_host/navigator_impl.h (right): https://codereview.chromium.org/1066823004/diff/80001/content/browser/frame_host/navigator_impl.h#newcode90 content/browser/frame_host/navigator_impl.h:90: NavigationRequest* GetNavigationRequestForNodeForTesting( nit: I'd drop the "ForNode" part of ...
5 years, 8 months ago (2015-04-14 16:06:29 UTC) #10
carlosk
Thanks for the latest comments. With clamy@'s change that moved the ownership of NavigationRequest instances ...
5 years, 8 months ago (2015-04-23 16:10:13 UTC) #11
clamy
Thanks! I'm a bit skeptical of the test changes, since we are essentially testing that ...
5 years, 8 months ago (2015-04-27 12:05:20 UTC) #12
carlosk
On 2015/04/27 12:05:20, clamy wrote: > Thanks! I'm a bit skeptical of the test changes, ...
5 years, 8 months ago (2015-04-27 13:14:18 UTC) #13
nasko
LGTM
5 years, 8 months ago (2015-04-27 13:48:03 UTC) #14
clamy
Thanks1 lgtm.
5 years, 8 months ago (2015-04-27 13:48:46 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1066823004/120001
5 years, 8 months ago (2015-04-27 14:42:27 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 8 months ago (2015-04-27 14:46:24 UTC) #18
commit-bot: I haz the power
5 years, 8 months ago (2015-04-27 14:47:15 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/508434a400b2284b82c89d01e2f1970eb7a15546
Cr-Commit-Position: refs/heads/master@{#327044}

Powered by Google App Engine
This is Rietveld 408576698