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

Issue 160578: Move alternate 404 error page loading out of WebFrame and into RenderView.... (Closed)

Created:
11 years, 4 months ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com, darin (slow to review), brettw, jam, Ben Goodger (Google)
Visibility:
Public.

Description

Move alternate 404 error page loading out of WebFrame and into RenderView. This involved adding a new method on WebViewDelegate to allow the embedder to intercept data being loaded for a document. I also had to plumb a few more FrameLoaderClient notifications through WebViewDelegate. See DidReceiveResponse and DidFinishLoading. R=tony BUG=15648 TEST=covered by errorpage_uitest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22389

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -256 lines) Patch
M chrome/browser/tab_contents/tab_contents.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/navigation_state.h View 3 chunks +21 lines, -1 line 0 comments Download
M chrome/renderer/render_view.h View 1 2 4 chunks +15 lines, -3 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 6 chunks +94 lines, -14 lines 2 comments Download
M webkit/glue/webframe.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/glue/webframe_impl.h View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M webkit/glue/webframe_impl.cc View 1 2 3 chunks +17 lines, -18 lines 0 comments Download
M webkit/glue/webframeloaderclient_impl.h View 1 2 5 chunks +4 lines, -31 lines 0 comments Download
M webkit/glue/webframeloaderclient_impl.cc View 1 2 12 chunks +24 lines, -133 lines 0 comments Download
M webkit/glue/webview_delegate.h View 1 2 5 chunks +18 lines, -25 lines 0 comments Download
D webkit/glue/webview_delegate.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.h View 1 chunk +4 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M webkit/webkit.gyp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
darin (slow to review)
11 years, 4 months ago (2009-08-04 16:48:05 UTC) #1
tony
LGTM! http://codereview.chromium.org/160578/diff/29/1056 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/160578/diff/29/1056#newcode2979 Line 2979: html_to_load = &navigation_state->postponed_data(); Ah, good catch about ...
11 years, 4 months ago (2009-08-04 17:07:44 UTC) #2
darin (slow to review)
11 years, 4 months ago (2009-08-04 17:34:48 UTC) #3
http://codereview.chromium.org/160578/diff/29/1056
File chrome/renderer/render_view.cc (right):

http://codereview.chromium.org/160578/diff/29/1056#newcode2979
Line 2979: html_to_load = &navigation_state->postponed_data();
On 2009/08/04 17:07:45, tony wrote:
> Ah, good catch about showing the original error page.

The existing code for alt404 already handled this.  See the old code in
WebFrameLoaderClientImpl::Alt404PageFinished.  

In the case of other alt error pages, LoadNavigationErrorPage already deals with
an empty html string by constructing a default error page from original_error.

Powered by Google App Engine
This is Rietveld 408576698