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

Unified Diff: safari/contentBlocking.js

Issue 29829615: Issue 6786 - Switch Safari 12+ users to content blocking API (Closed)
Patch Set: Created July 13, 2018, 6:18 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
« options.js ('K') | « options.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/contentBlocking.js
diff --git a/safari/contentBlocking.js b/safari/contentBlocking.js
index 3f9f7ea4cc4f346f1371632a809f939c3ffb4c7e..c68b251d22b9a65850fb38f58bd2f3e5798ac8e7 100644
--- a/safari/contentBlocking.js
+++ b/safari/contentBlocking.js
@@ -183,7 +183,7 @@ if (contentBlockingSupported)
legacyAPISupported]).then(resolvedValues =>
{
let legacyAPISupported = resolvedValues[2];
- if (!legacyAPISupported)
+ if (!legacyAPISupported || Services.vc.compare(require("info").applicationVersion, "12") >= 0)
Prefs.safariContentBlocker = true;
if (Prefs.safariContentBlocker)
« options.js ('K') | « options.js ('k') | safari/ext/content.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld