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

Issue 1777903003: Ensure the NavigationHandle's nav entry ID is updated during transfers. (Closed)

Created:
4 years, 9 months ago by Charlie Reis
Modified:
4 years, 9 months ago
Reviewers:
nasko, Charlie Harrison
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure the NavigationHandle's nav entry ID is updated during transfers. The pending_nav_entry_id is now correct after transfers, and the handle is always present at commit (thanks to fixes to unit tests). This is part of a fix for matching the pending entry with the handle during navigations with replacement. BUG=593153 TEST=See bug for repro steps. CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/b4dc9337cacb2152671ea1bcfbcbd236d6fbff20 Cr-Commit-Position: refs/heads/master@{#381081}

Patch Set 1 #

Patch Set 2 : git cl format #

Patch Set 3 : Fix failing tests #

Patch Set 4 : Fix else branch #

Total comments: 17

Patch Set 5 : Review feedback #

Total comments: 2

Patch Set 6 : Fix nit #

Patch Set 7 : Add logging #

Patch Set 8 : Move fix to another CL (now cleanup only) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -150 lines) Patch
M content/browser/cross_site_transfer_browsertest.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 44 chunks +169 lines, -134 lines 1 comment Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 7 2 chunks +9 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 4 chunks +13 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 1 chunk +8 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
Charlie Reis
nasko@: Can I ask you to review this? The main fix is in RendererDidNavigate, but ...
4 years, 9 months ago (2016-03-11 00:22:09 UTC) #4
Charlie Harrison
Changes look good! Thanks! https://codereview.chromium.org/1777903003/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1777903003/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode859 content/browser/frame_host/navigation_controller_impl.cc:859: // like cross-process client redirects ...
4 years, 9 months ago (2016-03-11 15:15:14 UTC) #5
nasko
Mostly nits and one question on tests. Otherwise it looks good. https://codereview.chromium.org/1777903003/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): ...
4 years, 9 months ago (2016-03-11 17:10:06 UTC) #6
Charlie Reis
Thanks! PTAL. https://codereview.chromium.org/1777903003/diff/60001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1777903003/diff/60001/content/browser/frame_host/navigation_controller_impl.cc#newcode859 content/browser/frame_host/navigation_controller_impl.cc:859: // like cross-process client redirects or cross-process ...
4 years, 9 months ago (2016-03-11 20:12:49 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1777903003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1777903003/80001
4 years, 9 months ago (2016-03-11 20:13:19 UTC) #9
nasko
LGTM with a nit. https://codereview.chromium.org/1777903003/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): https://codereview.chromium.org/1777903003/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc#newcode300 content/browser/frame_host/navigation_controller_impl_unittest.cc:300: class LoadCommittedDetailsObserver : public WebContentsObserver ...
4 years, 9 months ago (2016-03-11 20:21:56 UTC) #10
Charlie Harrison
On 2016/03/11 at 20:21:56, nasko wrote: > LGTM with a nit. > > https://codereview.chromium.org/1777903003/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc > ...
4 years, 9 months ago (2016-03-11 20:23:47 UTC) #11
Charlie Reis
Fixed. Sadly, there's a test failure on Android involving back/forward after prerendering. I'll have to ...
4 years, 9 months ago (2016-03-11 21:11:37 UTC) #12
Charlie Reis
Since the Android prerendering thing seems subtle, I decided to move the actual fix and ...
4 years, 9 months ago (2016-03-14 18:48:50 UTC) #16
Charlie Harrison
still lgtm
4 years, 9 months ago (2016-03-14 18:55:33 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1777903003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1777903003/180001
4 years, 9 months ago (2016-03-14 21:24:21 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-14 21:29:24 UTC) #21
nasko
Still LGTM.
4 years, 9 months ago (2016-03-14 21:30:37 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1777903003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1777903003/180001
4 years, 9 months ago (2016-03-14 21:34:23 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:180001)
4 years, 9 months ago (2016-03-14 21:39:29 UTC) #26
commit-bot: I haz the power
4 years, 9 months ago (2016-03-14 21:40:17 UTC) #28
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b4dc9337cacb2152671ea1bcfbcbd236d6fbff20
Cr-Commit-Position: refs/heads/master@{#381081}

Powered by Google App Engine
This is Rietveld 408576698