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

Issue 29800589: Noissue - Avoid setting ActiveFilter.domainSource (Closed)

Created:
June 6, 2018, 12:54 p.m. by Manish Jethani
Modified:
June 9, 2018, 10:35 a.m.
Reviewers:
sergei, kzar
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Noissue - Avoid setting ActiveFilter.domainSource

Patch Set 1 #

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

Messages

Total messages: 7
Manish Jethani
June 6, 2018, 12:54 p.m. (2018-06-06 12:54:22 UTC) #1
Manish Jethani
Patch Set 1 Well this saves another ~1.5 MB. In the default subscriptions (EasyList+AA plus ...
June 6, 2018, 12:55 p.m. (2018-06-06 12:55:46 UTC) #2
kzar
Doesn't this change domainSource from an empty string to undefined? I wonder if that matters.
June 6, 2018, 1:34 p.m. (2018-06-06 13:34:13 UTC) #3
Manish Jethani
On 2018/06/06 13:34:13, kzar wrote: > Doesn't this change domainSource from an empty string to ...
June 6, 2018, 1:38 p.m. (2018-06-06 13:38:59 UTC) #4
kzar
On 2018/06/06 13:38:59, Manish Jethani wrote: > For blocking filters domainSource is null. Shouldn't the ...
June 6, 2018, 1:58 p.m. (2018-06-06 13:58:54 UTC) #5
Manish Jethani
On 2018/06/06 13:58:54, kzar wrote: > On 2018/06/06 13:38:59, Manish Jethani wrote: > > > ...
June 6, 2018, 2:08 p.m. (2018-06-06 14:08:22 UTC) #6
Manish Jethani
June 9, 2018, 10:35 a.m. (2018-06-09 10:35:20 UTC) #7
Message was sent while issue was closed.
On 2018/06/06 14:08:22, Manish Jethani wrote:
> On 2018/06/06 13:58:54, kzar wrote:
> > On 2018/06/06 13:38:59, Manish Jethani wrote:
> > 
> > > For blocking filters domainSource is null.
> > 
> > Shouldn't the doc string be `@param {?string} [domains]` then?
> 
> Brackets means "nullable" so it's correct.

Sorry, I was wrong. It seems you're right, ? (nullable) and [] (optional) are
two different things. Anyway now let's do this as part of the other
documentation fixes, we need to make these kinds of changes in a lots of places.

Powered by Google App Engine
This is Rietveld