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

Issue 1608283002: PlzNavigate: Use WebNavigationPolicyHandledByClient (Closed)

Created:
4 years, 11 months ago by clamy
Modified:
4 years, 10 months ago
Reviewers:
Ilya Sherman, carlosk, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@change-did-start-loading-logic
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Use WebNavigationPolicyHandledByClient When PlzNavigate is enabled, this CL has RenderFrameImpl::decidePolicyForNavigation return WebNavigationPolicyHandledByClient when the navigation is sent ot the browser. Before it would return WebNavigationPolicyIgnore, which would result in an incorrect tracking of load state in the renderer. BUG=576265 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/2567242af04760d30f47a96e08bb0314a4c0b6b7 Cr-Commit-Position: refs/heads/master@{#376761}

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : Rebase #

Patch Set 4 : Addressed comments #

Total comments: 2

Patch Set 5 : Rebase + addressed comments #

Total comments: 2

Patch Set 6 : Return after bad message #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -8 lines) Patch
M content/browser/bad_message.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 3 chunks +16 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (11 generated)
clamy
PTAL: this is the followup on the is_loading patch to enable the right navigation policy ...
4 years, 10 months ago (2016-02-02 17:05:04 UTC) #4
carlosk
https://codereview.chromium.org/1608283002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1608283002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode1707 content/browser/frame_host/render_frame_host_impl.cc:1707: return; Instead of ignoring shouldn't we stop it from ...
4 years, 10 months ago (2016-02-03 12:41:56 UTC) #5
nasko
https://codereview.chromium.org/1608283002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1608283002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode1048 content/browser/frame_host/render_frame_host_impl.cc:1048: if (!is_loading()) { Why not put this in the ...
4 years, 10 months ago (2016-02-03 22:28:14 UTC) #6
clamy
Thanks! https://codereview.chromium.org/1608283002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1608283002/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode1048 content/browser/frame_host/render_frame_host_impl.cc:1048: if (!is_loading()) { On 2016/02/03 22:28:14, nasko wrote: ...
4 years, 10 months ago (2016-02-10 16:39:35 UTC) #7
nasko
LGTM with one comment. https://codereview.chromium.org/1608283002/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/1608283002/diff/60001/content/browser/frame_host/render_frame_host_impl.cc#newcode1713 content/browser/frame_host/render_frame_host_impl.cc:1713: DCHECK(!IsBrowserSideNavigationEnabled() || !to_different_document); If the ...
4 years, 10 months ago (2016-02-10 23:02:19 UTC) #8
carlosk
LGTM.
4 years, 10 months ago (2016-02-11 09:48:46 UTC) #9
clamy
Thanks! @isherman: PTAL at the changes in histograms https://codereview.chromium.org/1608283002/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/1608283002/diff/60001/content/browser/frame_host/render_frame_host_impl.cc#newcode1713 content/browser/frame_host/render_frame_host_impl.cc:1713: DCHECK(!IsBrowserSideNavigationEnabled() ...
4 years, 10 months ago (2016-02-11 15:36:40 UTC) #11
nasko
https://codereview.chromium.org/1608283002/diff/80001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1608283002/diff/80001/content/browser/frame_host/render_frame_host_impl.cc#newcode1715 content/browser/frame_host/render_frame_host_impl.cc:1715: bad_message::RFH_UNEXPECTED_LOAD_START); Do we want to proceed further in this ...
4 years, 10 months ago (2016-02-11 15:47:30 UTC) #12
Ilya Sherman
histograms.xml lgtm
4 years, 10 months ago (2016-02-11 23:52:12 UTC) #13
clamy
Thanks! https://codereview.chromium.org/1608283002/diff/80001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1608283002/diff/80001/content/browser/frame_host/render_frame_host_impl.cc#newcode1715 content/browser/frame_host/render_frame_host_impl.cc:1715: bad_message::RFH_UNEXPECTED_LOAD_START); On 2016/02/11 15:47:30, nasko wrote: > Do ...
4 years, 10 months ago (2016-02-12 12:33:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1608283002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1608283002/100001
4 years, 10 months ago (2016-02-12 18:58:45 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/166250)
4 years, 10 months ago (2016-02-12 20:28:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1608283002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1608283002/120001
4 years, 10 months ago (2016-02-22 16:56:24 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-22 18:27:51 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-22 18:29:14 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2567242af04760d30f47a96e08bb0314a4c0b6b7
Cr-Commit-Position: refs/heads/master@{#376761}

Powered by Google App Engine
This is Rietveld 408576698