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

Issue 29861585: Issue 6871 - Reject filters with blank CSPs (Closed)

Created:
Aug. 22, 2018, 7:40 p.m. by Jon Sonesen
Modified:
Aug. 27, 2018, 3:38 p.m.
Reviewers:
Manish Jethani, kzar
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Issue 6871 - Remove support for accepting empty CSP filters with blank values

Patch Set 1 : #

Patch Set 2 : Improves logic #

Patch Set 3 : Address PS1 comments #

Total comments: 2

Patch Set 4 : Address PS3 Comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M lib/filterClasses.js View 1 1 chunk +5 lines, -1 line 0 comments Download
M test/filterClasses.js View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10
Jon Sonesen
Aug. 22, 2018, 7:40 p.m. (2018-08-22 19:40:58 UTC) #1
Jon Sonesen
Added both of you to review since Manish is out till Monday and I wasn't ...
Aug. 22, 2018, 7:50 p.m. (2018-08-22 19:50:11 UTC) #2
Manish Jethani
We should add a test for this. You can search for "filter_invalid_csp" in test/filterClasses.js
Aug. 23, 2018, 2:41 p.m. (2018-08-23 14:41:03 UTC) #3
Manish Jethani
Nit: You could rewrite the commit message as "Issue 6871 - Reject filters with blank ...
Aug. 23, 2018, 2:51 p.m. (2018-08-23 14:51:31 UTC) #4
Jon Sonesen
Will do, also I prefer your commit message so will update that as well
Aug. 23, 2018, 4:43 p.m. (2018-08-23 16:43:51 UTC) #5
Jon Sonesen
Will do, also I prefer your commit message so will update that as well
Aug. 23, 2018, 4:43 p.m. (2018-08-23 16:43:54 UTC) #6
Manish Jethani
One more comment, otherwise LGTM https://codereview.adblockplus.org/29861585/diff/29862572/test/filterClasses.js File test/filterClasses.js (right): https://codereview.adblockplus.org/29861585/diff/29862572/test/filterClasses.js#newcode342 test/filterClasses.js:342: compareFilter(test, "bla$csp=", ["type=invalid", "text=bla$csp=", ...
Aug. 24, 2018, 8:55 a.m. (2018-08-24 08:55:03 UTC) #7
Jon Sonesen
https://codereview.adblockplus.org/29861585/diff/29862572/test/filterClasses.js File test/filterClasses.js (right): https://codereview.adblockplus.org/29861585/diff/29862572/test/filterClasses.js#newcode342 test/filterClasses.js:342: compareFilter(test, "bla$csp=", ["type=invalid", "text=bla$csp=", "reason=filter_invalid_csp"]); On 2018/08/24 08:55:02, Manish ...
Aug. 24, 2018, 8:12 p.m. (2018-08-24 20:12:49 UTC) #8
Manish Jethani
LGTM
Aug. 25, 2018, 7:34 a.m. (2018-08-25 07:34:25 UTC) #9
Manish Jethani
Aug. 26, 2018, 3:57 p.m. (2018-08-26 15:57:50 UTC) #10
On 2018/08/25 07:34:25, Manish Jethani wrote:
> LGTM

https://hg.adblockplus.org/adblockpluscore/rev/9ebb3381fcde

You can close this now.

Powered by Google App Engine
This is Rietveld