|
|
Created:
5 years, 3 months ago by guoweis_left_chromium Modified:
5 years, 3 months ago CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd `privacy.network.webRTCNonProxiedUdpTransportEnabled` to extensions API
Expose the preference to extensions' privacy API. Disabling this preference prevents non-proxied UDP to be used as it leads to IP leak when using WebRTC. Currently, this is effectively disabling all UDP traffic until UDP supporting proxy is available in chrome.
This is based on an ongoing CL https://codereview.chromium.org/1309543004
BUG=webrtc:4784
Committed: https://crrev.com/be2e0415f2fe42c419ce1660c9acd331f3a174ba
Cr-Commit-Position: refs/heads/master@{#346786}
Patch Set 1 #
Total comments: 2
Patch Set 2 : #
Total comments: 1
Patch Set 3 : #
Total comments: 3
Patch Set 4 : #
Total comments: 4
Patch Set 5 : #
Messages
Total messages: 31 (10 generated)
guoweis@chromium.org changed reviewers: + juberti@chromium.org, msramek@chromium.org, pthatcher@chromium.org
guoweis@chromium.org changed reviewers: + brettw@chromium.org
PTAL
juberti@google.com changed reviewers: + juberti@google.com
https://codereview.chromium.org/1315223002/diff/1/chrome/common/extensions/ap... File chrome/common/extensions/api/privacy.json (right): https://codereview.chromium.org/1315223002/diff/1/chrome/common/extensions/ap... chrome/common/extensions/api/privacy.json:28: "description": "If enabled, Chrome will use non-proxied UDP transport to connect to peers or TURN servers when using WebRTC. Since most proxy servers don't handle UDP, using UDP possibly exposes user's IP address. Turning this off force WebRTC to only use TCP. This preference's value is a boolean, defaulting to <code>true</code>." Should mention that this will hurt performance and increase load on the proxy.
PTAL. https://codereview.chromium.org/1315223002/diff/1/chrome/common/extensions/ap... File chrome/common/extensions/api/privacy.json (right): https://codereview.chromium.org/1315223002/diff/1/chrome/common/extensions/ap... chrome/common/extensions/api/privacy.json:28: "description": "If enabled, Chrome will use non-proxied UDP transport to connect to peers or TURN servers when using WebRTC. Since most proxy servers don't handle UDP, using UDP possibly exposes user's IP address. Turning this off force WebRTC to only use TCP. This preference's value is a boolean, defaulting to <code>true</code>." On 2015/08/28 17:27:19, juberti wrote: > Should mention that this will hurt performance and increase load on the proxy. Done.
lgtm with minor text change https://codereview.chromium.org/1315223002/diff/20001/chrome/common/extension... File chrome/common/extensions/api/privacy.json (right): https://codereview.chromium.org/1315223002/diff/20001/chrome/common/extension... chrome/common/extensions/api/privacy.json:28: "description": "If enabled, Chrome is allowed to use non-proxied UDP transport to connect to peers or TURN servers when using WebRTC. Since most proxy servers don't handle UDP, using UDP possibly exposes user's IP address. Turning this off effectively forces WebRTC to only use TCP for now, until UDP proxy support is availabe in Chrome. It also might hurt media performance and increase the load for proxy servers. This preference's value is a boolean, defaulting to <code>true</code>." "available (fix spelling) in Chrome and such proxies are widely deployed. As a result, it will hurt media performance..."
https://codereview.chromium.org/1315223002/diff/40001/chrome/browser/extensio... File chrome/browser/extensions/api/preference/preference_api.cc (right): https://codereview.chromium.org/1315223002/diff/40001/chrome/browser/extensio... chrome/browser/extensions/api/preference/preference_api.cc:116: {"webRTCNonProxiedUdpTransportEnabled", Can we remove "transport" and just say webRTCNonProxiedUdpEnabled? https://codereview.chromium.org/1315223002/diff/40001/chrome/common/extension... File chrome/common/extensions/api/privacy.json (right): https://codereview.chromium.org/1315223002/diff/40001/chrome/common/extension... chrome/common/extensions/api/privacy.json:28: "description": "If enabled, Chrome is allowed to use non-proxied UDP transport to connect to peers or TURN servers when using WebRTC. Since most proxy servers don't handle UDP, using UDP possibly exposes user's IP address. Turning this off effectively forces WebRTC to only use TCP for now, until UDP proxy support is available in Chrome and such proxies are widely deployed. As a result, it also might hurt media performance and increase the load for proxy servers. This preference's value is a boolean, defaulting to <code>true</code>." I'd change non-proxied UDP transport => non-proxied UDP
LGTM with a comment. https://codereview.chromium.org/1315223002/diff/40001/chrome/browser/extensio... File chrome/browser/extensions/api/preference/preference_api.cc (right): https://codereview.chromium.org/1315223002/diff/40001/chrome/browser/extensio... chrome/browser/extensions/api/preference/preference_api.cc:116: {"webRTCNonProxiedUdpTransportEnabled", On 2015/08/28 18:24:00, pthatcher2 wrote: > Can we remove "transport" and just say webRTCNonProxiedUdpEnabled? > +1. I'd prefer a shorter name if possible, and omitting the word "Transport" doesn't change the meaning.
On 2015/08/31 08:54:39, msramek wrote: > LGTM with a comment. > > https://codereview.chromium.org/1315223002/diff/40001/chrome/browser/extensio... > File chrome/browser/extensions/api/preference/preference_api.cc (right): > > https://codereview.chromium.org/1315223002/diff/40001/chrome/browser/extensio... > chrome/browser/extensions/api/preference/preference_api.cc:116: > {"webRTCNonProxiedUdpTransportEnabled", > On 2015/08/28 18:24:00, pthatcher2 wrote: > > Can we remove "transport" and just say webRTCNonProxiedUdpEnabled? > > > > +1. I'd prefer a shorter name if possible, and omitting the word "Transport" > doesn't change the meaning. PTAL.
https://codereview.chromium.org/1315223002/diff/60001/chrome/browser/extensio... File chrome/browser/extensions/api/preference/preference_apitest.cc (right): https://codereview.chromium.org/1315223002/diff/60001/chrome/browser/extensio... chrome/browser/extensions/api/preference/preference_apitest.cc:127: prefs->SetBoolean(prefs::kWebRTCNonProxiedUdpTransportEnabled, false); Here too :) https://codereview.chromium.org/1315223002/diff/60001/chrome/test/data/extens... File chrome/test/data/extensions/api_test/preference/standard/test.js (right): https://codereview.chromium.org/1315223002/diff/60001/chrome/test/data/extens... chrome/test/data/extensions/api_test/preference/standard/test.js:47: 'webRTCNonProxiedUdpEnabled' // requires ENABLE_WEBRTC=1 Nit: formatting.
Patchset #5 (id:80001) has been deleted
brettw@chromium, please look at chrome/browser/extensions/api/preference/* and chrome/common/extensions/api/privacy.json
lgtm, with nit https://codereview.chromium.org/1315223002/diff/120001/chrome/common/extensio... File chrome/common/extensions/api/privacy.json (right): https://codereview.chromium.org/1315223002/diff/120001/chrome/common/extensio... chrome/common/extensions/api/privacy.json:28: "description": "If enabled, Chrome is allowed to use non-proxied UDP to connect to peers or TURN servers when using WebRTC. Since most proxy servers don't handle UDP, using UDP possibly exposes user's IP address. Turning this off effectively forces WebRTC to only use TCP for now, until UDP proxy support is available in Chrome and such proxies are widely deployed. As a result, it also might hurt media performance and increase the load for proxy servers. This preference's value is a boolean, defaulting to <code>true</code>." exposes user's => exposes the users's
lgtm
lgtm
On 2015/08/31 23:23:42, juberti wrote: > lgtm brettw, please look at chrome/browser/extensions/api/preference/* and chrome/common/extensions/api/privacy.json
guoweis@chromium.org changed reviewers: - brettw@chromium.org
On 2015/09/01 15:08:16, guoweis_chromium wrote: > On 2015/08/31 23:23:42, juberti wrote: > > lgtm > > brettw, please look at chrome/browser/extensions/api/preference/* and > chrome/common/extensions/api/privacy.json actually, if you don't mind, I'll go back to patch set #4 and do the renaming in a different CL. This will make the review easier.
Patchset #6 (id:120001) has been deleted
Patchset #5 (id:100001) has been deleted
On 2015/09/01 22:21:28, guoweis_chromium wrote: > On 2015/09/01 15:08:16, guoweis_chromium wrote: > > On 2015/08/31 23:23:42, juberti wrote: > > > lgtm > > > > brettw, please look at chrome/browser/extensions/api/preference/* and > > chrome/common/extensions/api/privacy.json > > actually, if you don't mind, I'll go back to patch set #4 and do the renaming in > a different CL. This will make the review easier. kalman, PTAL.
guoweis@chromium.org changed reviewers: + kalman@chromium.org
kalman@chromium.org: PTAL.
PTAL. Will remove "transport" in a separate CL. https://codereview.chromium.org/1315223002/diff/60001/chrome/browser/extensio... File chrome/browser/extensions/api/preference/preference_apitest.cc (right): https://codereview.chromium.org/1315223002/diff/60001/chrome/browser/extensio... chrome/browser/extensions/api/preference/preference_apitest.cc:127: prefs->SetBoolean(prefs::kWebRTCNonProxiedUdpTransportEnabled, false); On 2015/08/31 17:23:13, msramek wrote: > Here too :) Will rename this in a separate CL as this is much wider used. https://codereview.chromium.org/1315223002/diff/60001/chrome/test/data/extens... File chrome/test/data/extensions/api_test/preference/standard/test.js (right): https://codereview.chromium.org/1315223002/diff/60001/chrome/test/data/extens... chrome/test/data/extensions/api_test/preference/standard/test.js:47: 'webRTCNonProxiedUdpEnabled' // requires ENABLE_WEBRTC=1 On 2015/08/31 17:23:13, msramek wrote: > Nit: formatting. Done.
lgtm
The CQ bit was checked by guoweis@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from msramek@chromium.org, juberti@google.com, pthatcher@chromium.org Link to the patchset: https://codereview.chromium.org/1315223002/#ps140001 (title: " ")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1315223002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1315223002/140001
Message was sent while issue was closed.
Committed patchset #5 (id:140001)
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/be2e0415f2fe42c419ce1660c9acd331f3a174ba Cr-Commit-Position: refs/heads/master@{#346786} |