Bug 1341666 - Allow running a `close` message during an MSG shutdown. r?jesup draft
authorPaul Adenot <paul@paul.cx>
Tue, 07 Mar 2017 16:50:37 +0100
changeset 500669 6616707400259683cde0780a9e1f4a2df89bcae9
parent 499512 ff04d410e74b69acfab17ef7e73e7397602d5a68
child 549667 d37cb2b8c7ee53e3f47799c536af31557c1f229e
push id49753
push userpaul@paul.cx
push dateFri, 17 Mar 2017 10:36:09 +0000
reviewersjesup
bugs1341666
milestone55.0a1
Bug 1341666 - Allow running a `close` message during an MSG shutdown. r?jesup MozReview-Commit-ID: Hqg0porLEXT
dom/media/MediaStreamGraph.cpp
--- 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;