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

Issue 29760704: Issue 6592 - Implement $rewrite filter option (Closed)

Created:
April 24, 2018, 8:31 p.m. by hub
Modified:
May 17, 2018, 1:47 p.m.
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Issue 6592 - Implement $rewrite filter option

Patch Set 1 #

Patch Set 2 : Added test. The rewrite is now part of BlockingFilter #

Total comments: 11

Patch Set 3 : Use the replace syntax directly #

Total comments: 5

Patch Set 4 : Check origin on rewrite. #

Total comments: 10

Patch Set 5 : More review changes #

Total comments: 2

Patch Set 6 : Update doc comment. #

Total comments: 21

Patch Set 7 : Some comment adjustments. #

Patch Set 8 : Relative URL rewrite. #

Total comments: 6

Patch Set 9 : Comment fixes. #

Total comments: 21

Patch Set 10 : Some minor adjustments (comments, formatting) #

Patch Set 11 : Properly polyfill URL for NodeJS #

Total comments: 5

Patch Set 12 : Use typeof to check for undefined #

Patch Set 13 : Just inject URL into the sandbox globals. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -9 lines) Patch
M lib/filterClasses.js View 1 2 3 4 5 6 7 8 9 4 chunks +37 lines, -3 lines 2 comments Download
M test/.eslintrc.json View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M test/_common.js View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -6 lines 0 comments Download
M test/filterClasses.js View 1 2 3 4 5 6 7 8 9 4 chunks +45 lines, -0 lines 0 comments Download

Messages

