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

Unified Diff: chrome/content/ui/filters-subscriptionview.js

Issue 29338626: Issue 3835 - Update dependency on adblockpluscore to revision 2d4888611240 (Closed)
Patch Set: Created March 18, 2016, 2: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 | « chrome/content/ui/filters-subscriptionactions.js ('k') | chrome/content/ui/sendReport.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/filters-subscriptionview.js
===================================================================
--- a/chrome/content/ui/filters-subscriptionview.js
+++ b/chrome/content/ui/filters-subscriptionview.js
@@ -319,9 +319,24 @@ ListManager.allowAcceptableAds = functio
FilterStorage.addSubscription(subscription);
if (subscription instanceof DownloadableSubscription && !subscription.lastDownload)
Synchronizer.execute(subscription);
}
else
FilterStorage.removeSubscription(subscription);
};
+/**
+ * Checks whether Adblock Plus needs to be upgraded in order to support filters
+ * in a particular subscription.
+ */
+ListManager.isUpgradeRequired = function(/**Subscription*/ subscription)
Thomas Greiner 2016/03/18 16:43:22 Where is this being used? In filters.xul (line 249
Wladimir Palant 2016/03/19 18:59:13 Ouch, not sure what happened here - part of the pa
+{
+ if (subscription instanceof DownloadableSubscription && subscription.requiredVersion)
+ {
+ let {addonVersion} = require("info");
+ if (Services.vc.compare(subscription.requiredVersion, addonVersion) > 0)
+ return true;
+ }
+ return false;
+};
+
window.addEventListener("load", ListManager.init, false);
« no previous file with comments | « chrome/content/ui/filters-subscriptionactions.js ('k') | chrome/content/ui/sendReport.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld