Bug 1510462 - Remove redundant AddonManager definition. r=jaws
authorDão Gottwald <dao@mozilla.com>
Wed, 28 Nov 2018 04:56:39 +0000
changeset 507687 eb60816546795a5fad643951818dbd4ea9b711ea
parent 507686 d0ba364e7190bf47cd2f43033824afba026409a9
child 507688 209ed62867bf0159b4d9a49fdd98bcea43c64287
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1510462
milestone65.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 1510462 - Remove redundant AddonManager definition. r=jaws Differential Revision: https://phabricator.services.mozilla.com/D13157
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -370,30 +370,16 @@ Object.defineProperty(this, "gFindBarPro
 async function gLazyFindCommand(cmd, ...args) {
   let fb = await gFindBarPromise;
   // We could be closed by now, or the tab with XBL binding could have gone away:
   if (fb && fb[cmd]) {
     fb[cmd].apply(fb, args);
   }
 }
 
-Object.defineProperty(this, "AddonManager", {
-  configurable: true,
-  enumerable: true,
-  get() {
-    let tmp = {};
-    ChromeUtils.import("resource://gre/modules/AddonManager.jsm", tmp);
-    return this.AddonManager = tmp.AddonManager;
-  },
-  set(val) {
-    delete this.AddonManager;
-    return this.AddonManager = val;
-  },
-});
-
 
 var gInitialPages = [
   "about:blank",
   "about:newtab",
   "about:home",
   "about:privatebrowsing",
   "about:welcomeback",
   "about:sessionrestore",