Auto-detect subscription type based on serialized URL
Background
See eyeo/adblockplus/adblockpluschrome#43 (closed)
The subscription's type is not detected when the object is created via Subscription.fromObject()
, which is the case when it is being created from serialized data in patterns.ini
.
What to change
Auto-detect subscription type based on serialized URL in patterns.ini
. Modify Subscription.fromObject()
to do the same thing as Subscription.fromURL()
.
Hints for testers
Check if eyeo/adblockplus/adblockpluschrome#43 (closed) is fixed.
Also make sure that snippet filters are not accepted from any non-circumvention lists. e.g. add a random list https://example.com/foo.txt
containing the filter example.com#$#log Hello
and see that, on loading a page from example.com
, Hello
is not printed to the tab's console.
Edited by Manish Jethani