зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1388668 - Replace NS_DispatchToCurrentThread call with AbstractThread dispatch. r=padenot
We should be dispatching this event to a tab group so that it can be associated with it. MozReview-Commit-ID: FcEQD7cN2Xj --HG-- extra : rebase_source : fbe7c17439a9434ac1c4702f0dd21e8424a7f0c7
This commit is contained in:
Родитель
94cfcccd38
Коммит
5fdb826497
|
@ -406,10 +406,11 @@ AudioDestinationNode::DestroyMediaStream()
|
|||
void
|
||||
AudioDestinationNode::NotifyMainThreadStreamFinished()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_ASSERT(mStream->IsFinished());
|
||||
|
||||
if (mIsOffline) {
|
||||
NS_DispatchToCurrentThread(
|
||||
AbstractMainThread()->Dispatch(
|
||||
NewRunnableMethod("dom::AudioDestinationNode::FireOfflineCompletionEvent",
|
||||
this,
|
||||
&AudioDestinationNode::FireOfflineCompletionEvent));
|
||||
|
|
Загрузка…
Ссылка в новой задаче