Bug 1329027 - Fix regression caused by
bug 1300808 r?kmag
MozReview-Commit-ID: CM5cyueJcNk
--- a/mobile/android/chrome/content/aboutAddons.js
+++ b/mobile/android/chrome/content/aboutAddons.js
@@ -220,23 +220,24 @@ var Addons = {
},
_createItemForAddon: function _createItemForAddon(aAddon) {
let appManaged = (aAddon.scope == AddonManager.SCOPE_APPLICATION);
let opType = this._getOpTypeForOperations(aAddon.pendingOperations);
let updateable = (aAddon.permissions & AddonManager.PERM_CAN_UPGRADE) > 0;
let uninstallable = (aAddon.permissions & AddonManager.PERM_CAN_UNINSTALL) > 0;
- // TODO(matt): Add support for OPTIONS_TYPE_INLINE_BROWSER once bug 1302504 lands.
let optionsURL;
- switch (aAddon.optionsType) {
+ switch (parseInt(aAddon.optionsType)) {
case AddonManager.OPTIONS_TYPE_INLINE:
optionsURL = aAddon.optionsURL || "";
break;
default:
+ // Bug 1302504 - Ignore WebExtension options (which are type OPTIONS_TYPE_INLINE_BROWSER)
+ // until options_ui support is added - Bug 1302504.
optionsURL = "";
}
let blocked = "";
switch(aAddon.blocklistState) {
case Ci.nsIBlocklistService.STATE_BLOCKED:
blocked = "blocked";
break;