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

Issue 29356270: Issue 4499 - Consider $generichide exceptions when applying element hiding rules (Closed)

Created:
Oct. 6, 2016, 8:52 p.m. by Wladimir Palant
Modified:
Oct. 7, 2016, 12:52 p.m.
Reviewers:
kzar
Base URL:
https://hg.adblockplus.org/adblockplus
Visibility:
Public.

Description

Unfortunately, I completely forgot about $generichide in my previous commit - if a $generichide exception applies the "global" stylesheet shouldn`t be injected at all and the "local" one should be reduced to specific filters only.

Patch Set 1 #

Total comments: 5

Patch Set 2 : Added comment to explain the logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -36 lines) Patch
M lib/child/elemHide.js View 1 3 chunks +35 lines, -23 lines 0 comments Download
M lib/elemHideFF.js View 1 chunk +10 lines, -13 lines 0 comments Download

Messages

Total messages: 7
Wladimir Palant
Oct. 6, 2016, 8:52 p.m. (2016-10-06 20:52:13 UTC) #1
kzar
https://codereview.adblockplus.org/29356270/diff/29356271/lib/child/elemHide.js File lib/child/elemHide.js (right): https://codereview.adblockplus.org/29356270/diff/29356271/lib/child/elemHide.js#newcode347 lib/child/elemHide.js:347: let specificOnly = filter; I don't understand this line, ...
Oct. 7, 2016, 9:30 a.m. (2016-10-07 09:30:21 UTC) #2
Wladimir Palant
https://codereview.adblockplus.org/29356270/diff/29356271/lib/child/elemHide.js File lib/child/elemHide.js (right): https://codereview.adblockplus.org/29356270/diff/29356271/lib/child/elemHide.js#newcode347 lib/child/elemHide.js:347: let specificOnly = filter; On 2016/10/07 09:30:21, kzar wrote: ...
Oct. 7, 2016, 9:37 a.m. (2016-10-07 09:37:50 UTC) #3
kzar
https://codereview.adblockplus.org/29356270/diff/29356271/lib/child/elemHide.js File lib/child/elemHide.js (right): https://codereview.adblockplus.org/29356270/diff/29356271/lib/child/elemHide.js#newcode347 lib/child/elemHide.js:347: let specificOnly = filter; On 2016/10/07 09:37:49, Wladimir Palant ...
Oct. 7, 2016, 9:53 a.m. (2016-10-07 09:53:34 UTC) #4
kzar
https://codereview.adblockplus.org/29356270/diff/29356271/lib/child/elemHide.js File lib/child/elemHide.js (right): https://codereview.adblockplus.org/29356270/diff/29356271/lib/child/elemHide.js#newcode347 lib/child/elemHide.js:347: let specificOnly = filter; On 2016/10/07 09:53:31, kzar wrote: ...
Oct. 7, 2016, 10:15 a.m. (2016-10-07 10:15:29 UTC) #5
Wladimir Palant
https://codereview.adblockplus.org/29356270/diff/29356271/lib/child/elemHide.js File lib/child/elemHide.js (right): https://codereview.adblockplus.org/29356270/diff/29356271/lib/child/elemHide.js#newcode347 lib/child/elemHide.js:347: let specificOnly = filter; On 2016/10/07 09:53:31, kzar wrote: ...
Oct. 7, 2016, 10:53 a.m. (2016-10-07 10:53:05 UTC) #6
kzar
Oct. 7, 2016, 10:59 a.m. (2016-10-07 10:59:18 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld