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

Issue 29757591: Issue 6562 - Remove filter keys from the element hiding code (Closed)

Created:
April 20, 2018, 6:41 p.m. by kzar
Modified:
May 4, 2018, 1:32 p.m.
Reviewers:
Manish Jethani
CC:
sergei
Visibility:
Public.

Description

Issue 6562 - Remove filter keys from the element hiding code

Patch Set 1 #

Total comments: 8

Patch Set 2 : Avoid adding duplicate hiding filters #

Total comments: 15

Patch Set 3 : Addressed nits #

Total comments: 12

Patch Set 4 : Don't note if a filter is genericly disabled #

Patch Set 5 : Only note excluded filters and only if the domain isn't "" #

Patch Set 6 : Avoid checking currentDomain == "" more than necessary #

Total comments: 6

Patch Set 7 : Address some final feedback #

Total comments: 2

Patch Set 8 : == instead of === #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -114 lines) Patch
M lib/elemHide.js View 1 2 3 4 5 6 7 7 chunks +71 lines, -106 lines 0 comments Download
M test/filterListener.js View 1 2 3 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 22
kzar
Patch Set 1 I've checked and the performance seems about the same, but my test ...
April 20, 2018, 6:46 p.m. (2018-04-20 18:46:40 UTC) #1
kzar
https://codereview.adblockplus.org/29757591/diff/29757592/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29757592/lib/elemHide.js#newcode30 lib/elemHide.js:30: * @type {Map.<string,Map.<Filter,boolean>>} I am unsure about this one. ...
April 20, 2018, 6:52 p.m. (2018-04-20 18:52:38 UTC) #2
Manish Jethani
https://codereview.adblockplus.org/29757591/diff/29757592/lib/elemHide.js File lib/elemHide.js (left): https://codereview.adblockplus.org/29757591/diff/29757592/lib/elemHide.js#oldcode142 lib/elemHide.js:142: if (keyByFilter.has(filter)) If we already have the filter, we ...
April 21, 2018, 11:11 a.m. (2018-04-21 11:11:57 UTC) #3
kzar
https://codereview.adblockplus.org/29757591/diff/29757592/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29757592/lib/elemHide.js#newcode30 lib/elemHide.js:30: * @type {Map.<string,Map.<Filter,boolean>>} On 2018/04/21 11:11:57, Manish Jethani wrote: ...
April 21, 2018, 12:01 p.m. (2018-04-21 12:01:00 UTC) #4
Manish Jethani
https://codereview.adblockplus.org/29757591/diff/29757592/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29757592/lib/elemHide.js#newcode30 lib/elemHide.js:30: * @type {Map.<string,Map.<Filter,boolean>>} On 2018/04/21 12:01:00, kzar wrote: > ...
April 22, 2018, 11:35 a.m. (2018-04-22 11:35:42 UTC) #5
kzar
Patch Set 2 : Avoid adding duplicate hiding filters https://codereview.adblockplus.org/29757591/diff/29757592/lib/elemHide.js File lib/elemHide.js (left): https://codereview.adblockplus.org/29757591/diff/29757592/lib/elemHide.js#oldcode142 lib/elemHide.js:142: ...
April 26, 2018, 12:04 p.m. (2018-04-26 12:04:18 UTC) #6
Manish Jethani
https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js#newcode55 lib/elemHide.js:55: * @type {Set.<string>} This is really {Set.<ElemHideBase>} https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js#newcode57 lib/elemHide.js:57: ...
April 27, 2018, 12:39 p.m. (2018-04-27 12:39:37 UTC) #7
Manish Jethani
https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js#newcode261 lib/elemHide.js:261: for (let [filter, isIncluded] of filters) On 2018/04/27 12:39:36, ...
April 27, 2018, 12:41 p.m. (2018-04-27 12:41:58 UTC) #8
kzar
https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js#newcode261 lib/elemHide.js:261: for (let [filter, isIncluded] of filters) On 2018/04/27 12:39:36, ...
April 27, 2018, 5:01 p.m. (2018-04-27 17:01:50 UTC) #9
Manish Jethani
https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js#newcode261 lib/elemHide.js:261: for (let [filter, isIncluded] of filters) On 2018/04/27 17:01:50, ...
April 28, 2018, 4:22 p.m. (2018-04-28 16:22:17 UTC) #10
kzar
Patch Set 3 : Addressed nits https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js#newcode55 lib/elemHide.js:55: * @type {Set.<string>} ...
April 30, 2018, 10:11 a.m. (2018-04-30 10:11:47 UTC) #11
Manish Jethani
https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29762586/lib/elemHide.js#newcode261 lib/elemHide.js:261: for (let [filter, isIncluded] of filters) On 2018/04/30 10:11:46, ...
April 30, 2018, 5:55 p.m. (2018-04-30 17:55:21 UTC) #12
kzar
Patch Set 4 : Don't note if a filter is generically disabled https://codereview.adblockplus.org/29757591/diff/29766555/lib/elemHide.js File lib/elemHide.js ...
May 1, 2018, 4:13 p.m. (2018-05-01 16:13:59 UTC) #13
Manish Jethani
https://codereview.adblockplus.org/29757591/diff/29766555/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29766555/lib/elemHide.js#newcode261 lib/elemHide.js:261: for (let [filter, isIncluded] of filters) On 2018/05/01 16:13:59, ...
May 2, 2018, 12:28 p.m. (2018-05-02 12:28:11 UTC) #14
Manish Jethani
https://codereview.adblockplus.org/29757591/diff/29766555/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29766555/lib/elemHide.js#newcode261 lib/elemHide.js:261: for (let [filter, isIncluded] of filters) On 2018/05/02 12:28:11, ...
May 2, 2018, 12:57 p.m. (2018-05-02 12:57:35 UTC) #15
kzar
Patch Set 5 : Only note excluded filters and only if the domain isn't "" ...
May 2, 2018, 4:45 p.m. (2018-05-02 16:45:39 UTC) #16
Manish Jethani
https://codereview.adblockplus.org/29757591/diff/29766555/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29766555/lib/elemHide.js#newcode272 lib/elemHide.js:272: if (currentDomain == "") On 2018/05/02 16:45:39, kzar wrote: ...
May 2, 2018, 6:11 p.m. (2018-05-02 18:11:41 UTC) #17
Manish Jethani
On 2018/05/02 18:11:41, Manish Jethani wrote: > [...] > > So I think it comes ...
May 3, 2018, 1:15 p.m. (2018-05-03 13:15:34 UTC) #18
kzar
Patch Set 7 : Address some final feedback > So I think these changes are ...
May 3, 2018, 3:36 p.m. (2018-05-03 15:36:01 UTC) #19
Manish Jethani
Looks good to me other than the one comment below. LGTM https://codereview.adblockplus.org/29757591/diff/29766555/lib/elemHide.js File lib/elemHide.js (right): ...
May 4, 2018, 11:59 a.m. (2018-05-04 11:59:56 UTC) #20
kzar
Patch Set 8 : == instead of === https://codereview.adblockplus.org/29757591/diff/29769578/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/29757591/diff/29769578/lib/elemHide.js#newcode163 lib/elemHide.js:163: else ...
May 4, 2018, 12:06 p.m. (2018-05-04 12:06:10 UTC) #21
Manish Jethani
May 4, 2018, 12:07 p.m. (2018-05-04 12:07:23 UTC) #22
LGTM

Powered by Google App Engine
This is Rietveld