Bug 1524065 - part3 : remove unused message. r=baku
authoralwu <alwu@mozilla.com>
Tue, 19 Mar 2019 18:45:37 +0000
changeset 465166 bc864bb5cd2bfa0f6b76eba69ee2cbc07d39643a
parent 465165 94f8d2ce7f8cacdf1db59508436a084b6b80d2b8
child 465167 1976c178f2d19b040ca3d092ac2a877c80491b33
push id35732
push useropoprus@mozilla.com
push dateWed, 20 Mar 2019 10:52:37 +0000
treeherdermozilla-central@708979f9c3f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1524065
milestone68.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 1524065 - part3 : remove unused message. r=baku `resumeMedia` is used for resuming delayed autoplay, which have been replaced by notifying via the browsing context. Differential Revision: https://phabricator.services.mozilla.com/D18139
toolkit/actors/AudioPlaybackChild.jsm
--- a/toolkit/actors/AudioPlaybackChild.jsm
+++ b/toolkit/actors/AudioPlaybackChild.jsm
@@ -29,24 +29,16 @@ class AudioPlaybackChild extends ActorCh
         utils.mediaSuspend = suspendTypes.NONE_SUSPENDED;
         break;
       case "mediaControlPaused":
         utils.mediaSuspend = suspendTypes.SUSPENDED_PAUSE_DISPOSABLE;
         break;
       case "mediaControlStopped":
         utils.mediaSuspend = suspendTypes.SUSPENDED_STOP_DISPOSABLE;
         break;
-      case "resumeMedia":
-        // User has clicked the tab audio indicator to play a delayed
-        // media. That's clear user intent to play, so gesture activate
-        // the content document tree so that the block-autoplay logic
-        // allows the media to autoplay.
-        this.content.document.notifyUserGestureActivation();
-        utils.mediaSuspend = suspendTypes.NONE_SUSPENDED;
-        break;
       default:
         dump("Error : wrong media control msg!\n");
         break;
     }
   }
 
   observe(subject, topic, data) {
     if (topic === "audio-playback") {