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

Unified Diff: messageResponder.js

Issue 29347939: Issue 4201 - CSS property filter still applied when ABP is disabled everywhere (Closed)
Patch Set: Created July 18, 2016, 3:53 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: messageResponder.js
===================================================================
--- a/messageResponder.js
+++ b/messageResponder.js
@@ -220,17 +220,17 @@
callback(filter instanceof BlockingFilter);
break;
case "filters.get":
if (message.what == "cssproperties")
{
var filters = [];
var checkWhitelisted = require("whitelisting").checkWhitelisted;
- if (!checkWhitelisted(sender.page, sender.frame,
+ if (Prefs.enabled && !checkWhitelisted(sender.page, sender.frame,
RegExpFilter.typeMap.DOCUMENT |
RegExpFilter.typeMap.ELEMHIDE))
{
filters = CSSRules.getRulesForDomain(sender.frame.url.hostname);
filters = filters.map(function(filter)
{
return {
prefix: filter.selectorPrefix,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld