Bug 1240423 - part5 : stop_disposable should reset mSuspendState. r=baku
authorAlastor Wu <alwu@mozilla.com>
Wed, 01 Jun 2016 10:26:20 +0800
changeset 340937 702f057449772c278cf067700b1686d41c8d7f67
parent 340936 2d337dda7dd1e2b3b490466e130239602de87c51
child 340938 4ccfcd9c5430e6184efd3a15be0d7873f6df4a2d
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1240423
milestone49.0a1
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
Bug 1240423 - part5 : stop_disposable should reset mSuspendState. r=baku MozReview-Commit-ID: 1x1QdvJEw8J
dom/html/HTMLMediaElement.cpp
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -5098,16 +5098,17 @@ HTMLMediaElement::WindowSuspendChanged(S
     case nsISuspendedTypes::SUSPENDED_PAUSE:
     case nsISuspendedTypes::SUSPENDED_PAUSE_DISPOSABLE:
       PauseByAudioChannel(aSuspend);
       break;
     case nsISuspendedTypes::SUSPENDED_BLOCK:
       BlockByAudioChannel();
       break;
     case nsISuspendedTypes::SUSPENDED_STOP_DISPOSABLE:
+      SetAudioChannelSuspended(nsISuspendedTypes::NONE_SUSPENDED);
       Pause();
       break;
     default:
       MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug,
              ("HTMLMediaElement, WindowSuspendChanged, this = %p, "
               "Error : unknown suspended type!\n", this));
   }