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

Issue 5504296699297792: Issue 1802 - Fix element hiding filters with multiple CSS selectors when using shadow DOM (Closed)

Created:
Jan. 14, 2015, 10:27 a.m. by Sebastian Noack
Modified:
Jan. 22, 2015, 9:57 a.m.
Reviewers:
kzar, Wladimir Palant
Visibility:
Public.

Description

Issue 1802 - Fix element hiding filters with multiple CSS selectors when using shadow DOM

Patch Set 1 : #

Patch Set 2 : Added comment explaining regex #

Total comments: 3

Patch Set 3 : Replaced regex with state machine #

Total comments: 5

Patch Set 4 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -3 lines) Patch
M include.preload.js View 1 2 3 2 chunks +34 lines, -3 lines 0 comments Download

Messages

Total messages: 9
Sebastian Noack
Jan. 14, 2015, 10:32 a.m. (2015-01-14 10:32:28 UTC) #1
kzar
On 2015/01/14 10:32:28, Sebastian Noack wrote: Thanks for adding the comment, I at least understand ...
Jan. 15, 2015, 1:18 p.m. (2015-01-15 13:18:22 UTC) #2
Sebastian Noack
On 2015/01/15 13:18:22, kzar wrote: > On 2015/01/14 10:32:28, Sebastian Noack wrote: > > Thanks ...
Jan. 19, 2015, 7 p.m. (2015-01-19 19:00:52 UTC) #3
Wladimir Palant
http://codereview.adblockplus.org/5504296699297792/diff/5750085036015616/include.preload.js File include.preload.js (right): http://codereview.adblockplus.org/5504296699297792/diff/5750085036015616/include.preload.js#newcode190 include.preload.js:190: selectors[i] = selectors[i].replace(/(\s*)((?:[^,"']|"(?:\\"|[^"])*"|'(?:\\'|[^'])*')+)/g, "$1::content $2"); Trying to parse CSS ...
Jan. 19, 2015, 8:49 p.m. (2015-01-19 20:49:17 UTC) #4
Wladimir Palant
http://codereview.adblockplus.org/5504296699297792/diff/5750085036015616/include.preload.js File include.preload.js (right): http://codereview.adblockplus.org/5504296699297792/diff/5750085036015616/include.preload.js#newcode190 include.preload.js:190: selectors[i] = selectors[i].replace(/(\s*)((?:[^,"']|"(?:\\"|[^"])*"|'(?:\\'|[^'])*')+)/g, "$1::content $2"); Just my quick attempt ...
Jan. 19, 2015, 8:58 p.m. (2015-01-19 20:58:14 UTC) #5
Sebastian Noack
http://codereview.adblockplus.org/5504296699297792/diff/5750085036015616/include.preload.js File include.preload.js (right): http://codereview.adblockplus.org/5504296699297792/diff/5750085036015616/include.preload.js#newcode190 include.preload.js:190: selectors[i] = selectors[i].replace(/(\s*)((?:[^,"']|"(?:\\"|[^"])*"|'(?:\\'|[^'])*')+)/g, "$1::content $2"); On 2015/01/19 20:58:15, Wladimir ...
Jan. 22, 2015, 7:37 a.m. (2015-01-22 07:37:11 UTC) #6
Wladimir Palant
http://codereview.adblockplus.org/5504296699297792/diff/5700735861784576/include.preload.js File include.preload.js (right): http://codereview.adblockplus.org/5504296699297792/diff/5700735861784576/include.preload.js#newcode180 include.preload.js:180: break; Note that technically there might be more separators: ...
Jan. 22, 2015, 8:15 a.m. (2015-01-22 08:15:51 UTC) #7
Sebastian Noack
http://codereview.adblockplus.org/5504296699297792/diff/5700735861784576/include.preload.js File include.preload.js (right): http://codereview.adblockplus.org/5504296699297792/diff/5700735861784576/include.preload.js#newcode186 include.preload.js:186: } On 2015/01/22 08:15:52, Wladimir Palant wrote: > Nit: ...
Jan. 22, 2015, 9:40 a.m. (2015-01-22 09:40:59 UTC) #8
Wladimir Palant
Jan. 22, 2015, 9:53 a.m. (2015-01-22 09:53:55 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld