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:
Chris Pearce 2017-08-09 17:02:52 +08:00
Родитель 94cfcccd38
Коммит 5fdb826497
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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));