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

Issue 1321543002: Enable generation of local host candidate when RTCConfiguration is null. (Closed)

Created:
5 years, 3 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

Enable generation of local host candidate when RTCConfiguration is null. For demo page which doesn't use mic/camera to retain connectivity without stun/turn, it needs localhost candidate. Localhost candidate will only be generated if RTCConfiguration is not specified in the JS RTCPeerConnection ctor. Note that enable_localhost_candidate is only honored when the adapter enumeration is disabled inside webrtc. hangouts use iceServers:[] which will not cause local host generated when multiple_routes disabled. This change depens on ongoing CL https://codereview.chromium.org/1315413004/ BUG=webrtc:4517 Committed: https://crrev.com/e4916a9c873c13e33af1d630dc29fd0205deae27 Cr-Commit-Position: refs/heads/master@{#349315}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -11 lines) Patch
M content/renderer/media/rtc_peer_connection_handler.cc View 1 2 3 4 5 1 chunk +24 lines, -11 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
guoweis_left_chromium
PTAL.
5 years, 3 months ago (2015-08-26 22:31:04 UTC) #2
juberti1
https://codereview.chromium.org/1321543002/diff/1/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/1321543002/diff/1/content/renderer/media/rtc_peer_connection_handler.cc#newcode195 content/renderer/media/rtc_peer_connection_handler.cc:195: webrtc_config->enable_localhost_ice_candidate = true; I think we might also want ...
5 years, 3 months ago (2015-08-26 22:49:45 UTC) #4
guoweis_left_chromium
iceServers:null is not a valid syntax for either FF or chrome. On Wed, Aug 26, ...
5 years, 3 months ago (2015-08-26 22:51:07 UTC) #5
juberti1
On 2015/08/26 22:51:07, guoweis_chromium wrote: > iceServers:null is not a valid syntax for either FF ...
5 years, 3 months ago (2015-08-26 23:11:53 UTC) #6
guoweis_left_chromium
On 2015/08/26 23:11:53, juberti1 wrote: > On 2015/08/26 22:51:07, guoweis_chromium wrote: > > iceServers:null is ...
5 years, 3 months ago (2015-08-27 04:39:45 UTC) #7
guoweis_left_chromium
On 2015/08/27 04:39:45, guoweis_chromium wrote: > On 2015/08/26 23:11:53, juberti1 wrote: > > On 2015/08/26 ...
5 years, 3 months ago (2015-08-27 22:12:24 UTC) #8
juberti
https://codereview.chromium.org/1321543002/diff/20001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/1321543002/diff/20001/content/renderer/media/rtc_peer_connection_handler.cc#newcode199 content/renderer/media/rtc_peer_connection_handler.cc:199: webrtc_config->enable_localhost_ice_candidate = What does this do, exactly?
5 years, 3 months ago (2015-08-28 00:24:49 UTC) #10
guoweis_left_chromium
On 2015/08/28 00:24:49, juberti wrote: > https://codereview.chromium.org/1321543002/diff/20001/content/renderer/media/rtc_peer_connection_handler.cc > File content/renderer/media/rtc_peer_connection_handler.cc (right): > > https://codereview.chromium.org/1321543002/diff/20001/content/renderer/media/rtc_peer_connection_handler.cc#newcode199 > ...
5 years, 3 months ago (2015-08-28 00:27:31 UTC) #11
guoweis_left_chromium
tommi@chromium.org: PTAL. This is depending on the other ongoing change https://codereview.chromium.org/1315413004/
5 years, 3 months ago (2015-09-16 17:31:01 UTC) #13
tommi (sloooow) - chröme
https://codereview.chromium.org/1321543002/diff/60001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/1321543002/diff/60001/content/renderer/media/rtc_peer_connection_handler.cc#newcode188 content/renderer/media/rtc_peer_connection_handler.cc:188: if (!webrtc_config) Is this even possible? maybe we should ...
5 years, 3 months ago (2015-09-16 18:13:40 UTC) #14
guoweis_left_chromium
PTAL. https://codereview.chromium.org/1321543002/diff/60001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/1321543002/diff/60001/content/renderer/media/rtc_peer_connection_handler.cc#newcode188 content/renderer/media/rtc_peer_connection_handler.cc:188: if (!webrtc_config) On 2015/09/16 18:13:40, tommi wrote: > ...
5 years, 3 months ago (2015-09-16 18:51:03 UTC) #15
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/1321543002/diff/80001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/1321543002/diff/80001/content/renderer/media/rtc_peer_connection_handler.cc#newcode190 content/renderer/media/rtc_peer_connection_handler.cc:190: webrtc_config->enable_localhost_ice_candidate = false; It would be OK with ...
5 years, 3 months ago (2015-09-16 19:31:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1321543002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1321543002/100001
5 years, 3 months ago (2015-09-17 00:35:43 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-17 01:53:56 UTC) #20
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/e4916a9c873c13e33af1d630dc29fd0205deae27 Cr-Commit-Position: refs/heads/master@{#349315}
5 years, 3 months ago (2015-09-17 01:54:36 UTC) #21
Nico
5 years, 3 months ago (2015-09-17 04:03:34 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1352753002/ by thakis@chromium.org.

The reason for reverting is: Looks like this might've broken browser_tests on
32-bit linux:
http://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20%28dbg%29...

WebRtcBrowserTest.RunsAudioVideoWebRTCCallInTwoTabs (run #1):

ASSERTION FAILED: !m_storage
../../third_party/WebKit/public/platform/WebPrivatePtr.h(243) : ~WebPrivatePtr
1   0xf5b3b647 blink::failedAssertion(char const*, int, char const*, char
const*)
2   0xf2d690c1
3   0xf2d68dcb
4   0xf2d4dbed
5   0xf2d4d66c
content::RTCPeerConnectionHandler::initialize(blink::WebRTCConfiguration const&,
blink::WebMediaConstraints const&)
6   0xe2ce3d09
7   0xe2ce3846
8   0xe32e2ed9
9   0xe32e21fb
10  0xf005197a
11  0xf0099a00
12  0x5270c15c
13  0x5272d9b6
14  0x52740518
15  0x527402c4
16  0x52740190
17  0x5272da9e
18  0x5272a59f
19  0xf02f1760
20  0xf02f0b64
21  0xeffefe92 v8::Script::Run(v8::Local<v8::Context>)
22  0xe3d0a79c blink::V8ScriptRunner::runCompiledScript(v8::Isolate*,
v8::Local<v8::Script>, blink::ExecutionContext*)
23  0xe3c4f4a6
blink::ScriptController::executeScriptAndReturnValue(v8::Local<v8::Context>,
blink::ScriptSourceCode const&, blink::AccessControlStatus, double*)
24  0xe3c5214d
blink::ScriptController::evaluateScriptInMainWorld(blink::ScriptSourceCode
const&, blink::AccessControlStatus,
blink::ScriptController::ExecuteScriptPolicy, double*)
25  0xe3c524e9
blink::ScriptController::executeScriptInMainWorldAndReturnValue(blink::ScriptSourceCode
const&)
26  0xec860f96
27  0xf29f2b67
content::RenderFrameImpl::OnJavaScriptExecuteRequestForTests(std::basic_string<unsigned
short, base::string16_char_traits, std::allocator<unsigned short> > const&, int,
bool, bool)
28  0xf2a2b98b
29  0xf2a2b829
30  0xf2a181be
31  0xf29ef105 content::RenderFrameImpl::OnMessageReceived(IPC::Message const&)
Received signal 11 SEGV_MAPERR 0000fbadbeef
#0 0x0000eb12f924 base::debug::StackTrace::StackTrace()
#1 0x0000eb12f44b base::debug::(anonymous namespace)::StackDumpSignalHandler()
#2 0x0000f76e5420 ([vdso]+0x41f)
#3 0x0000f5b3b64c blink::failedAssertion()
#4 0x0000f2d690c1 blink::WebPrivatePtr<>::~WebPrivatePtr()
#5 0x0000f2d68dcb blink::WebRTCICEServerArray::~WebRTCICEServerArray()
#6 0x0000f2d4dbed content::(anonymous namespace)::GetNativeRtcConfiguration()
#7 0x0000f2d4d66c content::RTCPeerConnectionHandler::initialize()
#8 0x0000e2ce3d09 blink::RTCPeerConnection::RTCPeerConnection()
#9 0x0000e2ce3846 blink::RTCPeerConnection::create()
#10 0x0000e32e2ed9 blink::RTCPeerConnectionV8Internal::constructor()
#11 0x0000e32e21fb blink::V8RTCPeerConnection::constructorCallback()
#12 0x0000f005197a v8::internal::FunctionCallbackArguments::Call()
#13 0x0000f0099a00 v8::internal::Builtin_HandleApiCallConstruct()
#14 0x00005270c15c <unknown>
#15 0x00005272d9b6 <unknown>
#16 0x000052740518 <unknown>
#17 0x0000527402c4 <unknown>
#18 0x000052740190 <unknown>
#19 0x00005272da9e <unknown>
#20 0x00005272a59f <unknown>
#21 0x0000f02f1760 v8::internal::Invoke()
#22 0x0000f02f0b64 v8::internal::Execution::Call()
#23 0x0000effefe92 v8::Script::Run()
#24 0x0000e3d0a79c blink::V8ScriptRunner::runCompiledScript()
#25 0x0000e3c4f4a6 blink::ScriptController::executeScriptAndReturnValue()
#26 0x0000e3c5214d blink::ScriptController::evaluateScriptInMainWorld()
#27 0x0000e3c524e9
blink::ScriptController::executeScriptInMainWorldAndReturnValue()
#28 0x0000ec860f96 blink::WebLocalFrameImpl::executeScriptAndReturnValue()
#29 0x0000f29f2b67
content::RenderFrameImpl::OnJavaScriptExecuteRequestForTests()
#30 0x0000f2a2b98b
_ZN4base20DispatchToMethodImplIN7content15RenderFrameImplEMS2_FvRKSbItNS_20string16_char_traitsESaItEEibbEJS5_ibbEJLj0ELj1ELj2ELj3EEEEvPT_T0_RKNS_5TupleIJDpT1_EEENS_13IndexSequenceIJXspT2_EEEE
#31 0x0000f2a2b829
_ZN4base16DispatchToMethodIN7content15RenderFrameImplEMS2_FvRKSbItNS_20string16_char_traitsESaItEEibbEJS5_ibbEEEvPT_T0_RKNS_5TupleIJDpT1_EEE
#32 0x0000f2a181be FrameMsg_JavaScriptExecuteRequestForTests::Dispatch<>()
#33 0x0000f29ef105 content::RenderFrameImpl::OnMessageReceived()
#34 0x0000f279d277 content::MessageRouter::RouteMessage()
#35 0x0000f279d1d8 content::MessageRouter::OnMessageReceived()
#36 0x0000f21dd5bc content::ChildThreadImpl::OnMessageReceived()
#37 0x0000e8da2c32 IPC::ChannelProxy::Context::OnDispatchMessage()
#38 0x0000e8da9073 base::internal::RunnableAdapter<>::Run().

Powered by Google App Engine
This is Rietveld 408576698