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

Issue 2190463008: Add an error page for HTTP 404 error pages without bodies. (Closed)

Created:
4 years, 4 months ago by mmenke
Modified:
4 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an error page for HTTP 404 error pages without bodies. We used to show Link Doctor pages in this case, but that broke long ago. https://crbug.com/331745 was recently fixed, which allows us to show error pages in that case once more. Also add a browser test for HTTP 500 errors pages without bodies, which also fixed by that CL. Also fixes a bunch of browser tests that implicitly depend on *not* showing error pages when we get a 404 response without a body. BUG=632781, 331745 Committed: https://crrev.com/d485e9156b72ea4bb4682ffbf73ea0eb248ecb6c Cr-Commit-Position: refs/heads/master@{#409567}

Patch Set 1 #

Patch Set 2 : Add 404 error page #

Patch Set 3 : Remove unused method #

Patch Set 4 : Fix tests? #

Patch Set 5 : Moar... fixes... #

Total comments: 2

Patch Set 6 : Fixes... #

Total comments: 4

Patch Set 7 : Fix comment #

Patch Set 8 : Fix tests #

Patch Set 9 : Fix Android #

Total comments: 9

Patch Set 10 : Switch runtime test to title1.html #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -116 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/RepostFormWarningTest.java View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandlerTest.java View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/errorpage_browsertest.cc View 1 2 3 4 5 6 5 chunks +46 lines, -13 lines 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_browsertest.cc View 1 2 3 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc View 1 2 3 4 5 6 7 3 chunks +26 lines, -8 lines 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc View 1 2 3 4 12 chunks +19 lines, -18 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 12 chunks +20 lines, -12 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
A + chrome/test/data/errorpage/empty404.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/errorpage/empty404.html.mock-http-headers View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/errorpage/empty500.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/errorpage/empty500.html.mock-http-headers View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/runtime/content_script/manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/webnavigation/serverRedirect/test_serverRedirect.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/webnavigation/serverRedirectSingleProcess/test_serverRedirectSingleProcess.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/form.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/error_page/common/localized_error.cc View 1 2 3 1 chunk +44 lines, -50 lines 0 comments Download
M extensions/browser/api/runtime/runtime_apitest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 62 (38 generated)
mmenke
[rdsmith]: Please review chrome/test/data/errorpage/, chrome/browser/errorpage_browsertest.cc, and components/error_page/common/localized_error.cc. The rest of the files are just fixing ...
4 years, 4 months ago (2016-08-01 17:52:11 UTC) #18
edwardjung
LGTM I'd updated the strings as part of the big strings update so these look ...
4 years, 4 months ago (2016-08-01 18:03:43 UTC) #19
mmenke
On 2016/08/01 18:03:43, edwardjung wrote: > LGTM > > I'd updated the strings as part ...
4 years, 4 months ago (2016-08-01 18:27:12 UTC) #24
Randy Smith (Not in Mondays)
On 2016/08/01 17:52:11, mmenke wrote: > [rdsmith]: Please review chrome/test/data/errorpage/, > chrome/browser/errorpage_browsertest.cc, and > components/error_page/common/localized_error.cc. ...
4 years, 4 months ago (2016-08-01 18:50:50 UTC) #25
mmenke
On 2016/08/01 18:50:50, Randy Smith - OOO until 8-1 wrote: > On 2016/08/01 17:52:11, mmenke ...
4 years, 4 months ago (2016-08-01 18:54:22 UTC) #26
mmenke
On 2016/08/01 18:54:22, mmenke wrote: > On 2016/08/01 18:50:50, Randy Smith - OOO until 8-1 ...
4 years, 4 months ago (2016-08-01 18:59:05 UTC) #27
Randy Smith (Not in Mondays)
LGTM with presumption that you'll do the right thing (which may be nothing :-}) with ...
4 years, 4 months ago (2016-08-01 18:59:50 UTC) #30
Randy Smith (Not in Mondays)
On 2016/08/01 18:59:05, mmenke wrote: > On 2016/08/01 18:54:22, mmenke wrote: > > On 2016/08/01 ...
4 years, 4 months ago (2016-08-01 19:01:44 UTC) #31
mmenke
On 2016/08/01 19:01:44, Randy Smith - OOO until 8-1 wrote: > On 2016/08/01 18:59:05, mmenke ...
4 years, 4 months ago (2016-08-01 19:09:26 UTC) #32
mmenke
https://codereview.chromium.org/2190463008/diff/120001/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): https://codereview.chromium.org/2190463008/diff/120001/chrome/browser/errorpage_browsertest.cc#newcode954 chrome/browser/errorpage_browsertest.cc:954: // body. On 2016/08/01 18:59:50, Randy Smith - OOO ...
4 years, 4 months ago (2016-08-01 20:18:29 UTC) #33
edwardjung
On 2016/08/01 18:27:12, mmenke wrote: > On 2016/08/01 18:03:43, edwardjung wrote: > > LGTM > ...
4 years, 4 months ago (2016-08-02 09:52:57 UTC) #42
mmenke
Hey guys, this CL fixes a bunch of tests that depend on not showing error ...
4 years, 4 months ago (2016-08-02 15:13:19 UTC) #45
estark
//chrome/browser/ssl lgtm https://codereview.chromium.org/2190463008/diff/180001/chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc File chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc (right): https://codereview.chromium.org/2190463008/diff/180001/chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc#newcode713 chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc:713: embedded_test_server()->GetURL("/title1.html").host())); None of the changes above here ...
4 years, 4 months ago (2016-08-02 15:56:27 UTC) #46
Devlin
https://codereview.chromium.org/2190463008/diff/180001/chrome/browser/extensions/activity_log/activity_log_browsertest.cc File chrome/browser/extensions/activity_log/activity_log_browsertest.cc (right): https://codereview.chromium.org/2190463008/diff/180001/chrome/browser/extensions/activity_log/activity_log_browsertest.cc#newcode58 chrome/browser/extensions/activity_log/activity_log_browsertest.cc:58: base::StringPrintf("http://www.google.com.bo:%u/title1.html", port), So previously these tried navigating to a ...
4 years, 4 months ago (2016-08-02 16:17:34 UTC) #47
mmenke
Thanks for the feedback! https://codereview.chromium.org/2190463008/diff/180001/chrome/browser/extensions/activity_log/activity_log_browsertest.cc File chrome/browser/extensions/activity_log/activity_log_browsertest.cc (right): https://codereview.chromium.org/2190463008/diff/180001/chrome/browser/extensions/activity_log/activity_log_browsertest.cc#newcode58 chrome/browser/extensions/activity_log/activity_log_browsertest.cc:58: base::StringPrintf("http://www.google.com.bo:%u/title1.html", port), On 2016/08/02 16:17:34, ...
4 years, 4 months ago (2016-08-02 16:27:00 UTC) #48
Ted C
On 2016/08/02 16:27:00, mmenke wrote: > Thanks for the feedback! > > https://codereview.chromium.org/2190463008/diff/180001/chrome/browser/extensions/activity_log/activity_log_browsertest.cc > File ...
4 years, 4 months ago (2016-08-02 16:30:48 UTC) #49
mmenke
https://codereview.chromium.org/2190463008/diff/180001/chrome/test/data/extensions/api_test/runtime/content_script/manifest.json File chrome/test/data/extensions/api_test/runtime/content_script/manifest.json (right): https://codereview.chromium.org/2190463008/diff/180001/chrome/test/data/extensions/api_test/runtime/content_script/manifest.json#newcode7 chrome/test/data/extensions/api_test/runtime/content_script/manifest.json:7: "matches": ["*://*/echo"], On 2016/08/02 16:27:00, mmenke wrote: > On ...
4 years, 4 months ago (2016-08-02 18:18:34 UTC) #50
mmenke
[+thakis]: I need a chrome/ owners signoff for chrome/browser/errorpage_browsertest.cc (Which rdsmith has already reviewed). Thanks! ...
4 years, 4 months ago (2016-08-02 18:23:02 UTC) #52
Nico
rs-lgtm Moving the test to a subdirectory sounds fine to me.
4 years, 4 months ago (2016-08-02 18:24:31 UTC) #53
Peter Kasting
c/b/ui LGTM
4 years, 4 months ago (2016-08-03 01:41:08 UTC) #54
Devlin
extensions lgtm
4 years, 4 months ago (2016-08-03 16:18:39 UTC) #55
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/2190463008/200001
4 years, 4 months ago (2016-08-03 16:25:18 UTC) #58
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 4 months ago (2016-08-03 17:59:24 UTC) #60
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 18:01:57 UTC) #62
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/d485e9156b72ea4bb4682ffbf73ea0eb248ecb6c
Cr-Commit-Position: refs/heads/master@{#409567}

Powered by Google App Engine
This is Rietveld 408576698