summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2019-07-15 14:43:13 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2019-07-15 14:43:13 +0800
commitc4bd6040ee551652b6f482a2e93b5244d572a366 (patch)
tree87620415f0ff0bf739e1ce43ff4fc605a61beb5a
parentee33f35b324110857b2854b30dd37936b2090e58 (diff)
downloadUXP-c4bd6040ee551652b6f482a2e93b5244d572a366.tar
UXP-c4bd6040ee551652b6f482a2e93b5244d572a366.tar.gz
UXP-c4bd6040ee551652b6f482a2e93b5244d572a366.tar.lz
UXP-c4bd6040ee551652b6f482a2e93b5244d572a366.tar.xz
UXP-c4bd6040ee551652b6f482a2e93b5244d572a366.zip
[BASILISK] A prompt should be shown for new foreign add-ons on start up
- Follow up to: 2cbbc5de4596ef3436685fa3316eeed9af700249 and #937 - Should be `RecentWindow.getMostRecentBrowserWindow()` instead of `this.getMostRecentBrowserWindow()`.
-rw-r--r--application/basilisk/components/nsBrowserGlue.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/basilisk/components/nsBrowserGlue.js b/application/basilisk/components/nsBrowserGlue.js
index d29009b13..ad0b7ed7f 100644
--- a/application/basilisk/components/nsBrowserGlue.js
+++ b/application/basilisk/components/nsBrowserGlue.js
@@ -1074,7 +1074,7 @@ BrowserGlue.prototype = {
// them to the user.
let changedIDs = AddonManager.getStartupChanges(AddonManager.STARTUP_CHANGE_INSTALLED);
if (changedIDs.length > 0) {
- let win = this.getMostRecentBrowserWindow();
+ let win = RecentWindow.getMostRecentBrowserWindow();
AddonManager.getAddonsByIDs(changedIDs, function(aAddons) {
aAddons.forEach(function(aAddon) {
// If the add-on isn't user disabled or can't be enabled then skip it.