Bug 1411977 - Part 6: Don't unwind the stack when firing onsignalingstatechange. r=drno

MozReview-Commit-ID: 5qAlxKFzKQk

--HG--
extra : rebase_source : 6757a3c16e974cf9ebd5c1216c40bd25369880e5
This commit is contained in:
Byron Campen [:bwc] 2018-01-25 10:09:17 -06:00
parent be3a417b19
commit 4cfe4f3aa5

View File

@ -3212,13 +3212,9 @@ void PeerConnectionImpl::IceConnectionStateChange(
if (!pco) {
return;
}
WrappableJSErrorResult rv;
RUN_ON_THREAD(mThread,
WrapRunnable(pco,
&PeerConnectionObserver::OnStateChange,
PCObserverStateType::IceConnectionState,
rv, static_cast<JSCompartment*>(nullptr)),
NS_DISPATCH_NORMAL);
pco->OnStateChange(PCObserverStateType::IceConnectionState, rv);
}
void