Total messages: 62
hub
April 24, 2018, 8:31 p.m. (2018-04-24 20:31:29 UTC) #1
hub
I need to add some tests.
April 24, 2018, 8:32 p.m. (2018-04-24 20:32:08 UTC) #2
hub
https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js#newcode948 lib/filterClasses.js:948: return this.rewrite.replace("$1", matches[0]); This is simplistic though. It does ...
April 27, 2018, 12:48 a.m. (2018-04-27 00:48:22 UTC) #3
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js#newcode948 lib/filterClasses.js:948: return this.rewrite.replace("$1", matches[0]); On 2018/04/27 00:48:22, hub wrote: > ...
April 30, 2018, 8:07 p.m. (2018-04-30 20:07:11 UTC) #4
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js#newcode851 lib/filterClasses.js:851: RegExpFilter.typeMap = { We should add REWRITE here. Then ...
April 30, 2018, 8:10 p.m. (2018-04-30 20:10:55 UTC) #5
hub
Updated patch. https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js#newcode851 lib/filterClasses.js:851: RegExpFilter.typeMap = { On 2018/04/30 20:10:55, Manish ...
May 1, 2018, 6:32 p.m. (2018-05-01 18:32:16 UTC) #6
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29767580/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29767580/lib/filterClasses.js#newcode946 lib/filterClasses.js:946: let matches = this.regexp.exec(urlString); Why do we need to ...
May 2, 2018, 3:10 p.m. (2018-05-02 15:10:06 UTC) #7
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js#newcode851 lib/filterClasses.js:851: RegExpFilter.typeMap = { On 2018/05/01 18:32:15, hub wrote: > ...
May 2, 2018, 3:31 p.m. (2018-05-02 15:31:10 UTC) #8
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js#newcode944 lib/filterClasses.js:944: doRewrite(urlString) For what it's worth I would rather call ...
May 2, 2018, 5:52 p.m. (2018-05-02 17:52:23 UTC) #9
hub
Updated patch https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29760750/lib/filterClasses.js#newcode851 lib/filterClasses.js:851: RegExpFilter.typeMap = { On 2018/05/02 15:31:09, Manish ...
May 2, 2018, 10:14 p.m. (2018-05-02 22:14:33 UTC) #10
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js#newcode947 lib/filterClasses.js:947: if (rewritten != urlString) Why do we need that ...
May 2, 2018, 10:25 p.m. (2018-05-02 22:25:03 UTC) #11
hub
https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js#newcode947 lib/filterClasses.js:947: if (rewritten != urlString) On 2018/05/02 22:25:03, Sebastian Noack ...
May 3, 2018, 12:57 a.m. (2018-05-03 00:57:58 UTC) #12
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js#newcode947 lib/filterClasses.js:947: if (rewritten != urlString) On 2018/05/03 00:57:58, hub wrote: ...
May 3, 2018, 1:14 a.m. (2018-05-03 01:14:52 UTC) #13
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js#newcode822 lib/filterClasses.js:822: else if (option == "REWRITE" && value) Note that ...
May 3, 2018, 2:42 a.m. (2018-05-03 02:42:37 UTC) #14
hub
patch updated https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js#newcode822 lib/filterClasses.js:822: else if (option == "REWRITE" && value) ...
May 3, 2018, 6:40 p.m. (2018-05-03 18:40:05 UTC) #15
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29769594/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29769594/lib/filterClasses.js#newcode942 lib/filterClasses.js:942: * @returns {string?} the rewritten URL, or null if ...
May 4, 2018, 9:56 a.m. (2018-05-04 09:56:40 UTC) #16
hub
Updated pacth https://codereview.adblockplus.org/29760704/diff/29769594/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29769594/lib/filterClasses.js#newcode942 lib/filterClasses.js:942: * @returns {string?} the rewritten URL, or ...
May 4, 2018, 4:18 p.m. (2018-05-04 16:18:48 UTC) #17
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js#newcode822 lib/filterClasses.js:822: else if (option == "REWRITE" && value) On 2018/05/03 ...
May 4, 2018, 10:50 p.m. (2018-05-04 22:50:49 UTC) #18
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js#newcode949 lib/filterClasses.js:949: if (new URL(rewritten).origin == new URL(urlString).origin) On 2018/05/04 22:50:48, ...
May 4, 2018, 11:41 p.m. (2018-05-04 23:41:46 UTC) #19
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js#newcode946 lib/filterClasses.js:946: let rewritten = urlString.replace(this.regexp, this.rewrite); On 2018/05/04 22:50:48, Manish ...
May 5, 2018, 12:51 a.m. (2018-05-05 00:51:39 UTC) #20
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js#newcode949 lib/filterClasses.js:949: if (new URL(rewritten).origin == new URL(urlString).origin) On 2018/05/04 23:41:46, ...
May 5, 2018, 1:34 p.m. (2018-05-05 13:34:43 UTC) #21
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js#newcode946 lib/filterClasses.js:946: let rewritten = urlString.replace(this.regexp, this.rewrite); How about this? let ...
May 5, 2018, 5:07 p.m. (2018-05-05 17:07:07 UTC) #22
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js#newcode946 lib/filterClasses.js:946: let rewritten = urlString.replace(this.regexp, this.rewrite); On 2018/05/05 17:07:07, Sebastian ...
May 5, 2018, 11:58 p.m. (2018-05-05 23:58:39 UTC) #23
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js#newcode946 lib/filterClasses.js:946: let rewritten = urlString.replace(this.regexp, this.rewrite); On 2018/05/05 23:58:39, Manish ...
May 6, 2018, 12:45 a.m. (2018-05-06 00:45:41 UTC) #24
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js#newcode946 lib/filterClasses.js:946: let rewritten = urlString.replace(this.regexp, this.rewrite); On 2018/05/06 00:45:41, Manish ...
May 6, 2018, 1:04 p.m. (2018-05-06 13:04:26 UTC) #25
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js#newcode946 lib/filterClasses.js:946: let rewritten = urlString.replace(this.regexp, this.rewrite); On 2018/05/06 00:45:41, Manish ...
May 6, 2018, 1:59 p.m. (2018-05-06 13:59:31 UTC) #26
hub
Updated patch. https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29768685/lib/filterClasses.js#newcode822 lib/filterClasses.js:822: else if (option == "REWRITE" && value) ...
May 7, 2018, 8:11 p.m. (2018-05-07 20:11:56 UTC) #27
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js#newcode946 lib/filterClasses.js:946: let rewritten = urlString.replace(this.regexp, this.rewrite); On 2018/05/06 13:04:25, Sebastian ...
May 8, 2018, 6:57 a.m. (2018-05-08 06:57:30 UTC) #28
hub
Updated patch. https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29770573/lib/filterClasses.js#newcode946 lib/filterClasses.js:946: let rewritten = urlString.replace(this.regexp, this.rewrite); On 2018/05/08 ...
May 8, 2018, 3:54 p.m. (2018-05-08 15:54:30 UTC) #29
Sebastian Noack
Other than that the change looks good to me. (I moved myself back to CC, ...
May 8, 2018, 5:09 p.m. (2018-05-08 17:09:30 UTC) #30
hub
https://codereview.adblockplus.org/29760704/diff/29774568/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29774568/lib/filterClasses.js#newcode941 lib/filterClasses.js:941: * @param {string} url the URL to rewrite On ...
May 8, 2018, 5:14 p.m. (2018-05-08 17:14:49 UTC) #31
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29774568/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29774568/lib/filterClasses.js#newcode941 lib/filterClasses.js:941: * @param {string} url the URL to rewrite On ...
May 8, 2018, 5:25 p.m. (2018-05-08 17:25:38 UTC) #32
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29774568/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29774568/lib/filterClasses.js#newcode941 lib/filterClasses.js:941: * @param {string} url the URL to rewrite On ...
May 8, 2018, 6:52 p.m. (2018-05-08 18:52:32 UTC) #33
Manish Jethani
Adding dave@ instead of kzar@
May 8, 2018, 6:53 p.m. (2018-05-08 18:53:45 UTC) #34
Manish Jethani
On 2018/05/08 18:52:32, Manish Jethani wrote: > LGTM By the way, I would write the ...
May 8, 2018, 6:59 p.m. (2018-05-08 18:59:02 UTC) #35
hub
On 2018/05/08 18:59:02, Manish Jethani wrote: > On 2018/05/08 18:52:32, Manish Jethani wrote: > > ...
May 8, 2018, 7:13 p.m. (2018-05-08 19:13:55 UTC) #36
Manish Jethani
On 2018/05/08 19:13:55, hub wrote: > On 2018/05/08 18:59:02, Manish Jethani wrote: > > On ...
May 9, 2018, 1:42 p.m. (2018-05-09 13:42:31 UTC) #37
hub
On 2018/05/09 13:42:31, Manish Jethani wrote: > On 2018/05/08 19:13:55, hub wrote: > > On ...
May 9, 2018, 2:24 p.m. (2018-05-09 14:24:48 UTC) #38
Manish Jethani
On 2018/05/09 14:24:48, hub wrote: > On 2018/05/09 13:42:31, Manish Jethani wrote: > > On ...
May 9, 2018, 4:06 p.m. (2018-05-09 16:06:12 UTC) #39
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29774568/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29774568/lib/filterClasses.js#newcode935 lib/filterClasses.js:935: * @type {string} This should be {?string} now after ...
May 11, 2018, 1:59 p.m. (2018-05-11 13:59:30 UTC) #40
hub
patch updated. https://codereview.adblockplus.org/29760704/diff/29774568/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29774568/lib/filterClasses.js#newcode935 lib/filterClasses.js:935: * @type {string} On 2018/05/11 13:59:29, Manish ...
May 11, 2018, 3:57 p.m. (2018-05-11 15:57:33 UTC) #41
kzar
https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js#newcode900 lib/filterClasses.js:900: * The rewrite expression Mind making this comment useful? ...
May 15, 2018, 2:08 p.m. (2018-05-15 14:08:59 UTC) #42
kzar
https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js#newcode955 lib/filterClasses.js:955: return url; Why do we return `url` on failure? ...
May 15, 2018, 2:24 p.m. (2018-05-15 14:24:58 UTC) #43
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js#newcode955 lib/filterClasses.js:955: return url; On 2018/05/15 14:24:57, kzar wrote: > Why ...
May 15, 2018, 2:40 p.m. (2018-05-15 14:40:34 UTC) #44
kzar
https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js#newcode955 lib/filterClasses.js:955: return url; On 2018/05/15 14:40:34, Sebastian Noack wrote: > ...
May 15, 2018, 2:44 p.m. (2018-05-15 14:44:25 UTC) #45
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js#newcode955 lib/filterClasses.js:955: return url; On 2018/05/15 14:44:23, kzar wrote: > On ...
May 15, 2018, 2:51 p.m. (2018-05-15 14:51:02 UTC) #46
kzar
https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js#newcode955 lib/filterClasses.js:955: return url; On 2018/05/15 14:51:02, Sebastian Noack wrote: > ...
May 15, 2018, 2:53 p.m. (2018-05-15 14:53:58 UTC) #47
Manish Jethani
https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js#newcode955 lib/filterClasses.js:955: return url; On 2018/05/15 14:53:58, kzar wrote: > On ...
May 15, 2018, 3:18 p.m. (2018-05-15 15:18:13 UTC) #48
hub
Updated patch. https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js#newcode900 lib/filterClasses.js:900: * The rewrite expression On 2018/05/15 14:08:58, ...
May 15, 2018, 4:16 p.m. (2018-05-15 16:16:32 UTC) #49
hub
https://codereview.adblockplus.org/29760704/diff/29778589/test/_common.js File test/_common.js (left): https://codereview.adblockplus.org/29760704/diff/29778589/test/_common.js#oldcode34 test/_common.js:34: function URL(urlString) On 2018/05/15 16:16:31, hub wrote: > On ...
May 15, 2018, 4:17 p.m. (2018-05-15 16:17:54 UTC) #50
kzar
https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29778589/lib/filterClasses.js#newcode900 lib/filterClasses.js:900: * The rewrite expression On 2018/05/15 16:16:31, hub wrote: ...
May 16, 2018, 9:22 a.m. (2018-05-16 09:22:40 UTC) #51
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29778589/test/_common.js File test/_common.js (left): https://codereview.adblockplus.org/29760704/diff/29778589/test/_common.js#oldcode34 test/_common.js:34: function URL(urlString) On 2018/05/16 09:22:40, kzar wrote: > On ...
May 16, 2018, 10:53 a.m. (2018-05-16 10:53:30 UTC) #52
hub
https://codereview.adblockplus.org/29760704/diff/29778589/test/_common.js File test/_common.js (left): https://codereview.adblockplus.org/29760704/diff/29778589/test/_common.js#oldcode34 test/_common.js:34: function URL(urlString) On 2018/05/16 10:53:29, Sebastian Noack wrote: > ...
May 16, 2018, 12:08 p.m. (2018-05-16 12:08:11 UTC) #53
Sebastian Noack
https://codereview.adblockplus.org/29760704/diff/29778589/test/_common.js File test/_common.js (left): https://codereview.adblockplus.org/29760704/diff/29778589/test/_common.js#oldcode34 test/_common.js:34: function URL(urlString) On 2018/05/16 12:08:11, hub wrote: > On ...
May 16, 2018, 12:13 p.m. (2018-05-16 12:13:23 UTC) #54
kzar
On 2018/05/16 12:13:23, Sebastian Noack wrote: > And it seems that this should even work ...
May 16, 2018, 12:35 p.m. (2018-05-16 12:35:05 UTC) #55
hub
Updated polyfill for URL, tested with NodeJS 7.10.1, NodeJS 8.5 and 8.11.2 and NodeJS 10.1 ...
May 16, 2018, 1:11 p.m. (2018-05-16 13:11:49 UTC) #56
kzar
https://codereview.adblockplus.org/29760704/diff/29783599/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29760704/diff/29783599/test/_common.js#newcode34 test/_common.js:34: // URL is global in Node 10. In Node ...
May 16, 2018, 1:24 p.m. (2018-05-16 13:24:32 UTC) #57
hub
updated patch https://codereview.adblockplus.org/29760704/diff/29783599/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29760704/diff/29783599/test/_common.js#newcode35 test/_common.js:35: if (global.URL == undefined) On 2018/05/16 13:24:31, ...
May 16, 2018, 6:33 p.m. (2018-05-16 18:33:24 UTC) #58
kzar
https://codereview.adblockplus.org/29760704/diff/29783599/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29760704/diff/29783599/test/_common.js#newcode35 test/_common.js:35: if (global.URL == undefined) On 2018/05/16 18:33:23, hub wrote: ...
May 17, 2018, 9:49 a.m. (2018-05-17 09:49:02 UTC) #59
hub
updated patch https://codereview.adblockplus.org/29760704/diff/29783599/test/_common.js File test/_common.js (right): https://codereview.adblockplus.org/29760704/diff/29783599/test/_common.js#newcode35 test/_common.js:35: if (global.URL == undefined) On 2018/05/17 09:49:01, ...
May 17, 2018, 12:50 p.m. (2018-05-17 12:50:46 UTC) #60
kzar
LGTM https://codereview.adblockplus.org/29760704/diff/29784572/lib/filterClasses.js File lib/filterClasses.js (right): https://codereview.adblockplus.org/29760704/diff/29784572/lib/filterClasses.js#newcode949 lib/filterClasses.js:949: let rewrittenUrl = new URL(url.replace(this.regexp, this.rewrite), url); I ...
May 17, 2018, 12:56 p.m. (2018-05-17 12:56:07 UTC) #61
hub
May 17, 2018, 12:58 p.m. (2018-05-17 12:58:39 UTC) #62
https://codereview.adblockplus.org/29760704/diff/29784572/lib/filterClasses.js
File lib/filterClasses.js (right):

https://codereview.adblockplus.org/29760704/diff/29784572/lib/filterClasses.j...
lib/filterClasses.js:949: let rewrittenUrl = new URL(url.replace(this.regexp,
this.rewrite), url);
On 2018/05/17 12:56:06, kzar wrote:
> I forgot to mention before, I thought how you did this part was clever. Just
> reusing the existing generated regexp.

thanks!

Powered by Google App Engine
This is Rietveld