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

Issue 29448560: Issue 5249 - Implement :-abp-contains() (Closed)

Created:
May 25, 2017, 1:03 p.m. by hub
Modified:
July 2, 2017, noon
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Issue 5249 - Implement :-abp-contains()

Patch Set 1 #

Patch Set 2 : Rebased on patch for issue 3143. #

Patch Set 3 : Updated and rebased #

Patch Set 4 : Rebased #

Patch Set 5 : Added test for :-abp-contains #

Total comments: 5

Patch Set 6 : Search substring and check for the validity of the filter. #

Total comments: 2

Patch Set 7 : Use includes() and improve test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -0 lines) Patch
M chrome/content/elemHideEmulation.js View 1 2 3 4 5 6 2 chunks +35 lines, -0 lines 0 comments Download
M test/browser/elemHideEmulation.js View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 8
hub
May 25, 2017, 1:03 p.m. (2017-05-25 13:03:23 UTC) #1
hub
This is a preliminary implementation, in-flux as it relies on issue 3143. Not ready for ...
May 25, 2017, 1:05 p.m. (2017-05-25 13:05:09 UTC) #2
hub
Here are two design choice: - we do an exact match otherwise the element selection ...
June 21, 2017, 9:32 p.m. (2017-06-21 21:32:13 UTC) #3
Wladimir Palant
https://codereview.adblockplus.org/29448560/diff/29470694/chrome/content/elemHideEmulation.js File chrome/content/elemHideEmulation.js (right): https://codereview.adblockplus.org/29448560/diff/29470694/chrome/content/elemHideEmulation.js#newcode253 chrome/content/elemHideEmulation.js:253: if (element.textContent == this._text) An exact match is definitely ...
June 28, 2017, 10:47 a.m. (2017-06-28 10:47:25 UTC) #4
hub
updated patch https://codereview.adblockplus.org/29448560/diff/29470694/chrome/content/elemHideEmulation.js File chrome/content/elemHideEmulation.js (right): https://codereview.adblockplus.org/29448560/diff/29470694/chrome/content/elemHideEmulation.js#newcode253 chrome/content/elemHideEmulation.js:253: if (element.textContent == this._text) On 2017/06/28 10:47:24, ...
June 28, 2017, 2:39 p.m. (2017-06-28 14:39:11 UTC) #5
Wladimir Palant
https://codereview.adblockplus.org/29448560/diff/29470694/test/browser/elemHideEmulation.js File test/browser/elemHideEmulation.js (right): https://codereview.adblockplus.org/29448560/diff/29470694/test/browser/elemHideEmulation.js#newcode416 test/browser/elemHideEmulation.js:416: ["div > div > :-abp-contains(to hide)"] On 2017/06/28 10:47:24, ...
June 28, 2017, 2:53 p.m. (2017-06-28 14:53:58 UTC) #6
hub
updated patch https://codereview.adblockplus.org/29448560/diff/29470694/test/browser/elemHideEmulation.js File test/browser/elemHideEmulation.js (right): https://codereview.adblockplus.org/29448560/diff/29470694/test/browser/elemHideEmulation.js#newcode416 test/browser/elemHideEmulation.js:416: ["div > div > :-abp-contains(to hide)"] On ...
June 28, 2017, 4:11 p.m. (2017-06-28 16:11:36 UTC) #7
Wladimir Palant
June 28, 2017, 5:48 p.m. (2017-06-28 17:48:30 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld