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

Issue 29670575: Issue 5899 - Use CSS attribute selectors for collapsing media elements (Closed)

Created:
Jan. 16, 2018, 10:28 a.m. by Manish Jethani
Modified:
April 20, 2018, 11:05 a.m.
Reviewers:
Sebastian Noack, kzar
Base URL:
https://hg.adblockplus.org/adblockpluschrome/
Visibility:
Public.

Patch Set 1 #

Total comments: 7

Patch Set 2 : Rebase #

Patch Set 3 : Use CSS attribute selectors for collapsing #

Total comments: 15

Patch Set 4 : Address comments to Patch Set 3 #

Patch Set 5 : Only append new selectors #

Total comments: 2

Patch Set 6 : Do not trace collapsing selectors #

Total comments: 3

Patch Set 7 : Check for "collapsing" group name #

Total comments: 2

Patch Set 8 : Rebase #

Patch Set 9 : Compare child name directly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -11 lines) Patch
M include.preload.js View 1 2 3 4 5 6 7 8 5 chunks +58 lines, -8 lines 0 comments Download
M lib/cssInjection.js View 1 2 3 4 5 6 7 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 20
Manish Jethani
Jan. 16, 2018, 10:28 a.m. (2018-01-16 10:28:20 UTC) #1
Manish Jethani
Patch Set 1 So far we have been using the same element hiding functionality for ...
Jan. 16, 2018, 10:47 a.m. (2018-01-16 10:47:27 UTC) #2
kzar
On 2018/01/16 10:47:27, Manish Jethani wrote: > (Also I think we could switch to the ...
Jan. 24, 2018, 2:37 p.m. (2018-01-24 14:37:23 UTC) #3
Manish Jethani
Changed the implementation now to use CSS attribute selectors. https://codereview.adblockplus.org/29670575/diff/29705555/include.preload.js File include.preload.js (right): https://codereview.adblockplus.org/29670575/diff/29705555/include.preload.js#newcode164 include.preload.js:164: ...
Feb. 22, 2018, 6:55 a.m. (2018-02-22 06:55:06 UTC) #4
kzar
I wonder if the code would be easier to grok if you split isMediaElement out ...
Feb. 26, 2018, 5:18 p.m. (2018-02-26 17:18:59 UTC) #5
Manish Jethani
Patch Set 3 On 2018/02/26 17:18:59, kzar wrote: > I wonder if the code would ...
Feb. 27, 2018, 1:11 p.m. (2018-02-27 13:11:49 UTC) #6
Manish Jethani
On 2018/02/27 13:11:49, Manish Jethani wrote: > Patch Set 3 Uh ... I mean Patch ...
Feb. 27, 2018, 1:12 p.m. (2018-02-27 13:12:11 UTC) #7
kzar
https://codereview.adblockplus.org/29670575/diff/29705555/include.preload.js File include.preload.js (right): https://codereview.adblockplus.org/29670575/diff/29705555/include.preload.js#newcode164 include.preload.js:164: elemhide.addSelectors(Array.from(collapsingSelectors), null, "collapsing"); On 2018/02/22 06:55:06, Manish Jethani wrote: ...
Feb. 27, 2018, 2:18 p.m. (2018-02-27 14:18:39 UTC) #8
Manish Jethani
Patch Set 5: Only append new selectors https://codereview.adblockplus.org/29670575/diff/29705555/include.preload.js File include.preload.js (right): https://codereview.adblockplus.org/29670575/diff/29705555/include.preload.js#newcode164 include.preload.js:164: elemhide.addSelectors(Array.from(collapsingSelectors), null, ...
Feb. 27, 2018, 4 p.m. (2018-02-27 16:00:23 UTC) #9
kzar
LGTM, you want to take a look Sebastian? https://codereview.adblockplus.org/29670575/diff/29710581/lib/cssInjection.js File lib/cssInjection.js (right): https://codereview.adblockplus.org/29670575/diff/29710581/lib/cssInjection.js#newcode104 lib/cssInjection.js:104: let ...
Feb. 27, 2018, 5:25 p.m. (2018-02-27 17:25:23 UTC) #10
Manish Jethani
Patch Set 6: Do not trace collapsing selectors https://codereview.adblockplus.org/29670575/diff/29711587/include.preload.js File include.preload.js (right): https://codereview.adblockplus.org/29670575/diff/29711587/include.preload.js#newcode527 include.preload.js:527: // ...
Feb. 28, 2018, 10:31 a.m. (2018-02-28 10:31:16 UTC) #11
kzar
https://codereview.adblockplus.org/29670575/diff/29711587/include.preload.js File include.preload.js (right): https://codereview.adblockplus.org/29670575/diff/29711587/include.preload.js#newcode527 include.preload.js:527: // Only trace selectors that are based directly on ...
March 2, 2018, 9:37 a.m. (2018-03-02 09:37:28 UTC) #12
Manish Jethani
Patch Set 7: Check for "collapsing" group name https://codereview.adblockplus.org/29670575/diff/29711587/include.preload.js File include.preload.js (right): https://codereview.adblockplus.org/29670575/diff/29711587/include.preload.js#newcode527 include.preload.js:527: // ...
March 2, 2018, 11:09 a.m. (2018-03-02 11:09:36 UTC) #13
Sebastian Noack
Let me know if I miss something, but from a first glance at the latest ...
March 10, 2018, 11:43 p.m. (2018-03-10 23:43:49 UTC) #14
Manish Jethani
On 2018/03/10 23:43:49, Sebastian Noack wrote: > Let me know if I miss something, but ...
March 11, 2018, 12:24 a.m. (2018-03-11 00:24:34 UTC) #15
Sebastian Noack
On 2018/03/11 00:24:34, Manish Jethani wrote: > So I think the point is to avoid ...
March 11, 2018, 1:14 a.m. (2018-03-11 01:14:56 UTC) #16
Manish Jethani
On 2018/03/11 01:14:56, Sebastian Noack wrote: > On 2018/03/11 00:24:34, Manish Jethani wrote: > > ...
March 13, 2018, 2:53 p.m. (2018-03-13 14:53:11 UTC) #17
kzar
Otherwise this LGTM. I read through your discussion and I just wanted to add that ...
April 18, 2018, 2:56 p.m. (2018-04-18 14:56:13 UTC) #18
Manish Jethani
Patch Set 8: Rebase Patch Set 9: Compare child name directly https://codereview.adblockplus.org/29670575/diff/29713555/include.preload.js File include.preload.js (right): ...
April 19, 2018, 9:57 p.m. (2018-04-19 21:57:20 UTC) #19
kzar
April 20, 2018, 10:56 a.m. (2018-04-20 10:56:25 UTC) #20
Extra LGTM

Powered by Google App Engine
This is Rietveld