[Pkg-mozext-commits] [adblock-plus] 28/87: Issue 3736 - Fixed: Checks for share resources failed

David Prévot taffit at moszumanska.debian.org
Sat Apr 30 17:59:04 UTC 2016


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

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

commit 52aa89449c1a7b88c132dabea7ebe4f579789d65
Author: Thomas Greiner <thomas at adblockplus.org>
Date:   Mon Mar 14 17:28:08 2016 +0100

    Issue 3736 - Fixed: Checks for share resources failed
---
 background.js       | 4 +++-
 messageResponder.js | 5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/background.js b/background.js
index acf4a51..53dbb21 100644
--- a/background.js
+++ b/background.js
@@ -174,12 +174,14 @@
     {
       this.text = text;
       this.disabled = false;
-    }
+    },
+    RegExpFilter: function() {}
   };
   modules.filterClasses.Filter.fromText = function(text)
   {
     return new modules.filterClasses.Filter(text);
   };
+  modules.filterClasses.RegExpFilter.typeMap = Object.create(null);
 
   modules.filterValidation = 
   {
diff --git a/messageResponder.js b/messageResponder.js
index 024830b..ebbeb63 100644
--- a/messageResponder.js
+++ b/messageResponder.js
@@ -192,8 +192,9 @@
         callback(errors);
         break;
       case "filters.blocked":
-        var filter = defaultMatcher.matchesAny(message.url, message.requestType,
-          message.docDomain, message.thirdParty);
+        var filter = defaultMatcher.matchesAny(message.url,
+          RegExpFilter.typeMap[message.requestType], message.docDomain,
+          message.thirdParty);
         callback(filter instanceof BlockingFilter);
         break;
       case "filters.get":

-- 
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