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 917043004: Mark error pages as such on Ctrl-Shift-T reload. (Closed)

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

Description

Mark error pages as such on Ctrl-Shift-T reload. When reloading a page whose url leads to an error page, a different pathway is taken in NavigationControllerImpl. We must be careful to check for unreachable urls in NavigationControllerImpl::RendererDidNavigateToExistingPage() in this case, and mark them as error pages. BUG=458036 Committed: https://crrev.com/7431bb2983db683dcc4556e1918556254c3d5589 Cr-Commit-Position: refs/heads/master@{#317046}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add test. #

Total comments: 4

Patch Set 3 : Address comments, add unit tests. #

Total comments: 5

Patch Set 4 : Reset PAGE_TYPE_NORMAL when not an unreachable URL. #

Patch Set 5 : Fix comment. #

Patch Set 6 : Remove stale comment. #

Total comments: 6

Patch Set 7 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -6 lines) Patch
M chrome/browser/ui/zoom/zoom_controller_browsertest.cc View 1 2 3 4 5 6 2 chunks +52 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 6 5 chunks +11 lines, -6 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 2 chunks +58 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
wjmaclean
Tiny CL, currently running this on the bots to make sure it doesn't break stuff. ...
5 years, 10 months ago (2015-02-12 17:16:33 UTC) #2
Charlie Reis
https://codereview.chromium.org/917043004/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/917043004/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode1128 content/browser/frame_host/navigation_controller_impl.cc:1128: entry->set_page_type(PAGE_TYPE_ERROR); Seems reasonable to me. What about the other ...
5 years, 10 months ago (2015-02-12 21:57:47 UTC) #3
wjmaclean
On 2015/02/12 21:57:47, Charlie Reis wrote: > https://codereview.chromium.org/917043004/diff/1/content/browser/frame_host/navigation_controller_impl.cc > File content/browser/frame_host/navigation_controller_impl.cc (right): > > https://codereview.chromium.org/917043004/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode1128 ...
5 years, 10 months ago (2015-02-13 17:23:40 UTC) #4
wjmaclean
creis@ - PTAL, I've added a test. I'm open to adding the same machinery for ...
5 years, 10 months ago (2015-02-13 19:55:04 UTC) #5
Charlie Reis
On 2015/02/13 19:55:04, wjmaclean wrote: > creis@ - PTAL, I've added a test. > > ...
5 years, 10 months ago (2015-02-13 21:38:37 UTC) #6
wjmaclean
creis@ - PTAL? I've added the code to set the page type in the additional ...
5 years, 10 months ago (2015-02-17 20:39:14 UTC) #7
Charlie Reis
https://codereview.chromium.org/917043004/diff/40001/chrome/browser/ui/zoom/zoom_controller_browsertest.cc File chrome/browser/ui/zoom/zoom_controller_browsertest.cc (right): https://codereview.chromium.org/917043004/diff/40001/chrome/browser/ui/zoom/zoom_controller_browsertest.cc#newcode175 chrome/browser/ui/zoom/zoom_controller_browsertest.cc:175: // It assumes that tests can't reach the network, ...
5 years, 10 months ago (2015-02-18 01:01:53 UTC) #8
wjmaclean
PTAL - I've addressed the comment issue, and modified so that we reset to PAGE_TYPE_NORMAL ...
5 years, 10 months ago (2015-02-18 19:10:11 UTC) #9
Charlie Reis
Thanks! LGTM with one change and a few nits. https://codereview.chromium.org/917043004/diff/40001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/917043004/diff/40001/content/browser/frame_host/navigation_controller_impl.cc#newcode1212 content/browser/frame_host/navigation_controller_impl.cc:1212: ...
5 years, 10 months ago (2015-02-18 23:53:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/917043004/120001
5 years, 10 months ago (2015-02-19 13:23:15 UTC) #13
wjmaclean
https://codereview.chromium.org/917043004/diff/100001/chrome/browser/ui/zoom/zoom_controller_browsertest.cc File chrome/browser/ui/zoom/zoom_controller_browsertest.cc (right): https://codereview.chromium.org/917043004/diff/100001/chrome/browser/ui/zoom/zoom_controller_browsertest.cc#newcode174 chrome/browser/ui/zoom/zoom_controller_browsertest.cc:174: // This url is meant to cause a network ...
5 years, 10 months ago (2015-02-19 13:24:38 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-19 14:53:50 UTC) #15
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 14:54:28 UTC) #16
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7431bb2983db683dcc4556e1918556254c3d5589
Cr-Commit-Position: refs/heads/master@{#317046}

Powered by Google App Engine
This is Rietveld 408576698