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

Unified Diff: lib/ui.js

Issue 5198627827875840: Issue 424 - Anti-adblock filterlist disabled on extension update (Firefox) (Closed)
Patch Set: Created May 5, 2014, 2:30 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: lib/ui.js
===================================================================
--- a/lib/ui.js
+++ b/lib/ui.js
@@ -795,14 +795,17 @@
addAcceptable = false;
}
- // Add "anti-adblock messages" subscription
- let subscription = Subscription.fromURL(Prefs.subscriptions_antiadblockurl);
- if (subscription)
+ // Add "anti-adblock messages" subscription on first run
+ if (Services.vc.compare(prevVersion, "0.0") == 0)
{
- subscription.disabled = true;
- FilterStorage.addSubscription(subscription);
- if (subscription instanceof DownloadableSubscription && !subscription.lastDownload)
- Synchronizer.execute(subscription);
+ let subscription = Subscription.fromURL(Prefs.subscriptions_antiadblockurl);
+ if (subscription)
+ {
+ subscription.disabled = true;
+ FilterStorage.addSubscription(subscription);
+ if (subscription instanceof DownloadableSubscription && !subscription.lastDownload)
+ Synchronizer.execute(subscription);
+ }
}
if (!addSubscription && !addAcceptable)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld