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

Unified Diff: safari/ext/background.js

Issue 29340571: Issue 3687 - Add experimental support for Safari content blockers (Closed)
Patch Set: Rebased Created May 17, 2016, 9:19 a.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 | « safari/contentBlocking.js ('k') | safari/ext/content.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/ext/background.js
diff --git a/safari/ext/background.js b/safari/ext/background.js
index 38870c0564b31fca093a5cb0c36419a0063014a7..ab15ae4e414c502b7bdb49ef58e0c8da36a04213 100644
--- a/safari/ext/background.js
+++ b/safari/ext/background.js
@@ -420,6 +420,9 @@
event.message = response;
break;
+ case "useContentBlockerAPI":
+ event.message = require("prefs").Prefs["safariContentBlocker"];
+ break;
}
break;
case "request":
« no previous file with comments | « safari/contentBlocking.js ('k') | safari/ext/content.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld