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

Issue 742023003: Enable using system proxy resolver for android webview. (Closed)

Created:
6 years, 1 month ago by sgurun-gerrit only
Modified:
4 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Android platform provides a local proxy that also handles PAC proxy resolution. The CL below modified enabled chrome network stack to start using V8 proxy resolution on Android platform: https://codereview.chromium.org/573013002/ however webview cannot use V8 proxy resolution since Webview is significantly different from chrome: Webview is single process vs. chrome is multithreaded and use of V8 isolates creates concurrency problems with Blink's use of V8 isolates. For now, we want to establish the prior behavior for android webview and consider making changes to v8 proxy resolver in future. BUG=432539 Committed: https://crrev.com/200b2f027ce820425e37b08ed8b4e5dc84928276 Cr-Commit-Position: refs/heads/master@{#305166}

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 2

Patch Set 3 : address mnaganov's nit #

Total comments: 8

Patch Set 4 : Address eroman's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -14 lines) Patch
M android_webview/browser/aw_browser_context.cc View 1 2 3 3 chunks +12 lines, -4 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 1 chunk +8 lines, -8 lines 0 comments Download
M net/proxy/proxy_config_service_android.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M net/proxy/proxy_config_service_android.cc View 1 2 3 4 chunks +17 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
sgurun-gerrit only
On 2014/11/20 19:52:57, sgurun wrote: > mailto:sgurun@chromium.org changed reviewers: > + mailto:eroman@chromium.org eroman, PTAL, thanks!
6 years, 1 month ago (2014-11-20 21:41:39 UTC) #2
mnaganov (inactive)
drive-by style nit https://codereview.chromium.org/742023003/diff/20001/net/proxy/proxy_config_service_android.cc File net/proxy/proxy_config_service_android.cc (right): https://codereview.chromium.org/742023003/diff/20001/net/proxy/proxy_config_service_android.cc#newcode275 net/proxy/proxy_config_service_android.cc:275: if (use_local_proxy_) nit: I think this ...
6 years, 1 month ago (2014-11-20 21:58:35 UTC) #4
sgurun-gerrit only
https://codereview.chromium.org/742023003/diff/20001/net/proxy/proxy_config_service_android.cc File net/proxy/proxy_config_service_android.cc (right): https://codereview.chromium.org/742023003/diff/20001/net/proxy/proxy_config_service_android.cc#newcode275 net/proxy/proxy_config_service_android.cc:275: if (use_local_proxy_) On 2014/11/20 21:58:35, mnaganov (cr) wrote: > ...
6 years, 1 month ago (2014-11-20 23:38:19 UTC) #5
mnaganov (inactive)
Thanks! LGTM.
6 years, 1 month ago (2014-11-21 01:25:44 UTC) #6
eroman
Is Chrome on Android using v8 proxy resolver which makes this a non-issue? The particular ...
6 years, 1 month ago (2014-11-21 01:55:15 UTC) #7
sgurun-gerrit only
https://codereview.chromium.org/742023003/diff/40001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/742023003/diff/40001/android_webview/browser/aw_browser_context.cc#newcode126 android_webview/browser/aw_browser_context.cc:126: CreateProxyConfigService()).Pass())); On 2014/11/21 01:55:15, eroman wrote: > Should this ...
6 years, 1 month ago (2014-11-21 02:13:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742023003/60001
6 years, 1 month ago (2014-11-21 02:52:56 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-21 04:42:55 UTC) #11
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/200b2f027ce820425e37b08ed8b4e5dc84928276 Cr-Commit-Position: refs/heads/master@{#305166}
6 years, 1 month ago (2014-11-21 04:43:42 UTC) #12
fujunweitongx
4 years, 10 months ago (2016-02-19 01:03:12 UTC) #13
Message was sent while issue was closed.
> Himm, there is some background to this. Android provides a local HTTP proxy
that
> does the proxying. This local HTTP proxy also reflects the PAC setting (if it
is
> set). Android proxy change intents broadcast the local host/port pair. 
> 
> I will update the comments to better explain this.
> 
> Because of this trick, PAC was actually working for Android webview in L
> release.

How to use the local proxy to automatically choose the appropriate proxy server
for fetching a given URL?

> Webview is single process vs. chrome is multithreaded and use of V8 isolates 
> creates concurrency problems with Blink's use of V8 isolates. 

I don't understand why this differentiation can't support PAC on Android
platform. Do we have other approaches to implement this feature?

Powered by Google App Engine
This is Rietveld 408576698