summaryrefslogtreecommitdiffstats
path: root/application/basilisk/components
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-01-28 15:33:57 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-01-28 15:33:57 +0100
commitd6a2deb0c532504bf36d30755460b2486e9473a1 (patch)
treecb468e972be8b9919b9cb3316fce8debc15ceb17 /application/basilisk/components
parent2d43b6eee49aafc948be8fae471dda74de7ffc25 (diff)
downloadUXP-d6a2deb0c532504bf36d30755460b2486e9473a1.tar
UXP-d6a2deb0c532504bf36d30755460b2486e9473a1.tar.gz
UXP-d6a2deb0c532504bf36d30755460b2486e9473a1.tar.lz
UXP-d6a2deb0c532504bf36d30755460b2486e9473a1.tar.xz
UXP-d6a2deb0c532504bf36d30755460b2486e9473a1.zip
Add nullcheck for addons (pre-installed webextensions return null)
Tag #937.
Diffstat (limited to 'application/basilisk/components')
-rw-r--r--application/basilisk/components/nsBrowserGlue.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/basilisk/components/nsBrowserGlue.js b/application/basilisk/components/nsBrowserGlue.js
index 3258159b6..c2e215376 100644
--- a/application/basilisk/components/nsBrowserGlue.js
+++ b/application/basilisk/components/nsBrowserGlue.js
@@ -1110,10 +1110,10 @@ BrowserGlue.prototype = {
let disabledAddons = AddonManager.getStartupChanges(AddonManager.STARTUP_CHANGE_DISABLED);
AddonManager.getAddonsByIDs(disabledAddons, (addons) => {
for (let addon of addons) {
- if (addon.type == "experiment")
+ if (addon && addon.type == "experiment")
continue;
- if (addon.signedState <= AddonManager.SIGNEDSTATE_MISSING) {
+ if (addon && addon.signedState <= AddonManager.SIGNEDSTATE_MISSING) {
this._notifyUnsignedAddonsDisabled();
break;
}