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

Issue 1421743002: Implement chrome://network-errors for direct access to network error interstitials (Closed)

Created:
5 years, 2 months ago by edwardjung
Modified:
5 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement chrome://network-errors for direct access to network error interstitials + chrome://network-errors/ lists all the network errors. + chrome://network-error/<err_code> shows a specific network error. BUG= Committed: https://crrev.com/6e6ebd18b801a34bf703c095f343cfbb574f2a13 Cr-Commit-Position: refs/heads/master@{#362968}

Patch Set 1 #

Total comments: 35

Patch Set 2 : Address comments. Changed way the error code listing is obtained. #

Patch Set 3 : Add unit test #

Total comments: 8

Patch Set 4 : Fix unit test, made listing mobile friendly #

Total comments: 11

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Total comments: 24

Patch Set 7 : Address reviewer comments #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 10

Patch Set 10 : Switch to use URLRequestErrorJob to display error pages #

Patch Set 11 : Clean up NetworkErrorRequestJob remnants #

Total comments: 14

Patch Set 12 : Address dbeam comments #

Patch Set 13 : Fix presubmit errors #

Total comments: 8

Patch Set 14 : Address comments from jochen #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -19 lines) Patch
M chrome/common/url_constants.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A content/browser/net/network_errors_listing_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +25 lines, -0 lines 0 comments Download
A content/browser/net/network_errors_listing_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +94 lines, -0 lines 0 comments Download
A + content/browser/resources/net/network_errors_listing.css View 1 2 3 4 5 6 1 chunk +8 lines, -7 lines 0 comments Download
A + content/browser/resources/net/network_errors_listing.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -10 lines 0 comments Download
A content/browser/resources/net/network_errors_listing.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +50 lines, -0 lines 0 comments Download
M content/browser/webui/content_web_ui_controller_factory.cc View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download
M content/browser/webui/url_data_manager_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +47 lines, -1 line 0 comments Download
M content/browser/webui/url_data_manager_backend_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_resources.grd View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/url_constants.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/common/url_constants.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (14 generated)
edwardjung
Matt, do you mind doing a quick pass of this implementation as a sanity check. ...
5 years, 2 months ago (2015-10-22 13:30:37 UTC) #1
mmenke
https://codereview.chromium.org/1421743002/diff/1/content/browser/network_error_request_job.cc File content/browser/network_error_request_job.cc (right): https://codereview.chromium.org/1421743002/diff/1/content/browser/network_error_request_job.cc#newcode1 content/browser/network_error_request_job.cc:1: // Copyright (c) 2015 The Chromium Authors. All rights ...
5 years, 2 months ago (2015-10-22 15:41:31 UTC) #3
edwardjung
Thanks for the comments. I've been away on a research trip so only just picking ...
5 years, 1 month ago (2015-11-06 12:05:51 UTC) #4
edwardjung
Re content browser tests. This is new to me, I want to parse the actual ...
5 years, 1 month ago (2015-11-06 15:37:38 UTC) #5
mmenke
On 2015/11/06 15:37:38, edwardjung wrote: > Re content browser tests. This is new to me, ...
5 years, 1 month ago (2015-11-06 16:31:15 UTC) #6
edwardjung
> You can get the error codes from URLRequest::Status() (Check .status is > URLRequestStatus::FAILED, and ...
5 years, 1 month ago (2015-11-11 15:08:55 UTC) #7
mmenke
On 2015/11/11 15:08:55, edwardjung wrote: > > You can get the error codes from URLRequest::Status() ...
5 years, 1 month ago (2015-11-12 19:36:01 UTC) #8
edwardjung
> Hrm..Looks right to me. I can debug it for you, but I probably won't ...
5 years, 1 month ago (2015-11-13 10:26:02 UTC) #9
mmenke
https://codereview.chromium.org/1421743002/diff/40001/content/browser/webui/url_data_manager_backend_unittest.cc File content/browser/webui/url_data_manager_backend_unittest.cc (right): https://codereview.chromium.org/1421743002/diff/40001/content/browser/webui/url_data_manager_backend_unittest.cc#newcode115 content/browser/webui/url_data_manager_backend_unittest.cc:115: base::RunLoop().RunUntilIdle(); Run() (The delegate exits the message loop when ...
5 years, 1 month ago (2015-11-17 22:25:50 UTC) #10
edwardjung
Thanks for the pointers Matt. estade and jochen, could you review the following files respectively: ...
5 years, 1 month ago (2015-11-19 13:43:29 UTC) #12
Evan Stade
https://codereview.chromium.org/1421743002/diff/60001/content/browser/net/network_error_request_job.cc File content/browser/net/network_error_request_job.cc (right): https://codereview.chromium.org/1421743002/diff/60001/content/browser/net/network_error_request_job.cc#newcode42 content/browser/net/network_error_request_job.cc:42: data->append("<title>"); this seems like a pretty awkward way to ...
5 years, 1 month ago (2015-11-19 16:35:21 UTC) #13
edwardjung
Any suggestions / examples? https://codereview.chromium.org/1421743002/diff/60001/content/browser/net/network_error_request_job.cc File content/browser/net/network_error_request_job.cc (right): https://codereview.chromium.org/1421743002/diff/60001/content/browser/net/network_error_request_job.cc#newcode42 content/browser/net/network_error_request_job.cc:42: data->append("<title>"); On 2015/11/19 16:35:21, Evan ...
5 years, 1 month ago (2015-11-19 17:10:15 UTC) #14
Evan Stade
https://codereview.chromium.org/1421743002/diff/60001/content/browser/net/network_error_request_job.cc File content/browser/net/network_error_request_job.cc (right): https://codereview.chromium.org/1421743002/diff/60001/content/browser/net/network_error_request_job.cc#newcode42 content/browser/net/network_error_request_job.cc:42: data->append("<title>"); On 2015/11/19 17:10:14, edwardjung wrote: > On 2015/11/19 ...
5 years, 1 month ago (2015-11-19 19:07:14 UTC) #16
mmenke
On 2015/11/19 19:07:14, Evan Stade wrote: > https://codereview.chromium.org/1421743002/diff/60001/content/browser/net/network_error_request_job.cc > File content/browser/net/network_error_request_job.cc (right): > > https://codereview.chromium.org/1421743002/diff/60001/content/browser/net/network_error_request_job.cc#newcode42 ...
5 years, 1 month ago (2015-11-19 19:18:14 UTC) #17
Dan Beam
https://codereview.chromium.org/1421743002/diff/60001/content/browser/net/network_error_request_job.cc File content/browser/net/network_error_request_job.cc (right): https://codereview.chromium.org/1421743002/diff/60001/content/browser/net/network_error_request_job.cc#newcode36 content/browser/net/network_error_request_job.cc:36: data->append("<!DOCTYPE html>\n<html>\n<head>\n"); an additional nit: <!doctype html> https://codereview.chromium.org/1421743002/diff/60001/content/browser/net/network_error_request_job.cc#newcode42 content/browser/net/network_error_request_job.cc:42: ...
5 years, 1 month ago (2015-11-19 20:12:52 UTC) #18
edwardjung
Thanks for the suggestions. Have moved the listing code out. It's not yet complete. Have ...
5 years, 1 month ago (2015-11-20 16:34:51 UTC) #19
edwardjung
estade / dbeam please take another look at the updated implementation for the listings page. ...
5 years ago (2015-11-24 17:55:48 UTC) #21
Dan Beam
did you try this code? https://codereview.chromium.org/1421743002/diff/100001/content/browser/net/network_error_request_job.cc File content/browser/net/network_error_request_job.cc (right): https://codereview.chromium.org/1421743002/diff/100001/content/browser/net/network_error_request_job.cc#newcode39 content/browser/net/network_error_request_job.cc:39: } nit: no curlies ...
5 years ago (2015-11-24 20:08:20 UTC) #22
edwardjung
Thanks for the quick response. I should have been more careful checking the code before ...
5 years ago (2015-11-24 21:42:13 UTC) #23
mmenke
https://codereview.chromium.org/1421743002/diff/160001/content/browser/net/network_error_request_job.h File content/browser/net/network_error_request_job.h (right): https://codereview.chromium.org/1421743002/diff/160001/content/browser/net/network_error_request_job.h#newcode17 content/browser/net/network_error_request_job.h:17: class NetworkErrorRequestJob : public net::URLRequestSimpleJob { I think we ...
5 years ago (2015-11-24 22:42:35 UTC) #24
edwardjung
@mmenke, addressed your comments. I now do a check on the error code passed in. ...
5 years ago (2015-11-26 16:12:16 UTC) #25
Dan Beam
https://codereview.chromium.org/1421743002/diff/200001/content/browser/resources/net/network_errors_listing.html File content/browser/resources/net/network_errors_listing.html (right): https://codereview.chromium.org/1421743002/diff/200001/content/browser/resources/net/network_errors_listing.html#newcode17 content/browser/resources/net/network_errors_listing.html:17: <script src="chrome://resources/js/action_link.js"></script> remove action_link.js https://codereview.chromium.org/1421743002/diff/200001/content/browser/resources/net/network_errors_listing.js File content/browser/resources/net/network_errors_listing.js (right): https://codereview.chromium.org/1421743002/diff/200001/content/browser/resources/net/network_errors_listing.js#newcode14 ...
5 years ago (2015-12-01 04:24:17 UTC) #26
edwardjung
Thanks dbeam. https://codereview.chromium.org/1421743002/diff/200001/content/browser/resources/net/network_errors_listing.html File content/browser/resources/net/network_errors_listing.html (right): https://codereview.chromium.org/1421743002/diff/200001/content/browser/resources/net/network_errors_listing.html#newcode17 content/browser/resources/net/network_errors_listing.html:17: <script src="chrome://resources/js/action_link.js"></script> On 2015/12/01 04:24:17, Dan Beam ...
5 years ago (2015-12-01 12:30:08 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421743002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421743002/220001
5 years ago (2015-12-01 16:27:06 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/123560)
5 years ago (2015-12-01 16:35:46 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421743002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421743002/240001
5 years ago (2015-12-01 19:37:06 UTC) #33
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years ago (2015-12-01 19:37:08 UTC) #35
Dan Beam
lgtm
5 years ago (2015-12-02 04:52:43 UTC) #36
jochen (gone - plz use gerrit)
lgtm with comments addressed https://codereview.chromium.org/1421743002/diff/240001/content/browser/net/network_errors_listing_ui.cc File content/browser/net/network_errors_listing_ui.cc (right): https://codereview.chromium.org/1421743002/diff/240001/content/browser/net/network_errors_listing_ui.cc#newcode72 content/browser/net/network_errors_listing_ui.cc:72: NetworkErrorsListingUI::NetworkErrorsListingUI(WebUI* web_ui) : is that ...
5 years ago (2015-12-02 12:35:08 UTC) #37
edwardjung
Thanks jochen and dbeam. https://codereview.chromium.org/1421743002/diff/240001/content/browser/net/network_errors_listing_ui.cc File content/browser/net/network_errors_listing_ui.cc (right): https://codereview.chromium.org/1421743002/diff/240001/content/browser/net/network_errors_listing_ui.cc#newcode72 content/browser/net/network_errors_listing_ui.cc:72: NetworkErrorsListingUI::NetworkErrorsListingUI(WebUI* web_ui) : On 2015/12/02 ...
5 years ago (2015-12-03 11:02:53 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421743002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421743002/260001
5 years ago (2015-12-03 12:36:19 UTC) #40
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-03 12:51:20 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421743002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421743002/260001
5 years ago (2015-12-03 13:14:06 UTC) #45
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years ago (2015-12-03 13:18:57 UTC) #47
commit-bot: I haz the power
5 years ago (2015-12-03 13:19:44 UTC) #49
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/6e6ebd18b801a34bf703c095f343cfbb574f2a13
Cr-Commit-Position: refs/heads/master@{#362968}

Powered by Google App Engine
This is Rietveld 408576698