Bug 1240423 - part5 : stop_disposable should reset mSuspendState. r=baku
authorAlastor Wu <alwu@mozilla.com>
Wed, 01 Jun 2016 10:26:20 +0800
changeset 324400 702f057449772c278cf067700b1686d41c8d7f67
parent 324399 2d337dda7dd1e2b3b490466e130239602de87c51
child 324401 4ccfcd9c5430e6184efd3a15be0d7873f6df4a2d
push id9671
push userraliiev@mozilla.com
push dateMon, 06 Jun 2016 20:27:52 +0000
treeherdermozilla-aurora@cea65ca3d0bd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1240423
milestone49.0a1
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));
   }