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

Issue 29401596: Issue 5094 - Implement support for :has() in chrome extension (Closed)

Created:
April 3, 2017, 2:10 p.m. by hub
Modified:
June 19, 2017, 3:09 p.m.
Reviewers:
Sebastian Noack, kzar
CC:
Felix Dahlke
Base URL:
https://hg.adblockplus.org/adblockpluschrome/
Visibility:
Public.

Description

Issue 5094 - Implement support for :has() in chrome extension

Patch Set 1 #

Total comments: 10

Patch Set 2 : Properly implement the tracer. Improve the element hiding logic. #

Total comments: 8

Patch Set 3 : Changes following the feedback. #

Patch Set 4 : Rebased (conflicts resolved) #

Total comments: 2

Patch Set 5 : Remove no longer needed code. #

Patch Set 6 : Simplify patch to deal with latest version of the implementation #

Total comments: 1

Patch Set 7 : Updated to use the latest version of the core patch #

Patch Set 8 : Rebased. With the proper revision in dependencies. #

Total comments: 4

Patch Set 9 : nits addressed #

Patch Set 10 : Update dependencies to the latest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -27 lines) Patch
M dependencies View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M include.preload.js View 1 2 3 4 5 6 7 8 4 chunks +45 lines, -24 lines 0 comments Download
M lib/filterValidation.js View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 20
hub
April 3, 2017, 2:10 p.m. (2017-04-03 14:10:09 UTC) #1
hub
you need my patch for adblockpluscore (review #29383960). The depency change point to that patch ...
April 3, 2017, 2:13 p.m. (2017-04-03 14:13:14 UTC) #2
Sebastian Noack
Thank a lot, for having a go, Hub. This will also make it much easier ...
April 4, 2017, 10:14 a.m. (2017-04-04 10:14:45 UTC) #3
hub
updating patch. (no syntax change yet) https://codereview.adblockplus.org/29401596/diff/29401597/include.preload.js File include.preload.js (right): https://codereview.adblockplus.org/29401596/diff/29401597/include.preload.js#newcode549 include.preload.js:549: element.style.display = "none"; ...
April 5, 2017, 9:05 a.m. (2017-04-05 09:05:53 UTC) #4
hub
https://codereview.adblockplus.org/29401596/diff/29401597/lib/filterValidation.js File lib/filterValidation.js (right): https://codereview.adblockplus.org/29401596/diff/29401597/lib/filterValidation.js#newcode147 lib/filterValidation.js:147: !isValidCSSSelector(filter.selector)) > ok. this will need to have changes ...
April 5, 2017, 1:18 p.m. (2017-04-05 13:18:43 UTC) #5
Sebastian Noack
https://codereview.adblockplus.org/29401596/diff/29401597/lib/filterValidation.js File lib/filterValidation.js (right): https://codereview.adblockplus.org/29401596/diff/29401597/lib/filterValidation.js#newcode147 lib/filterValidation.js:147: !isValidCSSSelector(filter.selector)) On 2017/04/05 13:18:43, hub wrote: > > > ...
April 5, 2017, 2:58 p.m. (2017-04-05 14:58:49 UTC) #6
hub
https://codereview.adblockplus.org/29401596/diff/29401597/lib/filterValidation.js File lib/filterValidation.js (right): https://codereview.adblockplus.org/29401596/diff/29401597/lib/filterValidation.js#newcode147 lib/filterValidation.js:147: !isValidCSSSelector(filter.selector)) On 2017/04/05 14:58:49, Sebastian Noack wrote: > On ...
April 5, 2017, 3:44 p.m. (2017-04-05 15:44:57 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29401596/diff/29401597/lib/filterValidation.js File lib/filterValidation.js (right): https://codereview.adblockplus.org/29401596/diff/29401597/lib/filterValidation.js#newcode147 lib/filterValidation.js:147: !isValidCSSSelector(filter.selector)) On 2017/04/05 15:44:57, hub wrote: > On 2017/04/05 ...
April 5, 2017, 4:08 p.m. (2017-04-05 16:08:28 UTC) #8
hub
https://codereview.adblockplus.org/29401596/diff/29403560/include.preload.js File include.preload.js (right): https://codereview.adblockplus.org/29401596/diff/29403560/include.preload.js#newcode219 include.preload.js:219: hideElements(filters) On 2017/04/05 14:58:49, Sebastian Noack wrote: > The ...
April 6, 2017, 10:15 a.m. (2017-04-06 10:15:20 UTC) #9
hub
> I see, nesting might become ugly, mostly because of quotes as far as I ...
April 6, 2017, 10:25 a.m. (2017-04-06 10:25:13 UTC) #10
Sebastian Noack
https://codereview.adblockplus.org/29401596/diff/29405640/include.preload.js File include.preload.js (right): https://codereview.adblockplus.org/29401596/diff/29405640/include.preload.js#newcode220 include.preload.js:220: matchedSelectors.push(filter.replace(/^.*?##/, "")); This is essentially dead code. Now after ...
April 7, 2017, 1:14 p.m. (2017-04-07 13:14:48 UTC) #11
hub
https://codereview.adblockplus.org/29401596/diff/29405640/include.preload.js File include.preload.js (right): https://codereview.adblockplus.org/29401596/diff/29405640/include.preload.js#newcode220 include.preload.js:220: matchedSelectors.push(filter.replace(/^.*?##/, "")); On 2017/04/07 13:14:47, Sebastian Noack wrote: > ...
April 7, 2017, 3:50 p.m. (2017-04-07 15:50:01 UTC) #12
Sebastian Noack
The integration in the content script looks good to me now. Thanks. Now we just ...
April 8, 2017, 2:47 p.m. (2017-04-08 14:47:55 UTC) #13
kzar
(Please could you Cc me on platform issues / code reviews?) https://codereview.adblockplus.org/29401596/diff/29429613/lib/filterValidation.js File lib/filterValidation.js (right): ...
May 29, 2017, 3:25 p.m. (2017-05-29 15:25:58 UTC) #14
hub
The dependencies will need to be update when the patch land on adblockpluscore. I have ...
June 1, 2017, 6:26 p.m. (2017-06-01 18:26:30 UTC) #15
hub
You can use the patch as is. I have been for a while. Ready for ...
June 14, 2017, 2:22 a.m. (2017-06-14 02:22:33 UTC) #16
kzar
https://codereview.adblockplus.org/29401596/diff/29464699/dependencies File dependencies (right): https://codereview.adblockplus.org/29401596/diff/29464699/dependencies#newcode5 dependencies:5: adblockpluscore = adblockpluscore hg:d3cd9c1c85e4 git:57a2198 Quite a lot of ...
June 14, 2017, 10:20 a.m. (2017-06-14 10:20:30 UTC) #17
hub
patch updated. (also issue updated with the list of changes from core this pulls) https://codereview.adblockplus.org/29401596/diff/29464699/dependencies ...
June 14, 2017, 3:49 p.m. (2017-06-14 15:49:27 UTC) #18
hub
patch updated to the latest dependencies.
June 19, 2017, 2:13 p.m. (2017-06-19 14:13:36 UTC) #19
Sebastian Noack
June 19, 2017, 2:21 p.m. (2017-06-19 14:21:01 UTC) #20
LGTM

Powered by Google App Engine
This is Rietveld