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

Issue 2196333002: PlzNavigate: Clear provisional history item on redirects. (Closed)

Created:
4 years, 4 months ago by arthursonzogni
Modified:
4 years, 4 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, tyoshino+watch_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, loading-reviews_chromium.org, dglazkov+blink, darin-cc_chromium.org, gavinp+loader_chromium.org, blink-reviews, kinuko+watch, Nate Chapin, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@timing_api
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Clear provisional history item on redirects. When a redirect happens during a back/forward navigation. We mustn't reuse the provisional history item. This patch is close to this one : https://codereview.chromium.org/2159093002, With PlzNavigate enabled, redirections happen on the browser-side. The provisional history item must still be discarded in this case too. The two following tests pass and have been reactivated. TEST=NavigationControllerBrowserTest.FrameNavigationEntry_BackWithRedirect, NavigationControllerBrowserTest.FrameNavigationEntry_SameOriginBackWithRedirect in --enabled-browser-side-navigation mode R=creis@chromium.org, japhet@chromium.org BUG=585194 Committed: https://crrev.com/932235bf7cf90cb2a5fe001dde45e5904786155d Cr-Commit-Position: refs/heads/master@{#413730}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Rebasing... #

Patch Set 3 : Addressed comments #

Total comments: 8

Patch Set 4 : Addressed comments (2) #

Total comments: 6

Patch Set 5 : Refactoring. #

Patch Set 6 : Change tests filter #

Total comments: 2

Patch Set 7 : Use protected visibility. #

Patch Set 8 : Rebasing + merge conflicts #

Patch Set 9 : Rebasing again, Trybot issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -15 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 4 5 6 7 2 chunks +14 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebDataSourceImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebDataSourceImpl.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebDataSource.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 39 (18 generated)
arthursonzogni
Please take a look at this bugfix. During a back/forward navigation, the FrameLoader was reusing ...
4 years, 4 months ago (2016-08-01 16:43:22 UTC) #2
nasko
I don't think I'm the best reviewer for this CL. japhet@ is much more knowledgeable ...
4 years, 4 months ago (2016-08-03 16:31:26 UTC) #3
arthursonzogni
Hi creis@ and japhet@. Please take a look at this bugfix. Thanks! Creis@ normally, this ...
4 years, 4 months ago (2016-08-04 14:04:53 UTC) #5
Charlie Reis
On 2016/08/04 14:04:53, arthur.sonzogni wrote: > Hi creis@ and japhet@. > Please take a look ...
4 years, 4 months ago (2016-08-04 20:10:39 UTC) #6
Charlie Reis
Thanks for getting this to work in PlzNavigate. I think we just want to confirm ...
4 years, 4 months ago (2016-08-09 05:07:30 UTC) #7
arthursonzogni
Thanks for your review creis@. I answered some of your questions and renamed the method ...
4 years, 4 months ago (2016-08-10 10:02:24 UTC) #10
Charlie Reis
Thanks. LGTM with nits, but please have Nate review as well. https://codereview.chromium.org/2196333002/diff/1/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): ...
4 years, 4 months ago (2016-08-11 21:05:01 UTC) #11
arthursonzogni
Thanks! I agree with all your comments. I will wait for Nate's review. https://codereview.chromium.org/2196333002/diff/40001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File ...
4 years, 4 months ago (2016-08-16 09:26:21 UTC) #12
Nate Chapin
Sorry for the delay, I've been sick the last week. Couple of code health nitpicks... ...
4 years, 4 months ago (2016-08-17 23:45:52 UTC) #13
arthursonzogni
Thank you Nate! I did the small refactoring you suggest. It is better now. Note: ...
4 years, 4 months ago (2016-08-18 09:21:38 UTC) #14
Nate Chapin
LGTM, thanks, one last question: https://codereview.chromium.org/2196333002/diff/100001/third_party/WebKit/Source/core/loader/DocumentLoader.h File third_party/WebKit/Source/core/loader/DocumentLoader.h (right): https://codereview.chromium.org/2196333002/diff/100001/third_party/WebKit/Source/core/loader/DocumentLoader.h#newcode158 third_party/WebKit/Source/core/loader/DocumentLoader.h:158: void didRedirect(const KURL& oldURL, ...
4 years, 4 months ago (2016-08-18 16:49:57 UTC) #15
arthursonzogni
Thank you Nate. I think I can commit now. https://codereview.chromium.org/2196333002/diff/100001/third_party/WebKit/Source/core/loader/DocumentLoader.h File third_party/WebKit/Source/core/loader/DocumentLoader.h (right): https://codereview.chromium.org/2196333002/diff/100001/third_party/WebKit/Source/core/loader/DocumentLoader.h#newcode158 third_party/WebKit/Source/core/loader/DocumentLoader.h:158: ...
4 years, 4 months ago (2016-08-19 08:20:30 UTC) #16
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/2196333002/120001
4 years, 4 months ago (2016-08-19 08:21:11 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/254225) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago (2016-08-19 08:23:39 UTC) #21
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/2196333002/140001
4 years, 4 months ago (2016-08-22 14:20:23 UTC) #24
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/284111)
4 years, 4 months ago (2016-08-22 17:24:11 UTC) #26
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/2196333002/160001
4 years, 4 months ago (2016-08-23 08:38:31 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/278897)
4 years, 4 months ago (2016-08-23 10:44:34 UTC) #32
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/2196333002/180001
4 years, 4 months ago (2016-08-23 12:17:57 UTC) #35
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 4 months ago (2016-08-23 14:13:27 UTC) #37
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 14:15:50 UTC) #39
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/932235bf7cf90cb2a5fe001dde45e5904786155d
Cr-Commit-Position: refs/heads/master@{#413730}

Powered by Google App Engine
This is Rietveld 408576698