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

Issue 1001003004: [Android WebView] Implement a better OnReceivedError callback (Closed)

Created:
5 years, 9 months ago by mnaganov (inactive)
Modified:
5 years, 9 months ago
Reviewers:
sgurun-gerrit only
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android WebView] Implement a better OnReceivedError callback The new callback (aptly named OnReceivedError2) is also called for subresource load failures and provides more information about the failed request. Note that calling OnReceivedError2 is not yet implemented for requests blocked due to security considerations by Blink. This will be implemented separately. BUG=456782 Committed: https://crrev.com/a83c3cafa72c29051cbcf2b5a26a33d488559547 Cr-Commit-Position: refs/heads/master@{#320923}

Patch Set 1 #

Patch Set 2 : Fixed tests (fingers crossed) #

Patch Set 3 : Rebased #

Patch Set 4 : Rebased for realz #

Patch Set 5 : Hopefully fixed remaining test #

Patch Set 6 : Restored empty line #

Total comments: 14

Patch Set 7 : Addressed most of the comments, retesting #

Patch Set 8 : Addressed the last comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+636 lines, -143 lines) Patch
M android_webview/browser/aw_contents_io_thread_client.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M android_webview/browser/aw_request_interceptor.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/browser/aw_request_interceptor.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -3 lines 0 comments Download
M android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 2 chunks +26 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClientCallbackHelper.java View 1 3 chunks +10 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadClient.java View 2 chunks +26 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsStatics.java View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwWebContentsObserver.java View 1 2 3 4 5 6 1 chunk +3 lines, -23 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/ErrorCodeConversionHelper.java View 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwWebContentsObserverTest.java View 1 2 3 4 3 chunks +0 lines, -47 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
A android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedError2Test.java View 1 2 3 4 5 6 1 chunk +414 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java View 1 2 3 5 chunks +32 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents_io_thread_client_impl.h View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M android_webview/native/aw_contents_io_thread_client_impl.cc View 1 2 3 4 5 6 7 7 chunks +75 lines, -67 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
mnaganov (inactive)
5 years, 9 months ago (2015-03-13 17:00:20 UTC) #2
mnaganov (inactive)
On 2015/03/13 17:00:20, mnaganov (cr) wrote: Ping!
5 years, 9 months ago (2015-03-16 20:37:50 UTC) #3
sgurun-gerrit only
On 2015/03/16 20:37:50, mnaganov (cr) wrote: > On 2015/03/13 17:00:20, mnaganov (cr) wrote: > > ...
5 years, 9 months ago (2015-03-16 20:54:11 UTC) #4
sgurun-gerrit only
On 2015/03/16 20:54:11, sgurun wrote: > On 2015/03/16 20:37:50, mnaganov (cr) wrote: > > On ...
5 years, 9 months ago (2015-03-17 00:29:51 UTC) #5
sgurun-gerrit only
https://codereview.chromium.org/1001003004/diff/100001/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc File android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/1001003004/diff/100001/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc#newcode249 android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc:249: if (!request_info) { curious if this can this can ...
5 years, 9 months ago (2015-03-17 00:30:04 UTC) #6
mnaganov (inactive)
Thank you very much, Selim! I really appreciate the questions you asked. https://codereview.chromium.org/1001003004/diff/100001/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc File android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc ...
5 years, 9 months ago (2015-03-17 15:29:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1001003004/140001
5 years, 9 months ago (2015-03-17 15:30:33 UTC) #10
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 9 months ago (2015-03-17 15:57:00 UTC) #11
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 15:57:39 UTC) #12
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a83c3cafa72c29051cbcf2b5a26a33d488559547
Cr-Commit-Position: refs/heads/master@{#320923}

Powered by Google App Engine
This is Rietveld 408576698