Bug 1240423 - part5 : stop_disposable should reset mSuspendState. r=baku
authorAlastor Wu <alwu@mozilla.com>
Wed, 01 Jun 2016 10:26:20 +0800
changeset 338924 702f057449772c278cf067700b1686d41c8d7f67
parent 338923 2d337dda7dd1e2b3b490466e130239602de87c51
child 338925 4ccfcd9c5430e6184efd3a15be0d7873f6df4a2d
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [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));
   }