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

Issue 29348026: Issue 4251 - Fixed hang trying to apply element hiding rules to blocked frames (Closed)

Created:
July 19, 2016, 4:19 p.m. by Wladimir Palant
Modified:
July 19, 2016, 4:23 p.m.
Reviewers:
Thomas Greiner
Visibility:
Public.

Description

Issue 4251 - Fixed hang trying to apply element hiding rules to blocked frames Repository: hg.adblockplus.org/adblockplus

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M lib/child/elemHide.js View 1 chunk +10 lines, -5 lines 1 comment Download

Messages

Total messages: 3
Wladimir Palant
July 19, 2016, 4:19 p.m. (2016-07-19 16:19:57 UTC) #1
Thomas Greiner
LGTM
July 19, 2016, 4:22 p.m. (2016-07-19 16:22:53 UTC) #2
Wladimir Palant
July 19, 2016, 4:23 p.m. (2016-07-19 16:23:25 UTC) #3
https://codereview.adblockplus.org/29348026/diff/29348027/lib/child/elemHide.js
File lib/child/elemHide.js (right):

https://codereview.adblockplus.org/29348026/diff/29348027/lib/child/elemHide....
lib/child/elemHide.js:341: subject.addEventListener("beforescriptexecute",
listener);
For reference, DOMContentLoaded fires too late - with the test case from
https://issues.adblockplus.org/ticket/4211 I can see a noticeable delay (below
one second but still). In most cases, beforescriptexecute will fire way earlier
- especially in the scenarios that are relevant for us. With this additional
event listener I can no longer see the ads disappearing.

Powered by Google App Engine
This is Rietveld