Bug 1513681 - part3 : rename 'AudibleAutoplayChild' actor r=jaws
☠☠ backed out by 0c02d1f0db78 ☠ ☠
authoralwu <alwu@mozilla.com>
Fri, 21 Dec 2018 19:00:40 +0000
changeset 452106 79a78732c3ac2b91eee4378ba630da3090cccd2e
parent 452105 d0a9422928aec6530c4def97000ef14cbdc5ca91
child 452107 6f52b229d9537e4ecd5eba6a8f93dff55c0e0852
push id75321
push useralwu@mozilla.com
push dateSat, 29 Dec 2018 00:24:14 +0000
treeherderautoland@d24ddb803761 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1513681
milestone66.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 1513681 - part3 : rename 'AudibleAutoplayChild' actor r=jaws Use more proper name for actor which will handle all autoplay related events. Differential Revision: https://phabricator.services.mozilla.com/D14796
toolkit/actors/AudibleAutoplayChild.jsm
toolkit/actors/AutoplayChild.jsm
toolkit/actors/moz.build
toolkit/modules/ActorManagerParent.jsm
rename from toolkit/actors/AudibleAutoplayChild.jsm
rename to toolkit/actors/AutoplayChild.jsm
--- a/toolkit/actors/AudibleAutoplayChild.jsm
+++ b/toolkit/actors/AutoplayChild.jsm
@@ -1,19 +1,19 @@
 /* vim: set ts=2 sw=2 sts=2 et tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 "use strict";
 
-var EXPORTED_SYMBOLS = ["AudibleAutoplayChild"];
+var EXPORTED_SYMBOLS = ["AutoplayChild"];
 
 ChromeUtils.import("resource://gre/modules/ActorChild.jsm");
 
-class AudibleAutoplayChild extends ActorChild {
+class AutoplayChild extends ActorChild {
   handleEvent(event) {
     if (event.type == "AudibleAutoplayMediaOccurred") {
       this.mm.sendAsyncMessage("AudibleAutoplayMediaOccurred");
       return;
     }
     if (event.type == "GloballyAutoplayBlocked") {
       this.mm.sendAsyncMessage("GloballyAutoplayBlocked");
       return;
--- a/toolkit/actors/moz.build
+++ b/toolkit/actors/moz.build
@@ -6,18 +6,18 @@
 
 with Files('**'):
     BUG_COMPONENT = ('Toolkit', 'General')
 
 with Files('Finder*.jsm'):
     BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
 
 FINAL_TARGET_FILES.actors += [
-    'AudibleAutoplayChild.jsm',
     'AudioPlaybackChild.jsm',
+    'AutoplayChild.jsm',
     'BrowserChild.jsm',
     'ControllersChild.jsm',
     'DateTimePickerChild.jsm',
     'ExtFindChild.jsm',
     'FindBarChild.jsm',
     'FinderChild.jsm',
     'PopupBlockingChild.jsm',
     'PrintingChild.jsm',
--- a/toolkit/modules/ActorManagerParent.jsm
+++ b/toolkit/modules/ActorManagerParent.jsm
@@ -96,39 +96,39 @@
 var EXPORTED_SYMBOLS = ["ActorManagerParent"];
 
 ChromeUtils.import("resource://gre/modules/ExtensionUtils.jsm");
 ChromeUtils.import("resource://gre/modules/Services.jsm");
 
 const {DefaultMap} = ExtensionUtils;
 
 let ACTORS = {
-  AudibleAutoplay: {
-    child: {
-      module: "resource://gre/actors/AudibleAutoplayChild.jsm",
-      events: {
-        "AudibleAutoplayMediaOccurred": {},
-        "GloballyAutoplayBlocked": {},
-      },
-    },
-  },
-
   AudioPlayback: {
     child: {
       module: "resource://gre/actors/AudioPlaybackChild.jsm",
       messages: [
         "AudioPlayback",
         "TemporaryPermissionChanged",
       ],
       observers: [
         "audio-playback",
       ],
     },
   },
 
+  Autoplay: {
+    child: {
+      module: "resource://gre/actors/AutoplayChild.jsm",
+      events: {
+        "AudibleAutoplayMediaOccurred": {},
+        "GloballyAutoplayBlocked": {},
+      },
+    },
+  },
+
   Browser: {
     child: {
       module: "resource://gre/actors/BrowserChild.jsm",
       events: {
         "DOMWindowClose": {},
       },
 
       messages: [