Bug 1484373: Follow-up: Fix stupid typo. r=bustage
authorKris Maglione <maglione.k@gmail.com>
Fri, 24 Aug 2018 19:22:54 -0700
changeset 491149 d6668c2440278fdc45c2bdc67fd77e3dd0feeaaa
parent 491144 e2e9f54416db3366258a526d9c2e439fc2ee0393
child 491150 0d646dd687bae0081968b5fdabfa39d3b3fffcb3
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1484373
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1484373: Follow-up: Fix stupid typo. r=bustage
toolkit/components/extensions/WebExtensionPolicy.cpp
--- a/toolkit/components/extensions/WebExtensionPolicy.cpp
+++ b/toolkit/components/extensions/WebExtensionPolicy.cpp
@@ -144,17 +144,17 @@ WebExtensionPolicy::WebExtensionPolicy(G
   , mPermissions(new AtomSet(aInit.mPermissions))
 {
   if (!ParseGlobs(aGlobal, aInit.mWebAccessibleResources, mWebAccessiblePaths,
                   aRv)) {
     return;
   }
 
   MatchPatternOptions options;
-  options.mRestrictSchemes = HasPermission(nsGkAtoms::mozillaAddons);
+  options.mRestrictSchemes = !HasPermission(nsGkAtoms::mozillaAddons);
 
   mHostPermissions = ParseMatches(aGlobal, aInit.mAllowedOrigins, options,
                                   ErrorBehavior::CreateEmptyPattern, aRv);
   if (aRv.Failed()) {
     return;
   }
 
   if (!aInit.mBackgroundScripts.IsNull()) {