Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: background.js

Issue 29329677: Issue 2396 - Add CSS property filter message responder (Closed)
Patch Set: Avoid breaking the background.html test page Created Nov. 3, 2015, 4:16 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | messageResponder.js » ('j') | messageResponder.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
diff --git a/background.js b/background.js
index ff1f2d471a08c7b90e6b839336086bf0c3c30755..b1feac0b603930aec299c8501c000c0fcbadba8c 100644
--- a/background.js
+++ b/background.js
@@ -63,7 +63,7 @@
Prefs: {
"subscriptions_exceptionsurl": "https://easylist-downloads.adblockplus.org/exceptionrules.txt"
}
- }
+ };
modules.subscriptionClasses = {
Subscription: function(url)
@@ -164,9 +164,8 @@
modules.filterValidation =
{
- parseFilter: function(text)
+ parseFilter: function(text)
{
-
if (params.filterError)
return {error: "Invalid filter"};
return {filter: modules.filterClasses.Filter.fromText(text)};
@@ -199,6 +198,12 @@
}
};
+ modules.cssRules = {
+ CSSRules: {
+ getRulesForDomain: function(domain, specificOnly) { }
+ }
+ };
+
var notifierListeners = [];
modules.filterNotifier = {
FilterNotifier: {
@@ -246,7 +251,7 @@
var filters = [
"@@||alternate.de^$document",
- "@@||der.postillion.com^$document",
+ "@@||der.postillion.com^$document",
"@@||taz.de^$document",
"@@||amazon.de^$document",
"||biglemon.am/bg_poster/banner.jpg",
@@ -281,7 +286,7 @@
global.seenDataCorruption = params.seenDataCorruption;
global.filterlistsReinitialized = params.filterlistsReinitialized;
-
+
if (params.addSubscription)
{
// We don't know how long it will take for the page to fully load
« no previous file with comments | « no previous file | messageResponder.js » ('j') | messageResponder.js » ('J')

Powered by Google App Engine
This is Rietveld