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

Issue 892123002: PlzNavigate: change behavior when navigating with a non-live RFH (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: change behavior when navigating with a non-live RFH. To fix a few tests the current behavior when navigating from a non-live RFH was changed so that the new, speculative one is immediately set as active matching what is done in RenderFrameHostManager::UpdateStateForNavigate. This replaced the behavior of simply bringing the current RFH back to life. With this change 6 tests are fixed for PlzNavigate: RenderFrameHostManagerTest.WebUI WebContentsImplTest.NTPViewSource RenderFrameHostManagerTest.NewTabPageProcesses WebContentsImplTest.CrossSiteBoundariesAfterCrash WebContentsImplTest.CrossSiteComparesAgainstCurrentPage WebContentsImplTest.ShowInterstitialFromBrowserNewNavigationProceed BUG=439423 Committed: https://crrev.com/085854f7049b11ce205a88427bbfc6abdbe021e7 Cr-Commit-Position: refs/heads/master@{#314543}

Patch Set 1 #

Patch Set 2 : Small improvements to related test. #

Patch Set 3 : Fixed test not checking for pending/speculative WebUI. #

Total comments: 6

Patch Set 4 : Changed getter name. #

Patch Set 5 : Updated comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -12 lines) Patch
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 2 chunks +10 lines, -11 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 17 (3 generated)
carlosk
nasko@, clamy@: PTAL. fdegans@: FYI. Simple but significant change (IMO) as it replaces a behavior ...
5 years, 10 months ago (2015-02-02 10:17:02 UTC) #2
clamy
Thanks! I was a bit concerned at first with the security implications of the renderer ...
5 years, 10 months ago (2015-02-02 10:43:41 UTC) #3
clamy
Could you also rename the issue: PlzNavigate: change behavior when navigating with a non-live RFH ...
5 years, 10 months ago (2015-02-02 10:46:44 UTC) #4
carlosk
On 2015/02/02 10:46:44, clamy wrote: > Could you also rename the issue: > PlzNavigate: change ...
5 years, 10 months ago (2015-02-02 10:58:19 UTC) #5
nasko
LGTM
5 years, 10 months ago (2015-02-02 18:32:31 UTC) #6
carlosk
A new PS is up. Sorry about the late change but I just wanted to ...
5 years, 10 months ago (2015-02-02 19:21:20 UTC) #7
carlosk
Yet another CL not with the WebUI verification reinstated (I read too quickly and replaced ...
5 years, 10 months ago (2015-02-02 19:48:54 UTC) #8
nasko
https://codereview.chromium.org/892123002/diff/40001/content/browser/frame_host/render_frame_host_manager.h File content/browser/frame_host/render_frame_host_manager.h (right): https://codereview.chromium.org/892123002/diff/40001/content/browser/frame_host/render_frame_host_manager.h#newcode240 content/browser/frame_host/render_frame_host_manager.h:240: WebUIImpl* speculative_web_ui() const { nit: Since this is used ...
5 years, 10 months ago (2015-02-02 21:20:40 UTC) #9
carlosk
Thanks. https://codereview.chromium.org/892123002/diff/40001/content/browser/frame_host/render_frame_host_manager.h File content/browser/frame_host/render_frame_host_manager.h (right): https://codereview.chromium.org/892123002/diff/40001/content/browser/frame_host/render_frame_host_manager.h#newcode240 content/browser/frame_host/render_frame_host_manager.h:240: WebUIImpl* speculative_web_ui() const { On 2015/02/02 21:20:40, nasko ...
5 years, 10 months ago (2015-02-03 10:06:27 UTC) #10
clamy
https://chromiumcodereview.appspot.com/892123002/diff/40001/content/browser/frame_host/render_frame_host_manager.h File content/browser/frame_host/render_frame_host_manager.h (right): https://chromiumcodereview.appspot.com/892123002/diff/40001/content/browser/frame_host/render_frame_host_manager.h#newcode241 content/browser/frame_host/render_frame_host_manager.h:241: return should_reuse_web_ui_ ? web_ui_.get() : speculative_web_ui_.get(); On 2015/02/03 10:06:26, ...
5 years, 10 months ago (2015-02-03 10:59:11 UTC) #11
carlosk
Thanks! https://chromiumcodereview.appspot.com/892123002/diff/40001/content/browser/frame_host/render_frame_host_manager.h File content/browser/frame_host/render_frame_host_manager.h (right): https://chromiumcodereview.appspot.com/892123002/diff/40001/content/browser/frame_host/render_frame_host_manager.h#newcode241 content/browser/frame_host/render_frame_host_manager.h:241: return should_reuse_web_ui_ ? web_ui_.get() : speculative_web_ui_.get(); On 2015/02/03 ...
5 years, 10 months ago (2015-02-04 11:03:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/892123002/100001
5 years, 10 months ago (2015-02-04 11:03:49 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 10 months ago (2015-02-04 12:08:17 UTC) #16
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 12:09:14 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/085854f7049b11ce205a88427bbfc6abdbe021e7
Cr-Commit-Position: refs/heads/master@{#314543}

Powered by Google App Engine
This is Rietveld 408576698