Bug 1580733 - Fix AppConstants module getter, r=evilpie,mconley
authorMartin Stransky <stransky@redhat.com>
Fri, 04 Oct 2019 17:29:03 +0000
changeset 496448 7dd1ac96a354295013e0c78eccf7e880ae645b3f
parent 496447 eb65a610bbf2e712757984efaa88a6bce3d937d0
child 496449 da702db18a1e571c51c6063aec90d9bd4d248253
push id97245
push userbtara@mozilla.com
push dateSat, 05 Oct 2019 15:56:28 +0000
treeherderautoland@7dd1ac96a354 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersevilpie, mconley
bugs1580733
milestone71.0a1
first release with
nightly linux32
7dd1ac96a354 / 71.0a1 / 20191005214618 / files
nightly linux64
7dd1ac96a354 / 71.0a1 / 20191005214618 / files
nightly mac
7dd1ac96a354 / 71.0a1 / 20191005214618 / files
nightly win32
7dd1ac96a354 / 71.0a1 / 20191005214618 / files
nightly win64
7dd1ac96a354 / 71.0a1 / 20191005214618 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1580733 - Fix AppConstants module getter, r=evilpie,mconley Differential Revision: https://phabricator.services.mozilla.com/D47899
toolkit/components/pictureinpicture/PictureInPicture.jsm
--- a/toolkit/components/pictureinpicture/PictureInPicture.jsm
+++ b/toolkit/components/pictureinpicture/PictureInPicture.jsm
@@ -2,25 +2,20 @@
  * 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 = ["PictureInPicture"];
 
 const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
-
-const { XPCOMUtils } = ChromeUtils.import(
-  "resource://gre/modules/XPCOMUtils.jsm"
+const { AppConstants } = ChromeUtils.import(
+  "resource://gre/modules/AppConstants.jsm"
 );
 
-XPCOMUtils.defineLazyModuleGetters(this, {
-  AppConstants: "resource://gre/modules/AppConstants.jsm",
-});
-
 const PLAYER_URI = "chrome://global/content/pictureinpicture/player.xhtml";
 var PLAYER_FEATURES =
   "chrome,titlebar=no,alwaysontop,lockaspectratio,resizable";
 /* Don't use dialog on Gtk as it adds extra border and titlebar to PIP window */
 if (!AppConstants.MOZ_WIDGET_GTK) {
   PLAYER_FEATURES += ",dialog";
 }
 const WINDOW_TYPE = "Toolkit:PictureInPicture";