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

Issue 912833002: PlzNavigate: update Navigator tests post-removal of the RequestNavigation IPC (Closed)

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

Description

PlzNavigate: update Navigator tests post-removal of the RequestNavigation IPC Fixes and updates to NavigatorTestWithBrowserSideNavigation. This is a pre-step for working on the navigation cancellation logic. Several small things going on in this CL: * Renamed methods, added and updated comments to make things clearer * Added a couple new tests for renderer initiated navigations and beforeUnload canceling the navigation. * Replaced calls to TestRenderFrameHost::SendBeginNavigationWithURL with TestRenderFrameHost::SendBeforeUnloadACK now that they represent different things (beforeUnload reply vs renderer-initiated navigation request) * Added more checks in general but especially for the NavigationRequest state, its browser_initiated flag BUG=376014 Committed: https://crrev.com/e24d11781779d29d3e827d8762d5126173786136 Cr-Commit-Position: refs/heads/master@{#316200}

Patch Set 1 : #

Total comments: 32

Patch Set 2 : Changes from CR comments. #

Total comments: 9

Patch Set 3 : Minor changes from CR comments. #

Total comments: 12

Patch Set 4 : No more necromancer renderer-initiated navigation. #

Patch Set 5 : Method renames and comment updates. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -86 lines) Patch
M content/browser/frame_host/navigator_impl_unittest.cc View 1 2 3 4 19 chunks +164 lines, -86 lines 2 comments Download

Messages

Total messages: 22 (6 generated)
carlosk
clamy@: PTAL. fdegans@: FYI. Details in the description.
5 years, 10 months ago (2015-02-10 15:05:08 UTC) #3
clamy
Thanks! A few comments, mostly nits. Also, could you rename the issue to something along ...
5 years, 10 months ago (2015-02-10 15:41:22 UTC) #5
carlosk
Thanks! https://codereview.chromium.org/912833002/diff/20001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (left): https://codereview.chromium.org/912833002/diff/20001/content/browser/frame_host/navigator_impl_unittest.cc#oldcode118 content/browser/frame_host/navigator_impl_unittest.cc:118: On 2015/02/10 15:41:22, clamy wrote: > nit: do ...
5 years, 10 months ago (2015-02-10 18:27:10 UTC) #6
clamy
Thanks! A few more comments and it should be good. https://codereview.chromium.org/912833002/diff/40001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (right): https://codereview.chromium.org/912833002/diff/40001/content/browser/frame_host/navigator_impl_unittest.cc#newcode103 ...
5 years, 10 months ago (2015-02-11 10:54:28 UTC) #7
carlosk
Thanks! https://codereview.chromium.org/912833002/diff/40001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (right): https://codereview.chromium.org/912833002/diff/40001/content/browser/frame_host/navigator_impl_unittest.cc#newcode103 content/browser/frame_host/navigator_impl_unittest.cc:103: // PlzNavigate: Test a complete renderer-initiated navigation starting ...
5 years, 10 months ago (2015-02-11 15:36:21 UTC) #8
clamy
Thanks! LGTM https://codereview.chromium.org/912833002/diff/40001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (right): https://codereview.chromium.org/912833002/diff/40001/content/browser/frame_host/navigator_impl_unittest.cc#newcode112 content/browser/frame_host/navigator_impl_unittest.cc:112: int rfh_routing_id = main_test_rfh()->GetRoutingID(); On 2015/02/11 15:36:21, ...
5 years, 10 months ago (2015-02-11 16:11:48 UTC) #9
clamy
@nasko: PTAL
5 years, 10 months ago (2015-02-11 16:12:17 UTC) #11
carlosk
On 2015/02/11 16:12:17, clamy wrote: > @nasko: PTAL I wanted to raise a related concern. ...
5 years, 10 months ago (2015-02-11 16:57:48 UTC) #12
clamy
@carlosk: reading the other CL you sent me, I realized that there is a problem ...
5 years, 10 months ago (2015-02-11 17:03:46 UTC) #13
nasko
Overall looks good, just a few comments and nits. https://codereview.chromium.org/912833002/diff/60001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (right): https://codereview.chromium.org/912833002/diff/60001/content/browser/frame_host/navigator_impl_unittest.cc#newcode104 content/browser/frame_host/navigator_impl_unittest.cc:104: ...
5 years, 10 months ago (2015-02-11 19:22:22 UTC) #14
carlosk
> https://codereview.chromium.org/912833002/diff/40001/content/browser/frame_host/navigator_impl_unittest.cc#newcode112 > content/browser/frame_host/navigator_impl_unittest.cc:112: int rfh_routing_id = > main_test_rfh()->GetRoutingID(); > On 2015/02/11 15:36:21, carlosk wrote: ...
5 years, 10 months ago (2015-02-11 19:54:29 UTC) #16
nasko
LGTM https://codereview.chromium.org/912833002/diff/100001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (right): https://codereview.chromium.org/912833002/diff/100001/content/browser/frame_host/navigator_impl_unittest.cc#newcode161 content/browser/frame_host/navigator_impl_unittest.cc:161: contents()->NavigateAndCommit(kUrl1); FYI: this might not be needed after ...
5 years, 10 months ago (2015-02-12 22:44:09 UTC) #17
carlosk
Thanks. https://codereview.chromium.org/912833002/diff/100001/content/browser/frame_host/navigator_impl_unittest.cc File content/browser/frame_host/navigator_impl_unittest.cc (right): https://codereview.chromium.org/912833002/diff/100001/content/browser/frame_host/navigator_impl_unittest.cc#newcode161 content/browser/frame_host/navigator_impl_unittest.cc:161: contents()->NavigateAndCommit(kUrl1); On 2015/02/12 22:44:09, nasko wrote: > FYI: ...
5 years, 10 months ago (2015-02-13 09:46:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/912833002/100001
5 years, 10 months ago (2015-02-13 09:47:32 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 10 months ago (2015-02-13 10:10:10 UTC) #21
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 10:11:05 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e24d11781779d29d3e827d8762d5126173786136
Cr-Commit-Position: refs/heads/master@{#316200}

Powered by Google App Engine
This is Rietveld 408576698