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

Issue 2901833002: Create NavigationHandle after beforeunload with PlzNavigate. (Closed)

Created:
3 years, 7 months ago by clamy
Modified:
3 years, 7 months ago
Reviewers:
jam, nasko
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Create NavigationHandle after beforeunload with PlzNavigate. This CL ensures that browser-initiated navigations see their navigation start time updated to the proceed time of the BeforeUnload event. This is the correct time to use as per the Navigation Timing API (see https://www.w3.org/TR/navigation-timing/#dom-performancetiming-navigationstart). It also ensures that the NavigationHandle will always be created after the BeforeUnload event has run when PlzNavigate is enabled (this is already the case without PlzNavigate). The NavigationHandle will then always have the correct navigation start time when Plznavigate is enabled. BUG=705559 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation COLLABORATOR=nasko@chromium.org Review-Url: https://codereview.chromium.org/2901833002 Cr-Commit-Position: refs/heads/master@{#474498} Committed: https://chromium.googlesource.com/chromium/src/+/080e7966ea2c9603ae48cc8c0e2f227fb5dac1e0

Patch Set 1 #

Patch Set 2 : Removed test no longer applicable #

Patch Set 3 : DevTools test now listens to load stop #

Patch Set 4 : Fixed OverscrollNavigationOverlayTest #

Patch Set 5 : Fixed BrowserInstantControllerTest #

Patch Set 6 : Ensure beforeunload start time is set before simulating ACK #

Patch Set 7 : Fixed two of BeforeUnload browser tests #

Patch Set 8 : Rewrote BeforeUnload test #

Total comments: 8

Patch Set 9 : Addressed comments #

Patch Set 10 : small fix from jam #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -127 lines) Patch
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -29 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller_unittest.cc View 1 2 3 4 1 chunk +0 lines, -12 lines 0 comments Download
M content/browser/devtools/protocol/devtools_protocol_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +26 lines, -3 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -26 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 5 chunks +10 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 7 chunks +27 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigator.h View 2 chunks +8 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 8 chunks +21 lines, -20 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -5 lines 0 comments Download
M content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc View 1 2 3 1 chunk +3 lines, -14 lines 0 comments Download

Messages

Total messages: 39 (29 generated)
clamy
@nasko, sky: PTAL
3 years, 7 months ago (2017-05-24 11:56:36 UTC) #16
nasko
content/ LGTM with nits. https://codereview.chromium.org/2901833002/diff/140001/content/browser/devtools/protocol/devtools_protocol_browsertest.cc File content/browser/devtools/protocol/devtools_protocol_browsertest.cc (right): https://codereview.chromium.org/2901833002/diff/140001/content/browser/devtools/protocol/devtools_protocol_browsertest.cc#newcode1224 content/browser/devtools/protocol/devtools_protocol_browsertest.cc:1224: void WaitForLoadsToFinish(int num_to_wait_for) { nit: ...
3 years, 7 months ago (2017-05-24 14:20:03 UTC) #19
jam
chrome/ lgtm
3 years, 7 months ago (2017-05-24 14:45:01 UTC) #21
clamy
Thanks! https://codereview.chromium.org/2901833002/diff/140001/content/browser/devtools/protocol/devtools_protocol_browsertest.cc File content/browser/devtools/protocol/devtools_protocol_browsertest.cc (right): https://codereview.chromium.org/2901833002/diff/140001/content/browser/devtools/protocol/devtools_protocol_browsertest.cc#newcode1224 content/browser/devtools/protocol/devtools_protocol_browsertest.cc:1224: void WaitForLoadsToFinish(int num_to_wait_for) { On 2017/05/24 14:20:03, nasko ...
3 years, 7 months ago (2017-05-24 18:34:38 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2901833002/160001
3 years, 7 months ago (2017-05-24 18:35:58 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/463661)
3 years, 7 months ago (2017-05-24 20:00:25 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2901833002/160001
3 years, 7 months ago (2017-05-24 21:04:00 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/463824)
3 years, 7 months ago (2017-05-24 22:15:29 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2901833002/180001
3 years, 7 months ago (2017-05-24 22:38:03 UTC) #36
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 00:44:35 UTC) #39
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/080e7966ea2c9603ae48cc8c0e2f...

Powered by Google App Engine
This is Rietveld 408576698