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

Issue 6546069: Only display Link Doctor page on 404 errors with no body (Closed)

Created:
9 years, 10 months ago by mmenke
Modified:
9 years, 7 months ago
Reviewers:
tony, Paweł Hajdan Jr.
CC:
chromium-reviews, brettw-cc_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Only display Link Doctor page on 404 errors with no body. Had to remove some of the old tests, since TestServer.py will not sent blank pages when there's an error code (On the trybots, at least). BUG=36558 TEST=ErrorPageTest.Page404 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75887

Patch Set 1 : '' #

Patch Set 2 : Remove all postponed data code #

Total comments: 6

Patch Set 3 : Response to comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -114 lines) Patch
M chrome/browser/errorpage_uitest.cc View 1 1 chunk +3 lines, -40 lines 1 comment Download
M chrome/renderer/navigation_state.h View 1 2 2 chunks +7 lines, -11 lines 0 comments Download
M chrome/renderer/navigation_state.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 chunks +22 lines, -56 lines 0 comments Download
D chrome/test/data/iframe404.html View 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/test/data/iframe404-inner.html View 1 chunk +0 lines, -1 line 0 comments Download
D chrome/test/data/iframe404-inner.html.mock-http-headers View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/data/page404.html View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
mmenke
The python http server used on the trybots doesn't allow completely blank pages with error ...
9 years, 10 months ago (2011-02-23 14:51:42 UTC) #1
tony
I was thinking it might be nice if we could remove all the code for ...
9 years, 10 months ago (2011-02-23 18:21:10 UTC) #2
mmenke
That will also require messing with TestServer.py, unfortunately, which is one of the reasons I ...
9 years, 10 months ago (2011-02-23 18:29:06 UTC) #3
tony
I think it's OK to not test completely blank error pages. Or are there other ...
9 years, 10 months ago (2011-02-23 18:40:11 UTC) #4
mmenke
That's the only reason. So I should just go ahead and remove all the 404/Link ...
9 years, 10 months ago (2011-02-23 18:42:19 UTC) #5
mmenke
Postponed data stuff removed.
9 years, 10 months ago (2011-02-23 20:35:14 UTC) #6
tony
http://codereview.chromium.org/6546069/diff/11001/chrome/renderer/navigation_state.h File chrome/renderer/navigation_state.h (right): http://codereview.chromium.org/6546069/diff/11001/chrome/renderer/navigation_state.h#newcode213 chrome/renderer/navigation_state.h:213: const bool maybe_use_error_page() const { return maybe_use_error_page_; } Nit: ...
9 years, 10 months ago (2011-02-23 21:43:20 UTC) #7
mmenke
Thanks. http://codereview.chromium.org/6546069/diff/11001/chrome/renderer/navigation_state.h File chrome/renderer/navigation_state.h (right): http://codereview.chromium.org/6546069/diff/11001/chrome/renderer/navigation_state.h#newcode213 chrome/renderer/navigation_state.h:213: const bool maybe_use_error_page() const { return maybe_use_error_page_; } ...
9 years, 10 months ago (2011-02-23 21:53:36 UTC) #8
tony
Ah, ok, all makes sense. LGTM!
9 years, 10 months ago (2011-02-23 22:01:41 UTC) #9
Paweł Hajdan Jr.
9 years, 10 months ago (2011-02-25 16:02:12 UTC) #10
Drive-by with a tiny nit.

http://codereview.chromium.org/6546069/diff/8002/chrome/browser/errorpage_uit...
File chrome/browser/errorpage_uitest.cc (right):

http://codereview.chromium.org/6546069/diff/8002/chrome/browser/errorpage_uit...
chrome/browser/errorpage_uitest.cc:170:
NavigateToURLBlockUntilNavigationsComplete(
nit: If you're waiting for just one navigation, please use NavigateToURL for
simplicity.

Powered by Google App Engine
This is Rietveld 408576698