Bug 1360448 - Only ignore OPTIONS_TYPE_INLINE_BROWSER instead of ignoring all types which aren't OPTIONS_TYPE_INLINE r=mixedpuppy

MozReview-Commit-ID: Ks3Yryy22lL

--HG--
extra : rebase_source : 7708bddba429871ca02a894fca4e8f1b452ad12c
This commit is contained in:
Matthew Wein 2017-05-10 22:54:40 -04:00
parent 85a8b07474
commit 880ae24e61

View File

@ -225,15 +225,11 @@ var Addons = {
let updateable = (aAddon.permissions & AddonManager.PERM_CAN_UPGRADE) > 0;
let uninstallable = (aAddon.permissions & AddonManager.PERM_CAN_UNINSTALL) > 0;
let optionsURL;
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 optionsURL = aAddon.optionsURL || "";
if (aAddon.optionsType == AddonManager.OPTIONS_TYPE_INLINE_BROWSER) {
// Ignore OPTIONS_TYPE_INLINE_BROWSER until support is added in bug 1302504.
optionsURL = "";
}
let blocked = "";