[Pkg-mozext-commits] [requestpolicy] 141/280: fix `mayPermRulesBeDisplayed`

David Prévot taffit at moszumanska.debian.org
Sat May 2 20:30:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit 3e995480b69c3ef6540d385a35b73ecb0ced232f
Author: Martin Kimmerle <dev at 256k.de>
Date:   Thu Jan 15 18:17:48 2015 +0100

    fix `mayPermRulesBeDisplayed`
---
 src/content/ui/menu.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/content/ui/menu.js b/src/content/ui/menu.js
index c56fd12..4feaae3 100644
--- a/src/content/ui/menu.js
+++ b/src/content/ui/menu.js
@@ -102,8 +102,8 @@ requestpolicy.menu = (function() {
    * „Should be permanent rules be displayed or hidden?“
    */
   function mayPermRulesBeDisplayed() {
-    return WindowUtils.isWindowPrivate(window) &&
-        !rpPrefBranch.getBoolPref("privateBrowsingPermanentWhitelisting");
+    return WindowUtils.isWindowPrivate(window) === false ||
+        rpPrefBranch.getBoolPref("privateBrowsingPermanentWhitelisting");
   }
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list