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

Issue 29329571: Issue 3208 - Separate contentPolicy module into a parent and child part (Closed)

Created:
Oct. 31, 2015, 12:06 a.m. by Wladimir Palant
Modified:
Nov. 12, 2015, 3:16 p.m.
Visibility:
Public.

Description

This is hopefully fairly straightforward now.

Patch Set 1 : #

Patch Set 2 : Fixed one return statement (broken rebase) #

Patch Set 3 : Removed duplicate type conversion #

Patch Set 4 : Fixed sitekey validation #

Total comments: 8

Patch Set 5 : Fixed comment #

Patch Set 6 : Removed stringification #

Total comments: 8

Patch Set 7 : Addressed comments #

Total comments: 2

Patch Set 8 : Moved collapsedClass variable #

Total comments: 4

Patch Set 9 : Fixed JSDoc comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -807 lines) Patch
M lib/child/contentPolicy.js View 1 2 3 4 5 6 7 chunks +72 lines, -413 lines 0 comments Download
M lib/child/main.js View 1 chunk +1 line, -0 lines 0 comments Download
M lib/contentPolicy.js View 1 2 3 4 5 6 7 8 3 chunks +85 lines, -364 lines 0 comments Download
M lib/elemHide.js View 1 chunk +6 lines, -30 lines 0 comments Download

Messages

Total messages: 11
Wladimir Palant
Oct. 31, 2015, 12:06 a.m. (2015-10-31 00:06:52 UTC) #1
tschuster
I have to say, this turned out to be really clean. https://codereview.adblockplus.org/29329571/diff/29329705/lib/contentPolicy.js File lib/contentPolicy.js (right): ...
Nov. 7, 2015, 12:29 p.m. (2015-11-07 12:29:04 UTC) #2
Wladimir Palant
Yes, this change being clean is the reason for the other twenty patches preceding it. ...
Nov. 7, 2015, 6:57 p.m. (2015-11-07 18:57:33 UTC) #3
Wladimir Palant
https://codereview.adblockplus.org/29329571/diff/29329705/lib/contentPolicy.js File lib/contentPolicy.js (right): https://codereview.adblockplus.org/29329571/diff/29329705/lib/contentPolicy.js#newcode83 lib/contentPolicy.js:83: let handler = (message => JSON.stringify(this.shouldAllow(message.data))); On 2015/11/07 12:29:03, ...
Nov. 9, 2015, 10:59 a.m. (2015-11-09 10:59:21 UTC) #4
Thomas Greiner
Looks good overall. Just some minor stuff I noticed. https://codereview.adblockplus.org/29329571/diff/29329863/lib/child/contentPolicy.js File lib/child/contentPolicy.js (right): https://codereview.adblockplus.org/29329571/diff/29329863/lib/child/contentPolicy.js#newcode325 lib/child/contentPolicy.js:325: ...
Nov. 11, 2015, 4:52 p.m. (2015-11-11 16:52:33 UTC) #5
Wladimir Palant
https://codereview.adblockplus.org/29329571/diff/29329863/lib/child/contentPolicy.js File lib/child/contentPolicy.js (right): https://codereview.adblockplus.org/29329571/diff/29329863/lib/child/contentPolicy.js#newcode325 lib/child/contentPolicy.js:325: Utils.runAsync(postProcessNodes); On 2015/11/11 16:52:33, Thomas Greiner wrote: > I'd ...
Nov. 11, 2015, 5:43 p.m. (2015-11-11 17:43:27 UTC) #6
Thomas Greiner
https://codereview.adblockplus.org/29329571/diff/29329863/lib/child/contentPolicy.js File lib/child/contentPolicy.js (right): https://codereview.adblockplus.org/29329571/diff/29329863/lib/child/contentPolicy.js#newcode325 lib/child/contentPolicy.js:325: Utils.runAsync(postProcessNodes); On 2015/11/11 17:43:25, Wladimir Palant wrote: > On ...
Nov. 11, 2015, 6:07 p.m. (2015-11-11 18:07:32 UTC) #7
Wladimir Palant
https://codereview.adblockplus.org/29329571/diff/29329965/lib/contentPolicy.js File lib/contentPolicy.js (right): https://codereview.adblockplus.org/29329571/diff/29329965/lib/contentPolicy.js#newcode38 lib/contentPolicy.js:38: let collapsedClass = ""; On 2015/11/11 18:07:32, Thomas Greiner ...
Nov. 12, 2015, 12:28 p.m. (2015-11-12 12:28:52 UTC) #8
tschuster
LGTM https://codereview.adblockplus.org/29329571/diff/29330071/lib/contentPolicy.js File lib/contentPolicy.js (right): https://codereview.adblockplus.org/29329571/diff/29330071/lib/contentPolicy.js#newcode79 lib/contentPolicy.js:79: messageManager.addMessageListener("AdblockPlus:ShouldAllow", handler); nit: The surrounding brackets are unnecessary. ...
Nov. 12, 2015, 2:04 p.m. (2015-11-12 14:04:18 UTC) #9
Thomas Greiner
LGTM
Nov. 12, 2015, 2:18 p.m. (2015-11-12 14:18:55 UTC) #10
Wladimir Palant
Nov. 12, 2015, 3:16 p.m. (2015-11-12 15:16:32 UTC) #11
https://codereview.adblockplus.org/29329571/diff/29330071/lib/contentPolicy.js
File lib/contentPolicy.js (right):

https://codereview.adblockplus.org/29329571/diff/29330071/lib/contentPolicy.j...
lib/contentPolicy.js:79:
messageManager.addMessageListener("AdblockPlus:ShouldAllow", handler);
On 2015/11/12 14:04:17, tschuster wrote:
> nit: The surrounding brackets are unnecessary.

This code is going to be replaced in
https://codereview.adblockplus.org/29329742/ anyway, no unnecessary brackets
there. So I rather don't do the rebasing dance for this one again.

https://codereview.adblockplus.org/29329571/diff/29330071/lib/contentPolicy.j...
lib/contentPolicy.js:110: * @return {Object} An object containing properties
block, collapse and hits
On 2015/11/12 14:04:17, tschuster wrote:
> I think s/block/allow

Right, fixed.

Powered by Google App Engine
This is Rietveld