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

Issue 789643005: PlzNavigate: make content unit tests work with browser side navigation (Closed)

Created:
5 years, 11 months ago by clamy
Modified:
5 years, 11 months ago
Reviewers:
carlosk, nasko
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@cancel-navigations
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: make content unit tests work with browser side navigation This CL fixes several WebContentsImplTests and RenderFrameHostManagerTests so that they work with PlzNavigate enabled by making use of the helper functions introduced in https://chromiumcodereview.appspot.com/761013003/. BUG=439423 Committed: https://crrev.com/afbf7f097f96b0de047768d70381a5494fab26ff Cr-Commit-Position: refs/heads/master@{#312435}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 15

Patch Set 6 : Addressed Nasko's comments #

Patch Set 7 : Now addressing failures due to speculative RFH #

Total comments: 11

Patch Set 8 : Rebase #

Patch Set 9 : Resetting cross_navigation_pending_ in CommitPending #

Patch Set 10 : Rebase on top of 818853005 #

Patch Set 11 : Added a static method to create NavigationRequests #

Total comments: 7

Patch Set 12 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -111 lines) Patch
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -9 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +3 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 27 chunks +84 lines, -49 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 5 39 chunks +78 lines, -39 lines 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 4 5 1 chunk +12 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (2 generated)
clamy
@carlosk, nasko: PTAL This makes a certain number of WebContentsImpl and RenderFrameHostManager tests work with ...
5 years, 11 months ago (2015-01-13 12:41:59 UTC) #2
carlosk
On 2015/01/13 12:41:59, clamy wrote: > @carlosk, nasko: PTAL > > This makes a certain ...
5 years, 11 months ago (2015-01-15 12:32:10 UTC) #3
nasko
Looks good, mostly nits. https://chromiumcodereview.appspot.com/789643005/diff/80001/content/browser/frame_host/navigator_impl.h File content/browser/frame_host/navigator_impl.h (right): https://chromiumcodereview.appspot.com/789643005/diff/80001/content/browser/frame_host/navigator_impl.h#newcode93 content/browser/frame_host/navigator_impl.h:93: // event to execute in ...
5 years, 11 months ago (2015-01-17 00:22:01 UTC) #4
clamy
Thanks! Please find my answers below. However, following the landing of the speculative RFH I ...
5 years, 11 months ago (2015-01-19 17:29:20 UTC) #5
clamy
@nasko, carlosk: PTAL at the latest patchset which also handles a few unit tests failures ...
5 years, 11 months ago (2015-01-20 14:18:48 UTC) #6
carlosk
https://chromiumcodereview.appspot.com/789643005/diff/120001/content/browser/frame_host/render_frame_host_manager_unittest.cc File content/browser/frame_host/render_frame_host_manager_unittest.cc (right): https://chromiumcodereview.appspot.com/789643005/diff/120001/content/browser/frame_host/render_frame_host_manager_unittest.cc#newcode377 content/browser/frame_host/render_frame_host_manager_unittest.cc:377: RenderFrameHostImpl* GetFrameHostForNavigation( Oh, I see what you did here! ...
5 years, 11 months ago (2015-01-20 15:38:02 UTC) #7
nasko
Just a couple of questions. https://chromiumcodereview.appspot.com/789643005/diff/120001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://chromiumcodereview.appspot.com/789643005/diff/120001/content/browser/frame_host/render_frame_host_manager.cc#newcode435 content/browser/frame_host/render_frame_host_manager.cc:435: cross_navigation_pending_ = false; Shouldn't ...
5 years, 11 months ago (2015-01-21 00:41:32 UTC) #8
clamy
Thanks! Please find my answers below. https://chromiumcodereview.appspot.com/789643005/diff/120001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://chromiumcodereview.appspot.com/789643005/diff/120001/content/browser/frame_host/render_frame_host_manager.cc#newcode435 content/browser/frame_host/render_frame_host_manager.cc:435: cross_navigation_pending_ = false; ...
5 years, 11 months ago (2015-01-21 13:22:11 UTC) #9
clamy
@nasko, carlosk: following the landing of https://chromiumcodereview.appspot.com/818853005/, I have uploaded a new patchset.
5 years, 11 months ago (2015-01-21 16:31:03 UTC) #10
carlosk
On 2015/01/21 16:31:03, clamy wrote: > @nasko, carlosk: following the landing of > https://chromiumcodereview.appspot.com/818853005/, I ...
5 years, 11 months ago (2015-01-21 17:12:28 UTC) #11
nasko
LGTM with a few nits https://chromiumcodereview.appspot.com/789643005/diff/200001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://chromiumcodereview.appspot.com/789643005/diff/200001/content/browser/frame_host/navigator_impl.cc#newcode841 content/browser/frame_host/navigator_impl.cc:841: navigation_request_map_.get(frame_tree_node->frame_tree_node_id()); nit: indent two ...
5 years, 11 months ago (2015-01-21 17:21:33 UTC) #12
clamy
Thanks! https://chromiumcodereview.appspot.com/789643005/diff/200001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://chromiumcodereview.appspot.com/789643005/diff/200001/content/browser/frame_host/navigator_impl.cc#newcode841 content/browser/frame_host/navigator_impl.cc:841: navigation_request_map_.get(frame_tree_node->frame_tree_node_id()); On 2015/01/21 17:21:33, nasko wrote: > nit: ...
5 years, 11 months ago (2015-01-21 19:39:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789643005/220001
5 years, 11 months ago (2015-01-21 19:42:24 UTC) #15
nasko
https://chromiumcodereview.appspot.com/789643005/diff/200001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://chromiumcodereview.appspot.com/789643005/diff/200001/content/browser/frame_host/render_frame_host_manager.cc#newcode739 content/browser/frame_host/render_frame_host_manager.cc:739: cross_navigation_pending_ = navigation_rfh != render_frame_host_.get(); On 2015/01/21 19:39:41, clamy ...
5 years, 11 months ago (2015-01-21 19:47:07 UTC) #16
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 11 months ago (2015-01-21 20:38:55 UTC) #17
commit-bot: I haz the power
5 years, 11 months ago (2015-01-21 20:40:31 UTC) #18
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/afbf7f097f96b0de047768d70381a5494fab26ff
Cr-Commit-Position: refs/heads/master@{#312435}

Powered by Google App Engine
This is Rietveld 408576698