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

Issue 29390575: Issue 5019 - Fixes anti adblock notification not being added on first run (Closed)

Created:
March 21, 2017, 9:59 a.m. by Jon Sonesen
Modified:
March 21, 2017, 2:33 p.m.
CC:
kzar
Visibility:
Public.

Description

Issue 5019

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M lib/antiadblockInit.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
Jon Sonesen
March 21, 2017, 9:59 a.m. (2017-03-21 09:59:52 UTC) #1
Sebastian Noack
LGTM as far as I understand the logic (see my comment on the issue). But ...
March 21, 2017, 10:25 a.m. (2017-03-21 10:25:34 UTC) #2
Thomas Greiner
That makes me wonder why the same logic is implemented in two different ways. i.e. ...
March 21, 2017, 11:14 a.m. (2017-03-21 11:14:19 UTC) #3
Sebastian Noack
On 2017/03/21 11:14:19, Thomas Greiner wrote: > That makes me wonder why the same logic ...
March 21, 2017, 11:34 a.m. (2017-03-21 11:34:20 UTC) #4
Thomas Greiner
March 21, 2017, 12:11 p.m. (2017-03-21 12:11:59 UTC) #5
On 2017/03/21 11:34:20, Sebastian Noack wrote:
> As far as I remember (please correct me if wrong)
> FilterStorage.knownSubscriptions is a persistent cache that leaks every
> subscription that ever have been known at any moment during the run time of
> Adblock Plus.

`filterClasses.knownFilters` is a cache of all filters we have encountered.
`FilterStorage.knownSubscriptions`, however, is a list of all filter lists that
the user has currently installed.

> However, the same handler is called when the subscription is updated, disabled
> or removed. But when the subscription is removed, downloadCount and
> downloadStatus might still indicate that it has been downloaded. So we have to
> additionally check whether it is subscribed.

Good point. For adding the notification we only need to know whether it's
downloaded and disabled but for removing it we need to know whether it's
installed and disabled.

LGTM

Powered by Google App Engine
This is Rietveld