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

Issue 1227823010: Handle empty error pages in DidFinishDocumentLoad (Closed)

Created:
5 years, 5 months ago by Nate Chapin
Modified:
5 years, 5 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle empty error pages in DidFinishDocumentLoad We ought to show an error message when a 4xx/5xx http response has no body, because the alternative is a blank page. This logic is currently broken. Rather than trying to go guess whether the document is non-empty, plumb that bit out in DidFinishDocumentLoad. BUG=331745 Committed: https://crrev.com/0ee02e6e52469f9260395f2ddd22bf4d6e75b828 Cr-Commit-Position: refs/heads/master@{#339286}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : +test and comment in didFinishDocumentLoad #

Total comments: 6

Patch Set 4 : Fix comments #

Patch Set 5 : Disable test on android, like the other error page tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -55 lines) Patch
M components/test_runner/web_frame_test_proxy.h View 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/internal_document_state_data.h View 2 chunks +0 lines, -8 lines 0 comments Download
M content/renderer/internal_document_state_data.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 4 chunks +32 lines, -37 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 chunks +41 lines, -3 lines 0 comments Download

Messages

Total messages: 44 (19 generated)
Nate Chapin
This depends on https://codereview.chromium.org/1229263003
5 years, 5 months ago (2015-07-10 18:12:42 UTC) #2
Charlie Reis
No big objections to the approach, but I don't understand the bug or how this ...
5 years, 5 months ago (2015-07-10 20:56:45 UTC) #3
Nate Chapin
The case described by the bug is: * Server returns a 4xx/5xx response code for ...
5 years, 5 months ago (2015-07-13 17:40:33 UTC) #4
Nate Chapin
On 2015/07/13 17:40:33, Nate Chapin wrote: > The case described by the bug is: > ...
5 years, 5 months ago (2015-07-13 20:31:19 UTC) #5
Charlie Reis
Thanks, this helps. Also glad we have a test for it now! LGTM with nits. ...
5 years, 5 months ago (2015-07-13 20:42:43 UTC) #6
Nate Chapin
https://codereview.chromium.org/1227823010/diff/40001/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): https://codereview.chromium.org/1227823010/diff/40001/content/renderer/render_view_browsertest.cc#newcode2095 content/renderer/render_view_browsertest.cc:2095: main_frame->didFinishDocumentLoad(web_frame, true); On 2015/07/13 20:42:43, Charlie Reis wrote: > ...
5 years, 5 months ago (2015-07-13 21:15:27 UTC) #7
Nate Chapin
https://codereview.chromium.org/1227823010/diff/40001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1227823010/diff/40001/content/renderer/render_frame_impl.cc#newcode2856 content/renderer/render_frame_impl.cc:2856: // we may want to displaying our own error ...
5 years, 5 months ago (2015-07-14 18:46:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227823010/60001
5 years, 5 months ago (2015-07-14 18:47:15 UTC) #11
commit-bot: I haz the power
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/78663)
5 years, 5 months ago (2015-07-14 18:56:22 UTC) #13
dmazzoni
lgtm for components/test_runner
5 years, 5 months ago (2015-07-14 20:24:44 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227823010/60001
5 years, 5 months ago (2015-07-14 20:37:02 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/16430)
5 years, 5 months ago (2015-07-14 22:04:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227823010/60001
5 years, 5 months ago (2015-07-14 22:13:52 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/44239)
5 years, 5 months ago (2015-07-14 23:08:48 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227823010/60001
5 years, 5 months ago (2015-07-14 23:12:45 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/44308)
5 years, 5 months ago (2015-07-15 00:53:48 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227823010/60001
5 years, 5 months ago (2015-07-15 16:42:06 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/74159)
5 years, 5 months ago (2015-07-15 19:30:37 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227823010/60001
5 years, 5 months ago (2015-07-15 22:35:53 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/46442)
5 years, 5 months ago (2015-07-15 23:47:30 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227823010/60001
5 years, 5 months ago (2015-07-16 18:09:47 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/45290)
5 years, 5 months ago (2015-07-16 20:26:51 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1227823010/80001
5 years, 5 months ago (2015-07-17 17:16:48 UTC) #42
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 5 months ago (2015-07-17 18:27:46 UTC) #43
commit-bot: I haz the power
5 years, 5 months ago (2015-07-17 18:28:56 UTC) #44
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0ee02e6e52469f9260395f2ddd22bf4d6e75b828
Cr-Commit-Position: refs/heads/master@{#339286}

Powered by Google App Engine
This is Rietveld 408576698