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

Issue 16441002: [Android WebView] Fix error description setting for provisional load (Closed)

Created:
7 years, 6 months ago by mnaganov (inactive)
Modified:
7 years, 6 months ago
Reviewers:
joth, benm (inactive)
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android WebView] Fix error description setting for provisional load When provisional load fails, there is no HTML error page, so the change I've made in https://codereview.chromium.org/15979017/ wasn't working properly. Now fixed. R=benm@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204272

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments addressed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java View 1 1 chunk +1 line, -1 line 0 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 1 1 chunk +6 lines, -4 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
mnaganov (inactive)
Thanks to joth's insightful comment, I've discovered that the code wasn't working for provisional loads, ...
7 years, 6 months ago (2013-06-05 09:27:35 UTC) #1
benm (inactive)
nice catch! https://codereview.chromium.org/16441002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java File android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java (right): https://codereview.chromium.org/16441002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java#newcode138 android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java:138: assertFalse(onReceivedErrorHelper.getDescription().isEmpty()); nit: Could remove the not null ...
7 years, 6 months ago (2013-06-05 09:35:08 UTC) #2
mnaganov (inactive)
https://codereview.chromium.org/16441002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java File android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java (right): https://codereview.chromium.org/16441002/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java#newcode138 android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java:138: assertFalse(onReceivedErrorHelper.getDescription().isEmpty()); On 2013/06/05 09:35:08, benm wrote: > nit: Could ...
7 years, 6 months ago (2013-06-05 09:46:21 UTC) #3
benm (inactive)
lgtm thanks!
7 years, 6 months ago (2013-06-05 10:00:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/16441002/5001
7 years, 6 months ago (2013-06-05 10:06:21 UTC) #5
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) components_unittests, content_unittests, interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=121909
7 years, 6 months ago (2013-06-05 10:30:16 UTC) #6
mnaganov (inactive)
Committed patchset #2 manually as r204272 (presubmit successful).
7 years, 6 months ago (2013-06-05 15:59:23 UTC) #7
joth
lgtm https://codereview.chromium.org/16441002/diff/5001/android_webview/renderer/aw_content_renderer_client.cc File android_webview/renderer/aw_content_renderer_client.cc (right): https://codereview.chromium.org/16441002/diff/5001/android_webview/renderer/aw_content_renderer_client.cc#newcode85 android_webview/renderer/aw_content_renderer_client.cc:85: *error_description = error.localizedDescription; nit: need to use { ...
7 years, 6 months ago (2013-06-05 16:10:37 UTC) #8
mnaganov (inactive)
7 years, 6 months ago (2013-06-05 16:36:17 UTC) #9
Message was sent while issue was closed.
On 2013/06/05 16:10:37, joth wrote:
> lgtm
> 
>
https://codereview.chromium.org/16441002/diff/5001/android_webview/renderer/a...
> File android_webview/renderer/aw_content_renderer_client.cc (right):
> 
>
https://codereview.chromium.org/16441002/diff/5001/android_webview/renderer/a...
> android_webview/renderer/aw_content_renderer_client.cc:85: *error_description
=
> error.localizedDescription;
> nit: need to use { } when there's an else.
> 
> Maybe easier:
> 
> *error_description = error.localizedDescription;
> if (error_description->isEmpty()
>   *error_description = ASCIIToUTF16(net::ErrorToString(error.reason));

Thanks! I'll fix with some other change.

Powered by Google App Engine
This is Rietveld 408576698