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

Issue 29893628: Issue 6957 - Skip selector lookup for unknown domains (Closed)

Created:
Sept. 27, 2018, 10:01 p.m. by Manish Jethani
Modified:
Sept. 28, 2018, 7:09 p.m.
Reviewers:
Jon Sonesen, hub
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Based on https://codereview.adblockplus.org/29893618/ The extension doesn't need a separate list of selectors unless DevTools is open, and we don't need to look up the selectors for a specific domain if the domain is unknown (we already have the common style sheet). This patch speeds up the function for unknown domains by another ~80%.

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M lib/elemHide.js View 1 2 chunks +19 lines, -6 lines 0 comments Download
M test/elemHide.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
Manish Jethani
Sept. 27, 2018, 10:01 p.m. (2018-09-27 22:01:17 UTC) #1
Manish Jethani
Patch Set 1 Please see the description.
Sept. 27, 2018, 10:04 p.m. (2018-09-27 22:04:28 UTC) #2
hub
LGTM
Sept. 28, 2018, 4:37 p.m. (2018-09-28 16:37:41 UTC) #3
Manish Jethani
Patch Set 2: Rebase
Sept. 28, 2018, 6:01 p.m. (2018-09-28 18:01:39 UTC) #4
hub
Sept. 28, 2018, 6:05 p.m. (2018-09-28 18:05:19 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld