Backed out changeset 232069c62626 (bug 1286041)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Tue, 06 Sep 2016 19:07:22 +0200
changeset 354125 6a8fbd7e5e9fe94384a05da1a49d5a008f1133af
parent 354124 73a38f53b9b0e04185335971aeacc4335d53370f
child 354126 83c6065c6f646825990b0779b9820d2da0213bd0
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1286041
milestone51.0a1
backs out232069c626269a71a3c2c0cd5d9cc3d4f2327338
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 232069c62626 (bug 1286041)
dom/media/webaudio/AudioContext.cpp
--- a/dom/media/webaudio/AudioContext.cpp
+++ b/dom/media/webaudio/AudioContext.cpp
@@ -836,25 +836,16 @@ AudioContext::OnStateChanged(void* aProm
   // This can happen if close() was called right after creating the
   // AudioContext, before the context has switched to "running".
   if (mAudioContextState == AudioContextState::Closed &&
       aNewState == AudioContextState::Running &&
       !aPromise) {
     return;
   }
 
-  // This can happen if this is called in reaction to a
-  // MediaStreamGraph shutdown, and a AudioContext was being
-  // suspended at the same time, for example if a page was being
-  // closed.
-  if (mAudioContextState == AudioContextState::Closed &&
-      aNewState == AudioContextState::Suspended) {
-    return;
-  }
-
 #ifndef WIN32 // Bug 1170547
 #ifndef XP_MACOSX
 #ifdef DEBUG
 
   if (!((mAudioContextState == AudioContextState::Suspended &&
        aNewState == AudioContextState::Running)   ||
       (mAudioContextState == AudioContextState::Running   &&
        aNewState == AudioContextState::Suspended) ||