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

Issue 29338638: Issue 2401 - Integrate CSS property rule handling in Firefox (Closed)

Created:
March 18, 2016, 3:05 p.m. by Wladimir Palant
Modified:
March 31, 2016, 11:48 a.m.
CC:
Erik
Visibility:
Public.

Description

Issue 2401 - Integrate CSS property rule handling in Firefox Repository: hg.adblockplus.org/adblockplus

Patch Set 1 #

Total comments: 14

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -45 lines) Patch
A lib/child/cssProperties.js View 1 1 chunk +97 lines, -0 lines 0 comments Download
M lib/child/main.js View 1 chunk +1 line, -0 lines 0 comments Download
M lib/contentPolicy.js View 2 chunks +71 lines, -45 lines 0 comments Download
A lib/cssProperties.js View 1 chunk +47 lines, -0 lines 0 comments Download
M lib/main.js View 1 1 chunk +1 line, -0 lines 0 comments Download
A lib/whitelisting.js View 1 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 9
Wladimir Palant
March 18, 2016, 3:05 p.m. (2016-03-18 15:05:55 UTC) #1
Wladimir Palant
https://codereview.adblockplus.org/29338638/diff/29338639/lib/child/cssProperties.js File lib/child/cssProperties.js (right): https://codereview.adblockplus.org/29338638/diff/29338639/lib/child/cssProperties.js#newcode82 lib/child/cssProperties.js:82: // here because we know that messaging happens synchronously. ...
March 18, 2016, 3:25 p.m. (2016-03-18 15:25:25 UTC) #2
Wladimir Palant
https://codereview.adblockplus.org/29338638/diff/29338639/lib/cssProperties.js File lib/cssProperties.js (right): https://codereview.adblockplus.org/29338638/diff/29338639/lib/cssProperties.js#newcode41 lib/cssProperties.js:41: }; On 2016/03/18 15:25:24, Wladimir Palant wrote: > That's ...
March 22, 2016, 2:01 p.m. (2016-03-22 14:01:04 UTC) #3
Thomas Greiner
https://codereview.adblockplus.org/29338638/diff/29338639/lib/child/cssProperties.js File lib/child/cssProperties.js (right): https://codereview.adblockplus.org/29338638/diff/29338639/lib/child/cssProperties.js#newcode44 lib/child/cssProperties.js:44: function loadScript(script) Detail: This function seems redundant since it's ...
March 30, 2016, 6:02 p.m. (2016-03-30 18:02:06 UTC) #4
Sebastian Noack
I wonder whether it wouldn't make more sense to have a separate message responder here ...
March 30, 2016, 6:26 p.m. (2016-03-30 18:26:40 UTC) #5
Wladimir Palant
https://codereview.adblockplus.org/29338638/diff/29338639/lib/child/cssProperties.js File lib/child/cssProperties.js (right): https://codereview.adblockplus.org/29338638/diff/29338639/lib/child/cssProperties.js#newcode44 lib/child/cssProperties.js:44: function loadScript(script) On 2016/03/30 18:02:05, Thomas Greiner wrote: > ...
March 30, 2016, 6:42 p.m. (2016-03-30 18:42:17 UTC) #6
Thomas Greiner
LGTM I don't have a strong preference regarding whether Sebastian's suggestion should be tackled as ...
March 31, 2016, 10:52 a.m. (2016-03-31 10:52:51 UTC) #7
Wladimir Palant
On 2016/03/31 10:52:51, Thomas Greiner wrote: > I don't have a strong preference regarding whether ...
March 31, 2016, 11:03 a.m. (2016-03-31 11:03:36 UTC) #8
Sebastian Noack
March 31, 2016, 11:48 a.m. (2016-03-31 11:48:34 UTC) #9
Message was sent while issue was closed.
On 2016/03/31 11:03:36, Wladimir Palant wrote:
> As I said under
>
https://codereview.adblockplus.org/29338638/diff/29338639/lib/whitelisting.js...,
> I think that the proper solution would be generalizing the platform-dependent
> code that message responder depends on and moving it to adblockpluscore.
> Definitely not something to tackle in this review however.

Well, that would require even more abstraction among our Firefox and Platform
code base. I'm not sure if that is a good idea. Given how simple the message
responder logic for CSS property filters is, it seems more reasonable to me, to
just have a different implementation of it for Firefox and Chrome. Besides,
simplifying the problem here, that way we can also move that code out of
adblockplusui were it never belonged in the first place. And in the long term,
thanks to WebExtensions, the current Firefox code will be obsolete, anyway.

Powered by Google App Engine
This is Rietveld