diff --git a/toolkit/components/extensions/WebExtensionPolicy.cpp b/toolkit/components/extensions/WebExtensionPolicy.cpp index 39154afd50b7..f27241b5a5a1 100644 --- a/toolkit/components/extensions/WebExtensionPolicy.cpp +++ b/toolkit/components/extensions/WebExtensionPolicy.cpp @@ -149,7 +149,7 @@ WebExtensionPolicy::WebExtensionPolicy(GlobalObject& aGlobal, } MatchPatternOptions options; - options.mRestrictSchemes = HasPermission(nsGkAtoms::mozillaAddons); + options.mRestrictSchemes = !HasPermission(nsGkAtoms::mozillaAddons); mHostPermissions = ParseMatches(aGlobal, aInit.mAllowedOrigins, options, ErrorBehavior::CreateEmptyPattern, aRv);