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

Issue 1163303003: PlzNavigate: Create the speculative renderer earlier. (Closed)

Created:
5 years, 6 months ago by carlosk
Modified:
5 years, 6 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: Create the speculative renderer earlier. Create the speculative renderer earlier on in the navigation flow, before the response from the beforeunload event is received, when browser-side navigation is enabled. Existing tests were adapted to accept the earlier creation of the renderer. For more details: https://docs.google.com/a/chromium.org/document/d/1Oxnu7C396FB33nZLFWzR4AOvYvhqEzsfBih3yyBKwo0 BUG=376094, 475027 Committed: https://crrev.com/c49005eba8fe85e1972d4722a521c2fc5b5e1c63 Cr-Commit-Position: refs/heads/master@{#334584}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : Addressed clamy's comments; moved RFHM::BeginNavigation call into FTN::SetNavigationRequest. #

Total comments: 16

Patch Set 3 : Rebase #

Patch Set 4 : Minor changes to code and comments #

Total comments: 10

Patch Set 5 : Minor changes. #

Total comments: 2

Patch Set 6 : #

Total comments: 18

Patch Set 7 : Rebase. #

Patch Set 8 : Minor changes from nako@'s review comments. #

Total comments: 4

Patch Set 9 : Method renames and comment updates. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -90 lines) Patch
M content/browser/frame_host/frame_tree_node.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +24 lines, -35 lines 0 comments Download
M content/browser/frame_host/navigator_impl_unittest.cc View 1 2 3 4 5 6 7 12 chunks +24 lines, -26 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 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 2 chunks +11 lines, -10 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 2 3 4 1 chunk +15 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
carlosk
clamy@, fdegans@: PTAL. This fixes: SecurityExploitBrowserTest.AttemptDuplicateRenderViewHost SecurityExploitBrowserTest.AttemptDuplicateRenderWidgetHost https://codereview.chromium.org/1163303003/diff/40001/content/browser/security_exploit_browsertest.cc File content/browser/security_exploit_browsertest.cc (right): https://codereview.chromium.org/1163303003/diff/40001/content/browser/security_exploit_browsertest.cc#newcode86 content/browser/security_exploit_browsertest.cc:86: pending_rvh = ...
5 years, 6 months ago (2015-06-08 18:32:43 UTC) #4
clamy
Thanks! I think this patch can be made simpler by having the call to the ...
5 years, 6 months ago (2015-06-09 10:02:01 UTC) #5
carlosk
On 2015/06/09 10:02:01, clamy wrote: > Thanks! I think this patch can be made simpler ...
5 years, 6 months ago (2015-06-09 15:33:51 UTC) #6
clamy
Thanks! It looks better now. A few comments. https://codereview.chromium.org/1163303003/diff/60001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1163303003/diff/60001/content/browser/frame_host/frame_tree_node.cc#newcode223 content/browser/frame_host/frame_tree_node.cc:223: render_manager()->BeginNavigation(*navigation_request_); ...
5 years, 6 months ago (2015-06-09 16:01:30 UTC) #7
clamy
One additional comment I just thought about. https://codereview.chromium.org/1163303003/diff/60001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1163303003/diff/60001/content/browser/frame_host/render_frame_host_impl.cc#newcode1687 content/browser/frame_host/render_frame_host_impl.cc:1687: if (base::CommandLine::ForCurrentProcess()->HasSwitch( ...
5 years, 6 months ago (2015-06-09 16:07:44 UTC) #8
carlosk
Thanks. https://chromiumcodereview.appspot.com/1163303003/diff/60001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://chromiumcodereview.appspot.com/1163303003/diff/60001/content/browser/frame_host/frame_tree_node.cc#newcode223 content/browser/frame_host/frame_tree_node.cc:223: render_manager()->BeginNavigation(*navigation_request_); On 2015/06/09 16:01:29, clamy wrote: > Please ...
5 years, 6 months ago (2015-06-10 11:53:09 UTC) #9
clamy
Thanks! A few more comments. https://codereview.chromium.org/1163303003/diff/100001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/1163303003/diff/100001/content/browser/frame_host/navigator_impl.cc#newcode821 content/browser/frame_host/navigator_impl.cc:821: // NavigationRequest::BeginNavigation should get ...
5 years, 6 months ago (2015-06-10 12:30:28 UTC) #10
carlosk
Thanks again. https://chromiumcodereview.appspot.com/1163303003/diff/100001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://chromiumcodereview.appspot.com/1163303003/diff/100001/content/browser/frame_host/navigator_impl.cc#newcode821 content/browser/frame_host/navigator_impl.cc:821: // NavigationRequest::BeginNavigation should get called. If the ...
5 years, 6 months ago (2015-06-10 13:15:06 UTC) #11
clamy
Thanks! Lgtm with one nit. https://codereview.chromium.org/1163303003/diff/120001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/1163303003/diff/120001/content/browser/frame_host/navigator_impl.cc#newcode809 content/browser/frame_host/navigator_impl.cc:809: // This value must ...
5 years, 6 months ago (2015-06-10 13:22:03 UTC) #12
carlosk
Thanks. nasko@: PTAL. https://chromiumcodereview.appspot.com/1163303003/diff/120001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://chromiumcodereview.appspot.com/1163303003/diff/120001/content/browser/frame_host/navigator_impl.cc#newcode809 content/browser/frame_host/navigator_impl.cc:809: // This value must be set ...
5 years, 6 months ago (2015-06-10 14:22:53 UTC) #14
nasko
Looks mostly good, just a few minor things. https://codereview.chromium.org/1163303003/diff/140001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/1163303003/diff/140001/content/browser/frame_host/navigator_impl.cc#newcode643 content/browser/frame_host/navigator_impl.cc:643: frame_tree_node->SetNavigationRequest(navigation_request.Pass()); ...
5 years, 6 months ago (2015-06-12 17:22:22 UTC) #15
carlosk
Thanks. https://chromiumcodereview.appspot.com/1163303003/diff/140001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://chromiumcodereview.appspot.com/1163303003/diff/140001/content/browser/frame_host/navigator_impl.cc#newcode643 content/browser/frame_host/navigator_impl.cc:643: frame_tree_node->SetNavigationRequest(navigation_request.Pass()); On 2015/06/12 17:22:22, nasko (slow) wrote: > ...
5 years, 6 months ago (2015-06-15 19:11:55 UTC) #16
nasko
LGTM with a couple of nits. https://chromiumcodereview.appspot.com/1163303003/diff/140001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://chromiumcodereview.appspot.com/1163303003/diff/140001/content/browser/frame_host/render_frame_host_manager.cc#newcode704 content/browser/frame_host/render_frame_host_manager.cc:704: void RenderFrameHostManager::DidSetNavigationRequest( On ...
5 years, 6 months ago (2015-06-15 22:12:45 UTC) #17
carlosk
Thanks again. See below for why I finally didn't move that call. https://chromiumcodereview.appspot.com/1163303003/diff/140001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc ...
5 years, 6 months ago (2015-06-16 10:14:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163303003/190011
5 years, 6 months ago (2015-06-16 10:15:38 UTC) #21
commit-bot: I haz the power
Committed patchset #9 (id:190011)
5 years, 6 months ago (2015-06-16 11:25:16 UTC) #22
commit-bot: I haz the power
5 years, 6 months ago (2015-06-16 11:26:14 UTC) #23
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c49005eba8fe85e1972d4722a521c2fc5b5e1c63
Cr-Commit-Position: refs/heads/master@{#334584}

Powered by Google App Engine
This is Rietveld 408576698