Bug 1341666 - Allow running a `close` message during an MSG shutdown. r?jesup
MozReview-Commit-ID: Hqg0porLEXT
--- a/dom/media/MediaStreamGraph.cpp
+++ b/dom/media/MediaStreamGraph.cpp
@@ -4004,17 +4004,17 @@ MediaStreamGraph::ApplyAudioContextOpera
}
void Run() override
{
mStream->GraphImpl()->ApplyAudioContextOperationImpl(mStream,
mStreams, mAudioContextOperation, mPromise);
}
void RunDuringShutdown() override
{
- MOZ_ASSERT(false, "We should be reviving the graph?");
+ MOZ_ASSERT(aOperation == AudioContextOperation::Close, "We should be reviving the graph?");
}
private:
// We don't need strong references here for the same reason ControlMessage
// doesn't.
nsTArray<MediaStream*> mStreams;
AudioContextOperation mAudioContextOperation;
void* mPromise;