diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-01-28 15:33:57 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-01-28 15:33:57 +0100 |
commit | d6a2deb0c532504bf36d30755460b2486e9473a1 (patch) | |
tree | cb468e972be8b9919b9cb3316fce8debc15ceb17 | |
parent | 2d43b6eee49aafc948be8fae471dda74de7ffc25 (diff) | |
download | UXP-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.
-rw-r--r-- | application/basilisk/components/nsBrowserGlue.js | 4 |
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; } |