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

Issue 580133002: Update entry page type to include error pages when appropriate. (Closed)

Created:
6 years, 3 months ago by wjmaclean
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, Fady Samuel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Update entry page type to include error pages when appropriate. At present, the NavigationEntry page type always reports PAGE_TYPE_NORMAL for all committed entries, even if an error page is currently showing. There is a need for a mechanism to detect when an error page is showing in order to prevent zooming in that case, so we modify the navigation entry to correctly report error pages. BUG=403268 Committed: https://crrev.com/e6a5d22fadcf548ec89226a464a947538f79ae5a Cr-Commit-Position: refs/heads/master@{#296614}

Patch Set 1 #

Patch Set 2 : Plumb url_is_unreachable; patch for trybots. #

Patch Set 3 : Fix content_browsertests compilation. #

Total comments: 1

Patch Set 4 : Fix components_browsertests compile. #

Patch Set 5 : Compile fix for unit_tests #

Total comments: 8

Patch Set 6 : Set page type, fix tests. #

Total comments: 1

Patch Set 7 : Fix/improve tests. #

Total comments: 7

Patch Set 8 : Revise comment, prevent trying to zoom interstitial pages as well. #

Total comments: 4

Patch Set 9 : Address suggestions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -30 lines) Patch
M chrome/browser/extensions/api/tabs/tabs_test.cc View 1 2 3 4 5 2 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 6 15 chunks +30 lines, -21 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_browsertest.cc View 1 2 3 4 5 6 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
wjmaclean
creis@ - would you be able to give this an initial sanity check? Please note ...
6 years, 3 months ago (2014-09-22 17:11:13 UTC) #2
Charlie Reis
This affects much more code than I was expecting. I don't think we need to ...
6 years, 3 months ago (2014-09-22 21:43:53 UTC) #3
wjmaclean
I think I've addressed your concerns (and now have the tests working). PTAL? https://codereview.chromium.org/580133002/diff/80001/content/browser/frame_host/navigation_controller_impl.cc File ...
6 years, 3 months ago (2014-09-23 18:42:38 UTC) #4
wjmaclean
rockot@chromium.org: Please review changes in tabs_test.cc kenrb@chromium.org: Please review changes in frame_messages.h
6 years, 3 months ago (2014-09-23 18:43:42 UTC) #6
kenrb
ipc lgtm
6 years, 3 months ago (2014-09-23 18:56:36 UTC) #7
wjmaclean
https://codereview.chromium.org/580133002/diff/100001/chrome/browser/ui/zoom/zoom_controller_browsertest.cc File chrome/browser/ui/zoom/zoom_controller_browsertest.cc (right): https://codereview.chromium.org/580133002/diff/100001/chrome/browser/ui/zoom/zoom_controller_browsertest.cc#newcode124 chrome/browser/ui/zoom/zoom_controller_browsertest.cc:124: I should put the page-type check back in place ...
6 years, 3 months ago (2014-09-23 19:08:42 UTC) #8
wjmaclean
agl@chromium.org: Please review changes in ssl_browser_tests.cc
6 years, 3 months ago (2014-09-24 14:31:00 UTC) #10
Ken Rockot(use gerrit already)
c/b/ext lgtm
6 years, 3 months ago (2014-09-24 16:16:53 UTC) #11
Charlie Reis
Great-- this looks better. One quick sanity check about the actual behavior of zoom on ...
6 years, 3 months ago (2014-09-24 16:43:44 UTC) #12
wjmaclean
PTAL? https://codereview.chromium.org/580133002/diff/120001/chrome/browser/extensions/api/tabs/tabs_test.cc File chrome/browser/extensions/api/tabs/tabs_test.cc (right): https://codereview.chromium.org/580133002/diff/120001/chrome/browser/extensions/api/tabs/tabs_test.cc#newcode800 chrome/browser/extensions/api/tabs/tabs_test.cc:800: // In this test we need two URLs ...
6 years, 3 months ago (2014-09-24 17:59:11 UTC) #13
agl
LGTM for ssl_browser_tests.cc.
6 years, 3 months ago (2014-09-24 17:59:59 UTC) #14
Charlie Reis
Great. LGTM with nits. https://codereview.chromium.org/580133002/diff/120001/chrome/browser/ui/zoom/zoom_controller.cc File chrome/browser/ui/zoom/zoom_controller.cc (right): https://codereview.chromium.org/580133002/diff/120001/chrome/browser/ui/zoom/zoom_controller.cc#newcode86 chrome/browser/ui/zoom/zoom_controller.cc:86: // a crashed tab or ...
6 years, 3 months ago (2014-09-24 18:08:52 UTC) #15
wjmaclean
https://codereview.chromium.org/580133002/diff/140001/chrome/browser/ui/zoom/zoom_controller.cc File chrome/browser/ui/zoom/zoom_controller.cc (right): https://codereview.chromium.org/580133002/diff/140001/chrome/browser/ui/zoom/zoom_controller.cc#newcode82 chrome/browser/ui/zoom/zoom_controller.cc:82: bool is_error_or_interstitial_page = On 2014/09/24 18:08:52, Charlie Reis wrote: ...
6 years, 3 months ago (2014-09-24 18:18:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/580133002/160001
6 years, 3 months ago (2014-09-24 18:19:58 UTC) #18
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-25 00:21:44 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/580133002/160001
6 years, 3 months ago (2014-09-25 01:40:24 UTC) #22
commit-bot: I haz the power
Committed patchset #9 (id:160001) as 6671da5cf399ecb5ad45faf35dc36185b6439eb1
6 years, 3 months ago (2014-09-25 01:41:50 UTC) #23
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/e6a5d22fadcf548ec89226a464a947538f79ae5a Cr-Commit-Position: refs/heads/master@{#296614}
6 years, 3 months ago (2014-09-25 01:42:23 UTC) #24
xiyuan
6 years, 2 months ago (2014-09-26 19:52:40 UTC) #26
Message was sent while issue was closed.
This is causing crash on launching a kiosk app.
Filed http://crbug.com/418214.

Powered by Google App Engine
This is Rietveld 408576698