Bug 1513681 - part3 : rename 'AudibleAutoplayChild' actor r=jaws
authorAlastor Wu <alwu@mozilla.com>
Fri, 04 Jan 2019 18:35:09 +0000
changeset 452606 239ede916b0dc40a234c097fef5fecb8beb25c30
parent 452605 d99f4d17ea923a3465e71b556b126ad8db30e6e0
child 452607 9378c3b5ad2dc2d50774b6dc93164dda712da17d
push id75510
push useralwu@mozilla.com
push dateSat, 05 Jan 2019 02:07:23 +0000
treeherderautoland@fedf648d3785 [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: [