[tbb-commits] [tor-browser/tor-browser-60.1.0esr-8.0-1] Bug 1474306 - Fix typo in the extension optionsType handler. r=Mossop

gk at torproject.org gk at torproject.org
Mon Jul 30 11:49:58 UTC 2018


commit 63bb7813511ad99ecbbbc7f0fb610718847ff108
Author: Igor Oliveira <igt0 at torproject.org>
Date:   Mon Jul 9 07:24:00 2018 +0300

    Bug 1474306 - Fix typo in the extension optionsType handler. r=Mossop
    
    AddonManager.OPTIONS_INLINE_BROWSER was replaced by
    AddonManager.OPTIONS_TYPE_INLINE_BROWSER.
---
 toolkit/mozapps/extensions/internal/XPIInstall.jsm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toolkit/mozapps/extensions/internal/XPIInstall.jsm b/toolkit/mozapps/extensions/internal/XPIInstall.jsm
index 2fc1d7edbe80..659d97616dc6 100644
--- a/toolkit/mozapps/extensions/internal/XPIInstall.jsm
+++ b/toolkit/mozapps/extensions/internal/XPIInstall.jsm
@@ -560,7 +560,7 @@ async function loadManifestFromRDF(aUri, aStream) {
     addon.hasEmbeddedWebExtension = getRDFProperty(ds, root, "hasEmbeddedWebExtension") == "true";
 
     if (addon.optionsType &&
-        addon.optionsType != AddonManager.OPTIONS_INLINE_BROWSER &&
+        addon.optionsType != AddonManager.OPTIONS_TYPE_INLINE_BROWSER &&
         addon.optionsType != AddonManager.OPTIONS_TYPE_TAB) {
       throw new Error("Install manifest specifies unknown optionsType: " + addon.optionsType);
     }





More information about the tbb-commits mailing list