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

Issue 615853006: Escape url to be used in Java layer (Closed)

Created:
6 years, 2 months ago by Jaekyun Seok (inactive)
Modified:
6 years, 2 months ago
CC:
chromium-reviews, klobag.chromium, brettw
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Escape url to be used in Java layer GURL can contain unescaped characters. So it should be escaped when it goes to Java layer. BUG=419257

Patch Set 1 #

Total comments: 2

Patch Set 2 : Escape only queries #

Patch Set 3 : Fix wrong value #

Patch Set 4 : Add EscapeQueryParameters function #

Patch Set 5 : Handle empty queries #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -1 line) Patch
M components/navigation_interception/navigation_params_android.cc View 1 2 3 4 1 chunk +38 lines, -1 line 0 comments Download

Messages

Total messages: 17 (3 generated)
Jaekyun Seok (inactive)
Please review this change.
6 years, 2 months ago (2014-10-02 13:36:52 UTC) #2
Jaekyun Seok (inactive)
https://codereview.chromium.org/615853006/diff/1/components/navigation_interception/navigation_params_android.cc File components/navigation_interception/navigation_params_android.cc (right): https://codereview.chromium.org/615853006/diff/1/components/navigation_interception/navigation_params_android.cc#newcode19 components/navigation_interception/navigation_params_android.cc:19: env, net::EscapeExternalHandlerValue(params.url().spec())); This doesn't seem a proper method for ...
6 years, 2 months ago (2014-10-02 15:31:19 UTC) #3
Jaekyun Seok (inactive)
https://codereview.chromium.org/615853006/diff/1/components/navigation_interception/navigation_params_android.cc File components/navigation_interception/navigation_params_android.cc (right): https://codereview.chromium.org/615853006/diff/1/components/navigation_interception/navigation_params_android.cc#newcode19 components/navigation_interception/navigation_params_android.cc:19: env, net::EscapeExternalHandlerValue(params.url().spec())); I added my own logic to escape ...
6 years, 2 months ago (2014-10-02 16:30:18 UTC) #4
mkosiba (inactive)
I suspect this will break WebView apps many of which expect specific strings to appear ...
6 years, 2 months ago (2014-10-02 17:54:47 UTC) #5
Jaekyun Seok (inactive)
On 2014/10/02 17:54:47, mkosiba wrote: > I suspect this will break WebView apps many of ...
6 years, 2 months ago (2014-10-02 22:28:47 UTC) #6
Jaekyun Seok (inactive)
I added a function EscapeQueryParameters to escape url queries before sending it to Java layer.
6 years, 2 months ago (2014-10-02 23:48:22 UTC) #8
Jaekyun Seok (inactive)
Could you please speed up reviewing this change a little more because the original issue ...
6 years, 2 months ago (2014-10-03 00:07:18 UTC) #9
mkosiba (inactive)
On 2014/10/03 00:07:18, Jaekyun Seok wrote: > Could you please speed up reviewing this change ...
6 years, 2 months ago (2014-10-03 10:04:35 UTC) #10
mkosiba (inactive)
+cc brettw, Brett, do you know why GURL doesn't escape the '|' (pipe) character in ...
6 years, 2 months ago (2014-10-03 10:35:33 UTC) #11
Jaekyun Seok (inactive)
Martin, really thank you for your review and the patch. I will add some tests ...
6 years, 2 months ago (2014-10-03 12:30:39 UTC) #12
brettw
Generally it doesn't escape stuff unless it needs to. In particular for the query section, ...
6 years, 2 months ago (2014-10-03 16:43:43 UTC) #14
Jaekyun Seok (inactive)
Thanks for your answer. According to that, it seems reasonable to escape query section to ...
6 years, 2 months ago (2014-10-06 00:02:00 UTC) #15
mkosiba (inactive)
On 2014/10/03 16:43:43, brettw wrote: > Generally it doesn't escape stuff unless it needs to. ...
6 years, 2 months ago (2014-10-06 09:08:15 UTC) #16
Jaekyun Seok (inactive)
6 years, 2 months ago (2014-10-06 13:15:20 UTC) #17
Message was sent while issue was closed.
I closed this CL.

Powered by Google App Engine
This is Rietveld 408576698