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

Issue 29321478: Issue 2738 - Make RegExpFilter.matches() take a bit mask instead of content type string (Closed)

Created:
July 9, 2015, 1:45 p.m. by kzar
Modified:
July 14, 2015, 2:43 p.m.
Visibility:
Public.

Description

Issue 2738 - Make RegExpFilter.matches() take a bit mask instead of content type string

Patch Set 1 #

Total comments: 10

Patch Set 2 : Changed API as discussed and addressed feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -27 lines) Patch
M chrome/content/ui/composer.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/content/ui/sendReport.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/content/ui/sidebar.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lib/contentPolicy.js View 1 6 chunks +14 lines, -5 lines 0 comments Download
M lib/filterClasses.js View 1 1 chunk +3 lines, -3 lines 0 comments Download
M lib/matcher.js View 6 chunks +11 lines, -11 lines 0 comments Download
M lib/notification.js View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7
kzar
July 9, 2015, 1:47 p.m. (2015-07-09 13:47:10 UTC) #1
Sebastian Noack
https://codereview.adblockplus.org/29321478/diff/29321479/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29321478/diff/29321479/lib/filterClasses.js#newcode636 lib/filterClasses.js:636: if ((this.contentType & typeMask) != 0 && Note that ...
July 9, 2015, 3:36 p.m. (2015-07-09 15:36:45 UTC) #2
kzar
https://codereview.adblockplus.org/29321478/diff/29321479/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29321478/diff/29321479/lib/filterClasses.js#newcode768 lib/filterClasses.js:768: RegExpFilter.toTypeMask = function (contentType) On 2015/07/09 15:36:44, Sebastian Noack ...
July 9, 2015, 5:44 p.m. (2015-07-09 17:44:19 UTC) #3
Wladimir Palant
https://codereview.adblockplus.org/29321478/diff/29321479/lib/contentPolicy.js File lib/contentPolicy.js (right): https://codereview.adblockplus.org/29321478/diff/29321479/lib/contentPolicy.js#newcode122 lib/contentPolicy.js:122: this.defaultTypeMask = RegExpFilter.toTypeMask(""); It's a bit mask - the ...
July 10, 2015, 9:07 p.m. (2015-07-10 21:07:01 UTC) #4
kzar
Patch Set 2 : Changed API as discussed and addressed feedback https://codereview.adblockplus.org/29321478/diff/29321479/lib/contentPolicy.js File lib/contentPolicy.js (right): ...
July 12, 2015, 1:59 p.m. (2015-07-12 13:59:39 UTC) #5
Sebastian Noack
LGTM from my side. But Wladimir should do a final review as well, since it ...
July 13, 2015, 4:25 p.m. (2015-07-13 16:25:29 UTC) #6
Wladimir Palant
July 13, 2015, 6:55 p.m. (2015-07-13 18:55:11 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld