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

Issue 2386983002: PlzNavigate: cancel any navigations if DispatchBeforeUnload is called (other than for starting a ... (Closed)

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

Description

PlzNavigate: cancel any navigations if DispatchBeforeUnload is called (other than for starting a navigation obviously). Otherwise, if a render view is closed while a navigation is in progress, we will ignore the beforeunload ack that eventually comes from the renderer and the render view will never close. This fixes ChromeRenderProcessHostTest.DevToolsOnSelfInOwnProcess ChromeRenderProcessHostTest.DevToolsOnSelfInOwnProcessPPT with PlzNavigate. BUG=504347 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/03e86d027151639ad79c2074199f4e75beab0674 Cr-Commit-Position: refs/heads/master@{#423378}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : guard against NavigatorImpl::RequestNavigation resetting the navigation, and add reduced test case #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M content/browser/browser_side_navigation_browsertest.cc View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 1 chunk +6 lines, -0 lines 1 comment Download

Messages

Total messages: 28 (21 generated)
jam
4 years, 2 months ago (2016-10-03 23:24:53 UTC) #17
nasko
LGTM https://codereview.chromium.org/2386983002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2386983002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode2338 content/browser/frame_host/render_frame_host_impl.cc:2338: frame_tree_node_->ResetNavigationRequest(false); If the beforeunload handler stops the tab ...
4 years, 2 months ago (2016-10-05 21:25:17 UTC) #20
nasko
On 2016/10/05 21:25:17, nasko (slow) wrote: > LGTM > > https://codereview.chromium.org/2386983002/diff/40001/content/browser/frame_host/render_frame_host_impl.cc > File content/browser/frame_host/render_frame_host_impl.cc (right): ...
4 years, 2 months ago (2016-10-05 21:27:07 UTC) #21
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/2386983002/40001
4 years, 2 months ago (2016-10-05 23:23:43 UTC) #23
nasko
On 2016/10/05 21:27:07, nasko (slow) wrote: > On 2016/10/05 21:25:17, nasko (slow) wrote: > > ...
4 years, 2 months ago (2016-10-05 23:25:07 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-06 01:28:32 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 01:30:16 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/03e86d027151639ad79c2074199f4e75beab0674
Cr-Commit-Position: refs/heads/master@{#423378}

Powered by Google App Engine
This is Rietveld 408576698