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

Issue 29485567: Issue 5395 - Make sure element hiding emulation doesn't degrade website performance too much (Closed)

Created:
July 10, 2017, 1:46 p.m. by Wladimir Palant
Modified:
July 11, 2017, 11:05 a.m.
Reviewers:
kzar, Felix Dahlke
CC:
h.figuire_eyeo.com
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Note that this is based on revision d30ba414cc3d - branching off to avoid adding more changes to Chrome before release. This will have to be merged with master later. Two changes here: stylesheet-only document modifications will no longer unnecessarily trigger rules that don't depend on stylesheets (such as :-abp-has()). Also, new stylesheets will be processed at most every 3 seconds.

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added JSDoc comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -3 lines) Patch
M chrome/content/elemHideEmulation.js View 1 7 chunks +50 lines, -2 lines 0 comments Download
M test/browser/elemHideEmulation.js View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 7
Wladimir Palant
July 10, 2017, 1:46 p.m. (2017-07-10 13:46:40 UTC) #1
Felix Dahlke
LGTM with a nit https://codereview.adblockplus.org/29485567/diff/29485568/chrome/content/elemHideEmulation.js File chrome/content/elemHideEmulation.js (right): https://codereview.adblockplus.org/29485567/diff/29485568/chrome/content/elemHideEmulation.js#newcode438 chrome/content/elemHideEmulation.js:438: this.addSelectors(stylesheets); Nit: I'm probably rusty, ...
July 10, 2017, 2:37 p.m. (2017-07-10 14:37:19 UTC) #2
Wladimir Palant
https://codereview.adblockplus.org/29485567/diff/29485568/chrome/content/elemHideEmulation.js File chrome/content/elemHideEmulation.js (right): https://codereview.adblockplus.org/29485567/diff/29485568/chrome/content/elemHideEmulation.js#newcode438 chrome/content/elemHideEmulation.js:438: this.addSelectors(stylesheets); On 2017/07/10 14:37:19, Felix Dahlke wrote: > Nit: ...
July 10, 2017, 2:38 p.m. (2017-07-10 14:38:52 UTC) #3
kzar
While I'm not the best person to review this change I've had a good go ...
July 10, 2017, 2:50 p.m. (2017-07-10 14:50:18 UTC) #4
Felix Dahlke
Makes sense, even more LGTM then. I forgot to say earlier that it'd be good ...
July 10, 2017, 2:52 p.m. (2017-07-10 14:52:14 UTC) #5
Wladimir Palant
https://codereview.adblockplus.org/29485567/diff/29485568/chrome/content/elemHideEmulation.js File chrome/content/elemHideEmulation.js (right): https://codereview.adblockplus.org/29485567/diff/29485568/chrome/content/elemHideEmulation.js#newcode354 chrome/content/elemHideEmulation.js:354: addSelectors(stylesheets) On 2017/07/10 14:50:17, kzar wrote: > Nit: IMO ...
July 11, 2017, 8:18 a.m. (2017-07-11 08:18:11 UTC) #6
kzar
July 11, 2017, 11:05 a.m. (2017-07-11 11:05:14 UTC) #7
Message was sent while issue was closed.
https://codereview.adblockplus.org/29485567/diff/29485568/chrome/content/elem...
File chrome/content/elemHideEmulation.js (right):

https://codereview.adblockplus.org/29485567/diff/29485568/chrome/content/elem...
chrome/content/elemHideEmulation.js:354: addSelectors(stylesheets)
On 2017/07/11 08:18:11, Wladimir Palant wrote:
> On 2017/07/10 14:50:17, kzar wrote:
> > Nit: IMO this function could do with a comment to explain the behaviour when
> the
> > stylesheets parameter is passed / omitted. It's true I'm not familiar with
> this
> > code but that aspect took me a while to grok when it's actually kinda
simple.
> 
> Done.

Nice, thanks.

Powered by Google App Engine
This is Rietveld