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

Issue 1309543004: Create a new preference which disables UDP protocol for WebRTC (Closed)

Created:
5 years, 4 months ago by guoweis_left_chromium
Modified:
5 years, 3 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create a new preference which disables UDP protocol for WebRTC. The preference will be used in an extension. The extension API CL will follow. WebRTC by default uses UDP to connect to peer and TURN servers. This could lead to ip leak when using proxy server to hide the IP. Introduce a preference which disallows any usage of UDP protocol. This is similar to how we added "enable_multiple_routes" (CL: https://codereview.chromium.org/916873004/) and is based on ongoing CL https://codereview.webrtc.org/1311153003/ BUG=webrtc:4784 Committed: https://crrev.com/a84ace48ac5c7c257913ce4f6ed9ab88d7eb9dca Cr-Commit-Position: refs/heads/master@{#346294}

Patch Set 1 : #

Total comments: 13

Patch Set 2 : #

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Total comments: 1

Patch Set 7 : rebase #

Patch Set 8 : #

Patch Set 9 : fix bad rebase. #

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -22 lines) Patch
M chrome/browser/renderer_preferences_util.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +7 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/renderer_preferences.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/common/renderer_preferences.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.cc View 1 2 3 4 5 6 4 chunks +17 lines, -13 lines 0 comments Download
M content/renderer/p2p/port_allocator.h View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M content/renderer/p2p/port_allocator.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 52 (21 generated)
guoweis_left_chromium
PTAL.
5 years, 4 months ago (2015-08-25 21:24:45 UTC) #3
guoweis_left_chromium
5 years, 4 months ago (2015-08-25 21:24:59 UTC) #5
pthatcher2
https://codereview.chromium.org/1309543004/diff/20001/chrome/browser/renderer_preferences_util.cc File chrome/browser/renderer_preferences_util.cc (right): https://codereview.chromium.org/1309543004/diff/20001/chrome/browser/renderer_preferences_util.cc#newcode49 chrome/browser/renderer_preferences_util.cc:49: pref_service->GetBoolean(prefs::kWebRTCUdpTransportEnabled); I thought we were going to call this ...
5 years, 4 months ago (2015-08-25 23:12:34 UTC) #6
guoweis_left_chromium
sergeyu@chromium.org: Please review changes in content/renderer thakis@chromium.org: Please review changes in chrome/ wfh@chromium.org: Please review ...
5 years, 3 months ago (2015-08-26 14:43:40 UTC) #9
Will Harris
adding a bool to content::RendererPreferences in content/common/view_messages.h lgtm from security
5 years, 3 months ago (2015-08-26 16:03:27 UTC) #10
pthatcher2
https://codereview.chromium.org/1309543004/diff/20001/chrome/browser/renderer_preferences_util.cc File chrome/browser/renderer_preferences_util.cc (right): https://codereview.chromium.org/1309543004/diff/20001/chrome/browser/renderer_preferences_util.cc#newcode49 chrome/browser/renderer_preferences_util.cc:49: pref_service->GetBoolean(prefs::kWebRTCUdpTransportEnabled); kWebRTCNonproxiedUdpTransportEnabled would also work https://codereview.chromium.org/1309543004/diff/20001/content/renderer/media/webrtc/peer_connection_dependency_factory.cc File content/renderer/media/webrtc/peer_connection_dependency_factory.cc (right): ...
5 years, 3 months ago (2015-08-26 18:25:39 UTC) #11
guoweis_left_chromium
On 2015/08/26 18:25:39, pthatcher2 wrote: > https://codereview.chromium.org/1309543004/diff/20001/chrome/browser/renderer_preferences_util.cc > File chrome/browser/renderer_preferences_util.cc (right): > > https://codereview.chromium.org/1309543004/diff/20001/chrome/browser/renderer_preferences_util.cc#newcode49 > ...
5 years, 3 months ago (2015-08-26 20:57:31 UTC) #13
pthatcher2
lgtm, assuming you fix the comments https://codereview.chromium.org/1309543004/diff/80001/chrome/common/pref_names.cc File chrome/common/pref_names.cc (right): https://codereview.chromium.org/1309543004/diff/80001/chrome/common/pref_names.cc#newcode1203 chrome/common/pref_names.cc:1203: const char kWebRTCNonProxiedUdpTransportEnabled[] ...
5 years, 3 months ago (2015-08-26 21:09:59 UTC) #14
juberti1
https://codereview.chromium.org/1309543004/diff/100001/content/renderer/p2p/port_allocator.h File content/renderer/p2p/port_allocator.h (right): https://codereview.chromium.org/1309543004/diff/100001/content/renderer/p2p/port_allocator.h#newcode38 content/renderer/p2p/port_allocator.h:38: // Disable TCP-based transport when set to false. This ...
5 years, 3 months ago (2015-08-27 00:21:20 UTC) #16
pthatcher2
https://codereview.chromium.org/1309543004/diff/100001/content/renderer/p2p/port_allocator.h File content/renderer/p2p/port_allocator.h (right): https://codereview.chromium.org/1309543004/diff/100001/content/renderer/p2p/port_allocator.h#newcode38 content/renderer/p2p/port_allocator.h:38: // Disable TCP-based transport when set to false. On ...
5 years, 3 months ago (2015-08-27 16:59:09 UTC) #17
guoweis_left_chromium
On 2015/08/27 16:59:09, pthatcher2 wrote: > https://codereview.chromium.org/1309543004/diff/100001/content/renderer/p2p/port_allocator.h > File content/renderer/p2p/port_allocator.h (right): > > https://codereview.chromium.org/1309543004/diff/100001/content/renderer/p2p/port_allocator.h#newcode38 > ...
5 years, 3 months ago (2015-08-27 17:21:46 UTC) #18
chromium-reviews
Guowei and I drew a diagram together. I was wrong about this. But he realized ...
5 years, 3 months ago (2015-08-27 18:54:07 UTC) #19
juberti
On 2015/08/27 18:54:07, chromium-reviews wrote: > Guowei and I drew a diagram together. I was ...
5 years, 3 months ago (2015-08-27 18:57:30 UTC) #20
guoweis_left_chromium
On 2015/08/27 18:57:30, juberti wrote: > On 2015/08/27 18:54:07, chromium-reviews wrote: > > Guowei and ...
5 years, 3 months ago (2015-08-27 22:20:32 UTC) #22
Nico
chrome/ lgtm
5 years, 3 months ago (2015-08-28 04:01:47 UTC) #24
guoweis_left_chromium
creis@chromium.org: Please review changes in content/public/common/*
5 years, 3 months ago (2015-08-28 04:08:15 UTC) #26
Sergey Ulanov
https://codereview.chromium.org/1309543004/diff/160001/content/renderer/p2p/port_allocator.cc File content/renderer/p2p/port_allocator.cc (right): https://codereview.chromium.org/1309543004/diff/160001/content/renderer/p2p/port_allocator.cc#newcode41 content/renderer/p2p/port_allocator.cc:41: cricket::PORTALLOCATOR_DISABLE_UDP_RELAY; So these flags disable all UDP traffic. I'm ...
5 years, 3 months ago (2015-08-28 15:21:27 UTC) #27
guoweis_left_chromium
On 2015/08/28 15:21:27, Sergey Ulanov wrote: > https://codereview.chromium.org/1309543004/diff/160001/content/renderer/p2p/port_allocator.cc > File content/renderer/p2p/port_allocator.cc (right): > > https://codereview.chromium.org/1309543004/diff/160001/content/renderer/p2p/port_allocator.cc#newcode41 ...
5 years, 3 months ago (2015-08-28 15:57:56 UTC) #28
Sergey Ulanov
lgtm
5 years, 3 months ago (2015-08-28 16:54:24 UTC) #29
Charlie Reis
content/public/common LGTM with nit. https://codereview.chromium.org/1309543004/diff/180001/content/public/common/renderer_preferences.h File content/public/common/renderer_preferences.h (right): https://codereview.chromium.org/1309543004/diff/180001/content/public/common/renderer_preferences.h#newcode102 content/public/common/renderer_preferences.h:102: // Set to true to ...
5 years, 3 months ago (2015-08-28 17:19:21 UTC) #30
guoweis_left_chromium
On 2015/08/28 17:19:21, Charlie Reis wrote: > content/public/common LGTM with nit. > > https://codereview.chromium.org/1309543004/diff/180001/content/public/common/renderer_preferences.h > ...
5 years, 3 months ago (2015-08-28 17:24:46 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309543004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309543004/220001
5 years, 3 months ago (2015-08-28 17:25:05 UTC) #34
juberti
lgtm for overall design
5 years, 3 months ago (2015-08-28 17:25:18 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/127673)
5 years, 3 months ago (2015-08-28 17:39:14 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309543004/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309543004/260001
5 years, 3 months ago (2015-08-28 18:10:25 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/75355)
5 years, 3 months ago (2015-08-28 18:31:19 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309543004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309543004/280001
5 years, 3 months ago (2015-08-28 21:37:13 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/46402)
5 years, 3 months ago (2015-08-28 23:47:56 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309543004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309543004/280001
5 years, 3 months ago (2015-08-28 23:49:46 UTC) #50
commit-bot: I haz the power
Committed patchset #11 (id:280001)
5 years, 3 months ago (2015-08-29 01:33:38 UTC) #51
commit-bot: I haz the power
5 years, 3 months ago (2015-08-29 01:34:12 UTC) #52
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/a84ace48ac5c7c257913ce4f6ed9ab88d7eb9dca
Cr-Commit-Position: refs/heads/master@{#346294}

Powered by Google App Engine
This is Rietveld 408576698