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

Issue 30002601: Issue 7284 - Move CSS escaping to createStyleSheet (Closed)

Created:
Feb. 9, 2019, 12:41 a.m. by hub
Modified:
Feb. 19, 2019, 1:03 p.m.
Reviewers:
Manish Jethani
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Issue 7284 - Move CSS escaping to createStyleSheet

Patch Set 1 #

Total comments: 1

Patch Set 2 : Reworked the escaping of selectors #

Total comments: 17

Patch Set 3 : Updated addressing most comments #

Total comments: 1

Patch Set 4 : Added test #

Total comments: 8

Patch Set 5 : Nits addressed #

Patch Set 6 : more nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -33 lines) Patch
M lib/content/elemHideEmulation.js View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M lib/elemHide.js View 1 2 1 chunk +14 lines, -2 lines 0 comments Download
M lib/filterClasses.js View 1 1 chunk +1 line, -2 lines 0 comments Download
M test/browser/elemHideEmulation.js View 1 1 chunk +0 lines, -22 lines 0 comments Download
M test/elemHide.js View 1 2 3 4 5 1 chunk +11 lines, -1 line 0 comments Download
M test/filterClasses.js View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 21
hub
Feb. 9, 2019, 12:41 a.m. (2019-02-09 00:41:42 UTC) #1
hub
and our current testsuite for elemHidingEmulation doesn't trigger the bug because we don't go through ...
Feb. 9, 2019, 12:42 a.m. (2019-02-09 00:42:46 UTC) #2
Manish Jethani
The issue I have with this fix is that it would no longer be possible ...
Feb. 11, 2019, 12:56 a.m. (2019-02-11 00:56:30 UTC) #3
hub
On 2019/02/11 00:56:30, Manish Jethani wrote: > The issue I have with this fix is ...
Feb. 11, 2019, 5:19 p.m. (2019-02-11 17:19:09 UTC) #4
hub
On 2019/02/11 17:19:09, hub wrote: > On 2019/02/11 00:56:30, Manish Jethani wrote: > > The ...
Feb. 12, 2019, 6:14 p.m. (2019-02-12 18:14:17 UTC) #5
hub
Will update the patch.
Feb. 12, 2019, 10:39 p.m. (2019-02-12 22:39:32 UTC) #6
hub
updated patch
Feb. 12, 2019, 11:51 p.m. (2019-02-12 23:51:55 UTC) #7
hub
https://codereview.adblockplus.org/30002601/diff/30005555/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/30002601/diff/30005555/lib/elemHide.js#newcode485 lib/elemHide.js:485: function escapedSelector(selector) while we expect a string, if `selector` ...
Feb. 12, 2019, 11:55 p.m. (2019-02-12 23:55:50 UTC) #8
Manish Jethani
https://codereview.adblockplus.org/30002601/diff/30005555/lib/content/elemHideEmulation.js File lib/content/elemHideEmulation.js (left): https://codereview.adblockplus.org/30002601/diff/30005555/lib/content/elemHideEmulation.js#oldcode351 lib/content/elemHideEmulation.js:351: Unrelated? https://codereview.adblockplus.org/30002601/diff/30005555/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/30002601/diff/30005555/lib/elemHide.js#newcode480 lib/elemHide.js:480: * Escape ...
Feb. 13, 2019, 12:27 p.m. (2019-02-13 12:27:26 UTC) #9
Manish Jethani
On 2019/02/12 18:14:17, hub wrote: > Just to be clear, the patch here was meant ...
Feb. 13, 2019, 2:58 p.m. (2019-02-13 14:58:24 UTC) #10
Manish Jethani
https://codereview.adblockplus.org/30002601/diff/30002602/lib/content/elemHideEmulation.js File lib/content/elemHideEmulation.js (right): https://codereview.adblockplus.org/30002601/diff/30002602/lib/content/elemHideEmulation.js#newcode351 lib/content/elemHideEmulation.js:351: this._regexp = makeRegExpParameter( Nit: I think it helps to ...
Feb. 13, 2019, 3:03 p.m. (2019-02-13 15:03:36 UTC) #11
hub
https://codereview.adblockplus.org/30002601/diff/30005555/lib/content/elemHideEmulation.js File lib/content/elemHideEmulation.js (left): https://codereview.adblockplus.org/30002601/diff/30005555/lib/content/elemHideEmulation.js#oldcode351 lib/content/elemHideEmulation.js:351: On 2019/02/13 12:27:25, Manish Jethani wrote: > Unrelated? This ...
Feb. 13, 2019, 4:33 p.m. (2019-02-13 16:33:32 UTC) #12
hub
On 2019/02/13 14:58:24, Manish Jethani wrote: > On 2019/02/12 18:14:17, hub wrote: > > Just ...
Feb. 13, 2019, 4:36 p.m. (2019-02-13 16:36:46 UTC) #13
Manish Jethani
https://codereview.adblockplus.org/30002601/diff/30006555/lib/elemHide.js File lib/elemHide.js (right): https://codereview.adblockplus.org/30002601/diff/30006555/lib/elemHide.js#newcode501 lib/elemHide.js:501: rule += escapeSelector(selectors[i]) + ", "; Performance-wise this additional ...
Feb. 14, 2019, 4:40 a.m. (2019-02-14 04:40:21 UTC) #14
Manish Jethani
This is looking good except we could add some tests to test/elemHide.js to make sure ...
Feb. 15, 2019, 2:21 p.m. (2019-02-15 14:21:49 UTC) #15
hub
On 2019/02/15 14:21:49, Manish Jethani wrote: > This is looking good except we could add ...
Feb. 15, 2019, 2:37 p.m. (2019-02-15 14:37:46 UTC) #16
Manish Jethani
https://codereview.adblockplus.org/30002601/diff/30008555/test/elemHide.js File test/elemHide.js (right): https://codereview.adblockplus.org/30002601/diff/30008555/test/elemHide.js#newcode312 test/elemHide.js:312: "html, #foo, .bar, #foo .bar, #foo > .bar, #foo[data-bar='\\7B ...
Feb. 16, 2019, 4:34 a.m. (2019-02-16 04:34:04 UTC) #17
hub
updated patch https://codereview.adblockplus.org/30002601/diff/30008555/test/elemHide.js File test/elemHide.js (right): https://codereview.adblockplus.org/30002601/diff/30008555/test/elemHide.js#newcode312 test/elemHide.js:312: "html, #foo, .bar, #foo .bar, #foo > ...
Feb. 18, 2019, 12:56 p.m. (2019-02-18 12:56:21 UTC) #18
Manish Jethani
The summary of this patch should be "Issue 7284 - Move CSS escaping to createStyleSheet". ...
Feb. 18, 2019, 1:07 p.m. (2019-02-18 13:07:21 UTC) #19
hub
updated patch https://codereview.adblockplus.org/30002601/diff/30008555/test/elemHide.js File test/elemHide.js (right): https://codereview.adblockplus.org/30002601/diff/30008555/test/elemHide.js#newcode312 test/elemHide.js:312: "html, #foo, .bar, #foo .bar, #foo > ...
Feb. 18, 2019, 1:51 p.m. (2019-02-18 13:51:08 UTC) #20
Manish Jethani
Feb. 19, 2019, 2:46 a.m. (2019-02-19 02:46:05 UTC) #21
On 2019/02/18 13:07:21, Manish Jethani wrote:
> The summary of this patch should be "Issue 7284 - Move CSS escaping to
> createStyleSheet".

Aside from the above, LGTM

Powered by Google App Engine
This is Rietveld