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

Issue 1048963002: Fix incorrect creation of duplicate navigation entries for repeated page load failures. (Closed)

Created:
5 years, 8 months ago by Avi (use Gerrit)
Modified:
5 years, 8 months ago
Reviewers:
Charlie Reis, davidben
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, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@committype3
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix incorrect creation of duplicate navigation entries for repeated page load failures. BUG=471292 TEST=the new test, NavigationControllerBrowserTest.ErrorPageReplacement Committed: https://crrev.com/45a7253bdc2863a5e8193e9cfb20a28e2dfb816b Cr-Commit-Position: refs/heads/master@{#324116}

Patch Set 1 #

Total comments: 4

Patch Set 2 : more test #

Total comments: 2

Patch Set 3 : works #

Total comments: 17

Patch Set 4 : rev #

Patch Set 5 : oopsie #

Patch Set 6 : bettar #

Total comments: 2

Patch Set 7 : with more comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -25 lines) Patch
M content/browser/frame_host/navigation_controller_impl.h View 1 2 3 2 chunks +18 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 6 3 chunks +24 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 2 chunks +79 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 2 chunks +2 lines, -11 lines 0 comments Download

Messages

Total messages: 30 (4 generated)
Avi (use Gerrit)
This requires the previous CLs that route commit_type into didFail. To explain why I chose ...
5 years, 8 months ago (2015-03-30 20:33:29 UTC) #2
Avi (use Gerrit)
Also, David, if you can take a look. The previous series of three commits: https://codereview.chromium.org/1033233003 ...
5 years, 8 months ago (2015-03-30 20:35:48 UTC) #4
Charlie Reis
Looks good, pending the other CLs landing and one more test. https://codereview.chromium.org/1048963002/diff/1/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): ...
5 years, 8 months ago (2015-03-30 21:36:54 UTC) #5
Avi (use Gerrit)
https://codereview.chromium.org/1048963002/diff/1/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1048963002/diff/1/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode407 content/browser/frame_host/navigation_controller_impl_browsertest.cc:407: // page, the EXISTING_PAGE navigation type, and no addition ...
5 years, 8 months ago (2015-03-31 16:08:50 UTC) #6
Charlie Reis
Thanks! LGTM.
5 years, 8 months ago (2015-03-31 16:47:23 UTC) #7
davidben
[already chatted about this out-of-band but adding here for posterity] https://codereview.chromium.org/1048963002/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1048963002/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode434 ...
5 years, 8 months ago (2015-03-31 17:26:08 UTC) #8
Charlie Reis
https://codereview.chromium.org/1048963002/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc File content/browser/frame_host/navigation_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1048963002/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc#newcode434 content/browser/frame_host/navigation_controller_impl_browsertest.cc:434: } On 2015/03/31 17:26:08, David Benjamin wrote: > There's ...
5 years, 8 months ago (2015-03-31 17:29:48 UTC) #9
Avi (use Gerrit)
On 2015/03/31 17:29:48, Charlie Reis wrote: > https://codereview.chromium.org/1048963002/diff/20001/content/browser/frame_host/navigation_controller_impl_browsertest.cc > File content/browser/frame_host/navigation_controller_impl_browsertest.cc > (right): > > ...
5 years, 8 months ago (2015-03-31 17:33:14 UTC) #10
davidben
On 2015/03/31 17:33:14, Avi wrote: > On 2015/03/31 17:29:48, Charlie Reis wrote: > > > ...
5 years, 8 months ago (2015-03-31 17:35:41 UTC) #11
Avi (use Gerrit)
Charlie, David, please take another look.
5 years, 8 months ago (2015-04-01 22:17:47 UTC) #12
davidben
https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigator_impl.cc#newcode230 content/browser/frame_host/navigator_impl.cc:230: controller_->DiscardPendingEntry(true); How does this work in the OOPIF world? ...
5 years, 8 months ago (2015-04-03 19:44:11 UTC) #13
Avi (use Gerrit)
https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigator_impl.cc#newcode230 content/browser/frame_host/navigator_impl.cc:230: controller_->DiscardPendingEntry(true); On 2015/04/03 19:44:11, David Benjamin wrote: > How ...
5 years, 8 months ago (2015-04-03 19:51:47 UTC) #14
davidben
https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigator_impl.cc#newcode230 content/browser/frame_host/navigator_impl.cc:230: controller_->DiscardPendingEntry(true); On 2015/04/03 19:51:47, Avi (OOO Friday 3 Apr) ...
5 years, 8 months ago (2015-04-03 20:23:44 UTC) #15
Avi (use Gerrit)
https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigator_impl.cc#newcode230 content/browser/frame_host/navigator_impl.cc:230: controller_->DiscardPendingEntry(true); On 2015/04/03 20:23:44, David Benjamin wrote: > Actually, ...
5 years, 8 months ago (2015-04-03 20:30:36 UTC) #16
davidben
lgtm (Of course, you'll want to have Charlie look at the new version too.)
5 years, 8 months ago (2015-04-03 20:37:14 UTC) #17
Charlie Reis
https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigator_impl.cc#newcode230 content/browser/frame_host/navigator_impl.cc:230: controller_->DiscardPendingEntry(true); On 2015/04/03 19:51:47, Avi (OOO Friday 3 Apr) ...
5 years, 8 months ago (2015-04-03 20:38:21 UTC) #18
Avi (use Gerrit)
On 2015/04/03 20:38:21, Charlie Reis wrote: > So far, Avi's patch is dealing with #2, ...
5 years, 8 months ago (2015-04-03 20:45:15 UTC) #19
Charlie Reis
On 2015/04/03 20:45:15, Avi (OOO Friday 3 Apr) wrote: > On 2015/04/03 20:38:21, Charlie Reis ...
5 years, 8 months ago (2015-04-03 20:59:46 UTC) #20
Avi (use Gerrit)
https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigation_controller_impl.cc#newcode801 content/browser/frame_host/navigation_controller_impl.cc:801: if (params.url_is_unreachable) { On 2015/04/03 20:59:46, Charlie Reis wrote: ...
5 years, 8 months ago (2015-04-06 19:38:17 UTC) #21
Charlie Reis
Thanks-- that's looking better. We should still fix NavigationControllerImpl::RendererDidNavigate, and hopefully I have a test ...
5 years, 8 months ago (2015-04-06 20:48:10 UTC) #22
Avi (use Gerrit)
https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1048963002/diff/40001/content/browser/frame_host/navigation_controller_impl.cc#newcode801 content/browser/frame_host/navigation_controller_impl.cc:801: if (params.url_is_unreachable) { On 2015/04/06 20:48:10, Charlie Reis wrote: ...
5 years, 8 months ago (2015-04-06 21:30:14 UTC) #23
Charlie Reis
Thanks, LGTM. https://codereview.chromium.org/1048963002/diff/90007/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1048963002/diff/90007/content/browser/frame_host/navigation_controller_impl.cc#newcode802 content/browser/frame_host/navigation_controller_impl.cc:802: // doing a cross-site redirect navigation, we ...
5 years, 8 months ago (2015-04-07 18:00:47 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1048963002/110001
5 years, 8 months ago (2015-04-07 18:09:47 UTC) #27
Avi (use Gerrit)
https://codereview.chromium.org/1048963002/diff/90007/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1048963002/diff/90007/content/browser/frame_host/navigation_controller_impl.cc#newcode802 content/browser/frame_host/navigation_controller_impl.cc:802: // doing a cross-site redirect navigation, we will do ...
5 years, 8 months ago (2015-04-07 18:22:59 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:110001)
5 years, 8 months ago (2015-04-07 21:02:09 UTC) #29
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 21:03:06 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/45a7253bdc2863a5e8193e9cfb20a28e2dfb816b
Cr-Commit-Position: refs/heads/master@{#324116}

Powered by Google App Engine
This is Rietveld 408576698