[Pkg-mozext-commits] [adblock-plus] 57/98: Issue 4624 - Element hiding rules should not apply on whitelisted schemes (chrome://, file:/// etc.)

David Prévot taffit at moszumanska.debian.org
Tue Oct 24 01:30:19 UTC 2017


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

taffit pushed a commit to branch master
in repository adblock-plus.

commit 35f7c78f49785b6cd08a30c7c7631937cc7a847d
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Wed Nov 9 09:59:50 2016 +0100

    Issue 4624 - Element hiding rules should not apply on whitelisted schemes (chrome://, file:/// etc.)
---
 lib/elemHideFF.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/elemHideFF.js b/lib/elemHideFF.js
index b9a00b8..71f19c8 100644
--- a/lib/elemHideFF.js
+++ b/lib/elemHideFF.js
@@ -57,7 +57,7 @@ port.on("getSelectorsForDomain", ([domain, specificOnly]) =>
 
 port.on("elemhideEnabled", ({frames, isPrivate}) =>
 {
-  if (!Prefs.enabled)
+  if (!Prefs.enabled || !Policy.isBlockableScheme(frames[0].location))
     return {enabled: false};
 
   let hit = Policy.isFrameWhitelisted(frames, true);

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



More information about the Pkg-mozext-commits mailing list