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

Unified Diff: lib/subscriptionClasses.js

Issue 29790555: Issue 6671 - Introduce trusted subscriptions (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Make user's own filters trusted Created May 25, 2018, 6:41 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 | « lib/filterListener.js ('k') | test/filterListener.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/subscriptionClasses.js
===================================================================
--- a/lib/subscriptionClasses.js
+++ b/lib/subscriptionClasses.js
@@ -47,16 +47,22 @@
{
/**
* Download location of the subscription
* @type {string}
*/
url: null,
/**
+ * Whether the subscription is trusted.
+ * @type {boolean}
+ */
+ trusted: false,
+
+ /**
* Filters contained in the filter subscription
* @type {Filter[]}
*/
filters: null,
_title: null,
_fixedTitle: false,
_disabled: false,
@@ -237,16 +243,21 @@
function SpecialSubscription(url, title)
{
Subscription.call(this, url, title);
}
exports.SpecialSubscription = SpecialSubscription;
SpecialSubscription.prototype = extend(Subscription, {
/**
+ * @see Subscription.trusted
+ */
+ trusted: true,
+
+ /**
* Filter types that should be added to this subscription by default
* (entries should correspond to keys in SpecialSubscription.defaultsMap).
* @type {string[]}
*/
defaults: null,
/**
* Tests whether a filter should be added to this group by default
« no previous file with comments | « lib/filterListener.js ('k') | test/filterListener.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld