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

Issue 29356078: Issue 524 - Stop using @-moz-document (Closed)

Created:
Oct. 6, 2016, 11:17 a.m. by Wladimir Palant
Modified:
Oct. 6, 2016, 1:09 p.m.
Reviewers:
kzar
CC:
evilpies
Base URL:
https://hg.adblockplus.org/adblockplus
Visibility:
Public.

Description

Here we split up the monolithic stylesheet we used to inject into a stylesheet common for all domains (unconditional selectors) and a domain-specific one. All kinds of exceptions are already dealt with when generating the domain-specific stylesheet so the hit counter no longer needs to allow some elements - all are hidden, the hit counter is merely counting. The counting is dealt with within the element hiding code - no longer going into content policy checks, so all the special cases there can be removed.

Patch Set 1 #

Total comments: 5

Patch Set 2 : Improved comment #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -91 lines) Patch
M dependencies View 1 chunk +1 line, -1 line 0 comments Download
M lib/child/elemHide.js View 1 6 chunks +51 lines, -48 lines 2 comments Download
M lib/contentPolicy.js View 3 chunks +4 lines, -23 lines 1 comment Download
M lib/elemHideFF.js View 2 chunks +40 lines, -19 lines 0 comments Download

Messages

Total messages: 7
Wladimir Palant
Oct. 6, 2016, 11:17 a.m. (2016-10-06 11:17:44 UTC) #1
kzar
I'm probably not the best person to review this, but I've had a go. (CCing ...
Oct. 6, 2016, 12:10 p.m. (2016-10-06 12:10:47 UTC) #2
Wladimir Palant
Improved comment
Oct. 6, 2016, 12:24 p.m. (2016-10-06 12:24:06 UTC) #3
Wladimir Palant
Improved comment
Oct. 6, 2016, 12:24 p.m. (2016-10-06 12:24:44 UTC) #4
Wladimir Palant
On 2016/10/06 12:10:47, kzar wrote: > I'm probably not the best person to review this, ...
Oct. 6, 2016, 12:27 p.m. (2016-10-06 12:27:27 UTC) #5
kzar
Fair enough, well I don't have many questions now, except I wonder if counting element ...
Oct. 6, 2016, 1:02 p.m. (2016-10-06 13:02:32 UTC) #6
Wladimir Palant
Oct. 6, 2016, 1:08 p.m. (2016-10-06 13:08:49 UTC) #7
https://codereview.adblockplus.org/29356078/diff/29356098/lib/child/elemHide.js
File lib/child/elemHide.js (right):

https://codereview.adblockplus.org/29356078/diff/29356098/lib/child/elemHide....
lib/child/elemHide.js:279: RequestNotifier.addNodeData(window.document,
window.top, hit);
On 2016/10/06 13:02:32, kzar wrote:
> (Doesn't storing all the details returned by registerElemHideHit for each
hidden
> element add quite a bit of overhead? On the other hand I guess it's kind of
> useful to know when element hiding filters have matched.)

That's how the list of blockable items works - it needs to show everything that
affected the display of the current page. Not having element hiding in there
would leave out an important piece of the data.

The other feature using this data is the issue reporter - it also needs to know
which filters matched on the current page.

Powered by Google App Engine
This is Rietveld