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

Issue 2563863002: Clear navigation_handle early in RenderFrameHostImpl destructor. (Closed)

Created:
4 years ago by dgozman
Modified:
4 years ago
Reviewers:
samuong, clamy, pfeldman
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, devtools-reviews_chromium.org, pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear navigation_handle early in RenderFrameHostImpl destructor. This is to avoid inconsistent (half-destructed) RenderFrameHostImpl instance in WebContentsObserver::DidFinishNavigation, acessible through NavigationHandle instance. This happens in DevToolsManagerTest.ReattachOnCancelPendingNavigation, added DCHECK to RenderFrameDevToolsAgentHost. See crrev.com/2544893002 and crrev.com/2387353004 for more context. BUG=none CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/5f8c1ef3e2a4f1f2f9aac1d6d3ad1a270538ae24 Cr-Commit-Position: refs/heads/master@{#437658}

Patch Set 1 #

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

Messages

Total messages: 18 (11 generated)
dgozman
Could you please take a look? This is a follow up to our discussion here: ...
4 years ago (2016-12-09 01:05:14 UTC) #4
samuong
combining this with my cl (see https://codereview.chromium.org/2387353004/) fixes the error i was seeing in DevToolsManagerTest.ReattachOnCancelPendingNavigation ...
4 years ago (2016-12-09 04:13:45 UTC) #8
dgozman
On 2016/12/09 04:13:45, samuong wrote: > combining this with my cl (see https://codereview.chromium.org/2387353004/) > fixes ...
4 years ago (2016-12-09 05:53:23 UTC) #10
clamy
Thanks! Lgtm.
4 years ago (2016-12-09 14:16:20 UTC) #11
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/2563863002/1
4 years ago (2016-12-09 21:03:01 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-09 21:16:21 UTC) #16
commit-bot: I haz the power
4 years ago (2016-12-12 14:41:03 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5f8c1ef3e2a4f1f2f9aac1d6d3ad1a270538ae24
Cr-Commit-Position: refs/heads/master@{#437658}

Powered by Google App Engine
This is Rietveld 408576698