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

Issue 1048463004: PlzNavigate: track pending commits (Closed)

Created:
5 years, 8 months ago by clamy
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: track pending commits This CL makes it so that RenderFrameHostManager::GetFramehostForNavigation will no longer rely on cross_navigation_pending_ when browser-side navigation is enabled. Instead, we will track if commits are pending either in the current or the speculative RFH. BUG=439423 Committed: https://crrev.com/5bf36119961044dd6c01b16310862bfceb080058 Cr-Commit-Position: refs/heads/master@{#325639}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Removed parameter from GetFrameHostForNavigation #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : WIP setting two booleans + test fixes #

Patch Set 5 : Now tracking pending commits #

Total comments: 18

Patch Set 6 : Rebase #

Patch Set 7 : Moved state tracking to RFH #

Total comments: 16

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Patch Set 10 : Removed DCHECK + rebase #

Total comments: 20

Patch Set 11 : Rebase #

Patch Set 12 : Addressed comments + rebase on top of 1088933003 #

Total comments: 12

Patch Set 13 : Rebase #

Patch Set 14 : Removed mentions of main_test_rfh #

Total comments: 6

Patch Set 15 : Removed other occurences of main_test_rfh #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -159 lines) Patch
M content/browser/devtools/devtools_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 36 chunks +61 lines, -36 lines 1 comment Download
M content/browser/frame_host/navigator_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 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 2 chunks +1 line, -5 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 11 12 26 chunks +39 lines, -35 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 68 chunks +95 lines, -68 lines 0 comments Download
M content/test/test_render_frame_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -1 line 0 comments Download
M content/test/test_web_contents.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -4 lines 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (5 generated)
clamy
@nasko, carlosk: PTAL This makes it so that we only set cross_navigation_pending to true when ...
5 years, 8 months ago (2015-03-30 12:50:57 UTC) #2
nasko
https://codereview.chromium.org/1048463004/diff/1/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1048463004/diff/1/content/browser/frame_host/render_frame_host_manager.cc#newcode832 content/browser/frame_host/render_frame_host_manager.cc:832: if (for_commit) Can't this be replaced by an earlier ...
5 years, 8 months ago (2015-03-30 22:35:22 UTC) #3
clamy
Thanks! Adding creis@ since nasko@ is ooo. @creis: PTAL. https://codereview.chromium.org/1048463004/diff/1/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1048463004/diff/1/content/browser/frame_host/render_frame_host_manager.cc#newcode832 content/browser/frame_host/render_frame_host_manager.cc:832: ...
5 years, 8 months ago (2015-03-31 12:58:18 UTC) #5
carlosk
Thanks. https://chromiumcodereview.appspot.com/1048463004/diff/1/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://chromiumcodereview.appspot.com/1048463004/diff/1/content/browser/frame_host/render_frame_host_manager.cc#newcode832 content/browser/frame_host/render_frame_host_manager.cc:832: if (for_commit) On 2015/03/30 22:35:22, nasko (out until ...
5 years, 8 months ago (2015-03-31 13:01:32 UTC) #6
nasko
I dug a bit more into the usage of cross_navigation_pending_ and it is never used ...
5 years, 8 months ago (2015-03-31 14:56:12 UTC) #7
clamy
The problem there is that all unit tests that check cross_navigation_pending_ will start failing when ...
5 years, 8 months ago (2015-03-31 15:02:16 UTC) #8
Charlie Reis
On 2015/03/31 15:02:16, clamy wrote: > The problem there is that all unit tests that ...
5 years, 8 months ago (2015-03-31 23:13:55 UTC) #9
clamy
Thanks! We now no longer set/unset cross_navigation_pending_ in PlzNavigate. Instead I introduced two booleans that ...
5 years, 8 months ago (2015-04-02 12:52:36 UTC) #10
Charlie Reis
Thanks for moving away from cross_navigation_pending_. I'm looking forward to removing that. Some questions about ...
5 years, 8 months ago (2015-04-03 06:02:59 UTC) #11
clamy
Thanks! I moved the state tracking to RenderFrameHost, which should make it clearer. https://codereview.chromium.org/1048463004/diff/80001/content/browser/frame_host/navigation_controller_impl_unittest.cc File ...
5 years, 8 months ago (2015-04-07 16:29:21 UTC) #12
Charlie Reis
Thanks. I've only looked at RFHI so far, but a few questions there. https://codereview.chromium.org/1048463004/diff/80001/content/browser/frame_host/render_frame_host_manager.cc File ...
5 years, 8 months ago (2015-04-07 17:04:48 UTC) #13
clamy
Thanks! https://codereview.chromium.org/1048463004/diff/120001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1048463004/diff/120001/content/browser/frame_host/render_frame_host_impl.cc#newcode848 content/browser/frame_host/render_frame_host_impl.cc:848: DCHECK(pending_commit_); On 2015/04/07 17:04:47, Charlie Reis wrote: > ...
5 years, 8 months ago (2015-04-08 11:56:23 UTC) #14
carlosk
The change does look better with the responsibility being moved to the RFH. But I ...
5 years, 8 months ago (2015-04-08 16:35:20 UTC) #15
Charlie Reis
https://codereview.chromium.org/1048463004/diff/120001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1048463004/diff/120001/content/browser/frame_host/render_frame_host_impl.cc#newcode848 content/browser/frame_host/render_frame_host_impl.cc:848: DCHECK(pending_commit_); On 2015/04/08 11:56:23, clamy wrote: > On 2015/04/07 ...
5 years, 8 months ago (2015-04-08 16:45:27 UTC) #16
clamy
https://codereview.chromium.org/1048463004/diff/120001/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): https://codereview.chromium.org/1048463004/diff/120001/content/browser/frame_host/navigation_controller_impl_unittest.cc#newcode752 content/browser/frame_host/navigation_controller_impl_unittest.cc:752: main_test_rfh()->SendNavigate(0, kExistingURL1); On 2015/04/08 16:35:20, carlosk wrote: > For ...
5 years, 8 months ago (2015-04-10 14:40:15 UTC) #17
Charlie Reis
Thanks. One nit and one more question about failing to commit. https://codereview.chromium.org/1048463004/diff/120001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): ...
5 years, 8 months ago (2015-04-10 23:04:01 UTC) #18
clamy
Thanks! I removed the DCHECK, and did some rebasing as well. https://codereview.chromium.org/1048463004/diff/120001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): ...
5 years, 8 months ago (2015-04-14 14:14:16 UTC) #19
nasko
https://codereview.chromium.org/1048463004/diff/180001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1048463004/diff/180001/content/browser/frame_host/render_frame_host_manager.cc#newcode458 content/browser/frame_host/render_frame_host_manager.cc:458: // Note: In PlzNavigate |cross_navigation_pending_| being false means there ...
5 years, 8 months ago (2015-04-15 21:12:46 UTC) #20
Charlie Reis
Nasko had a few good catches, but otherwise LGTM with nits. https://codereview.chromium.org/1048463004/diff/180001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): ...
5 years, 8 months ago (2015-04-15 21:54:17 UTC) #21
clamy
Thanks! https://codereview.chromium.org/1048463004/diff/180001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/1048463004/diff/180001/content/browser/frame_host/render_frame_host_impl.h#newcode671 content/browser/frame_host/render_frame_host_impl.h:671: // Used to track whether a commit is ...
5 years, 8 months ago (2015-04-16 13:18:36 UTC) #22
nasko
The only thing outstanding is the inconsistent use of main_test_rfh() vs orig_rfh in web_contents_impl_unittest. Let's ...
5 years, 8 months ago (2015-04-16 16:43:43 UTC) #23
Charlie Reis
Thanks for the fixes! Still LGTM, pending Nasko's approval.
5 years, 8 months ago (2015-04-16 17:04:54 UTC) #24
clamy
Thanks! https://codereview.chromium.org/1048463004/diff/220001/content/browser/web_contents/web_contents_impl_unittest.cc File content/browser/web_contents/web_contents_impl_unittest.cc (right): https://codereview.chromium.org/1048463004/diff/220001/content/browser/web_contents/web_contents_impl_unittest.cc#newcode827 content/browser/web_contents/web_contents_impl_unittest.cc:827: main_test_rfh()->PrepareForCommit(); On 2015/04/16 16:43:42, nasko wrote: > orig_rfh? ...
5 years, 8 months ago (2015-04-17 13:15:38 UTC) #25
nasko
There are just a few more instances of main_test_rfh usage. LGTM once changed. https://codereview.chromium.org/1048463004/diff/260001/content/browser/web_contents/web_contents_impl_unittest.cc File ...
5 years, 8 months ago (2015-04-17 14:06:51 UTC) #26
clamy
Thanks! https://codereview.chromium.org/1048463004/diff/260001/content/browser/web_contents/web_contents_impl_unittest.cc File content/browser/web_contents/web_contents_impl_unittest.cc (right): https://codereview.chromium.org/1048463004/diff/260001/content/browser/web_contents/web_contents_impl_unittest.cc#newcode1289 content/browser/web_contents/web_contents_impl_unittest.cc:1289: main_test_rfh()->PrepareForCommit(); On 2015/04/17 14:06:51, nasko wrote: > orig_rfh ...
5 years, 8 months ago (2015-04-17 14:12:49 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1048463004/280001
5 years, 8 months ago (2015-04-17 14:13:12 UTC) #30
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 8 months ago (2015-04-17 15:23:43 UTC) #31
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/5bf36119961044dd6c01b16310862bfceb080058 Cr-Commit-Position: refs/heads/master@{#325639}
5 years, 8 months ago (2015-04-17 15:25:22 UTC) #32
Avi (use Gerrit)
5 years, 8 months ago (2015-04-17 18:23:13 UTC) #34
Message was sent while issue was closed.
https://codereview.chromium.org/1048463004/diff/280001/content/browser/frame_...
File content/browser/frame_host/navigation_controller_impl_unittest.cc (right):

https://codereview.chromium.org/1048463004/diff/280001/content/browser/frame_...
content/browser/frame_host/navigation_controller_impl_unittest.cc:1475:
main_test_rfh()->NavigateAndCommitRendererInitiated(0, url2);
Is this right? We initiated the GoBack on line 1455 above, and that's
browser-initiated. In fact, all history navigations run through the browser.

Powered by Google App Engine
This is Rietveld 408576698