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

Issue 2668273003: WebView shell: automatically escape URLs (Closed)

Created:
3 years, 10 months ago by paulmiller
Modified:
3 years, 10 months ago
Reviewers:
timvolodine
CC:
chromium-reviews, android-webview-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebView shell: automatically escape URLs Let WebView deal with weird URLs, rather than handling errors in the shell browser. WebView will automatically escape illegal characters where appropriate, and display appropriate error pages for bad URLs. This was tested like so: adb shell am start -n org.chromium.webview_shell/.WebViewBrowserActivity -d URL where URL was: https://example.com (should work normally) example.com (should become http://example.com) blah://example.com (should show WebView's ERR_UNKNOWN_URL_SCHEME page) http://example.com/a^b (should become http://example.com/a%5Eb) BUG=685419 TEST=manual Review-Url: https://codereview.chromium.org/2668273003 Cr-Commit-Position: refs/heads/master@{#447697} Committed: https://chromium.googlesource.com/chromium/src/+/8d24b2d5f9d6e67d53f2aa8e532430f2dd096d59

Patch Set 1 #

Total comments: 2

Patch Set 2 : more descriptive #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -13 lines) Patch
M android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java View 1 2 chunks +4 lines, -13 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
paulmiller
On 2017/02/01 20:25:32, paulmiller wrote: > mailto:paulmiller@chromium.org changed reviewers: > + mailto:timvolodine@chromium.org PTAL. I tested ...
3 years, 10 months ago (2017-02-01 20:27:08 UTC) #3
timvolodine
nice, one comment below https://codereview.chromium.org/2668273003/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java File android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java (right): https://codereview.chromium.org/2668273003/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java#newcode404 android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java:404: if (Uri.parse(url).getScheme() == null) url ...
3 years, 10 months ago (2017-02-02 01:32:36 UTC) #4
paulmiller
https://codereview.chromium.org/2668273003/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java File android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java (right): https://codereview.chromium.org/2668273003/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java#newcode404 android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java:404: if (Uri.parse(url).getScheme() == null) url = "http://" + url; ...
3 years, 10 months ago (2017-02-02 01:43:20 UTC) #5
timvolodine
On 2017/02/02 01:43:20, paulmiller wrote: > https://codereview.chromium.org/2668273003/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java > File > android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java > (right): > > ...
3 years, 10 months ago (2017-02-02 01:56:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2668273003/20001
3 years, 10 months ago (2017-02-02 02:27:24 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-02 05:05:58 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/8d24b2d5f9d6e67d53f2aa8e5324...

Powered by Google App Engine
This is Rietveld 408576698