Opened 8 months ago

Closed 8 months ago

Last modified 4 months ago

#7400 closed defect (fixed)

:-abp-properties() does not work when tag name is specified

Reported by: mjethani Assignee: mjethani
Priority: P2 Milestone:
Module: Core Keywords:
Cc: amr, agiammarchi, hfiguiere Blocked By:
Blocking: #7359 Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Ross Verified working: yes
Review URL(s):

Description (last modified by mjethani)


Adblock Plus 3.5
Google Chrome 75 (Canary)
macOS 10.12

How to reproduce

Add the filter #?#span:-abp-properties(color: red)

Then load the following document:

      span {
        color: red;

Observed behaviour

The text "Ad" is not hidden.

Expected behaviour

The text "Ad" should be hidden.


It seems qualifySelector() qualifies span with prefix span as spanspan. If the filter is changed to simply #?#:-abp-properties(color: red), it works.

This might be is related to #7359.

Hints for testers

Also test the case in #7359.

Change History (11)

comment:1 Changed 8 months ago by mjethani

  • Component changed from Unknown to Core
  • Priority changed from Unknown to P2
  • Ready set

comment:2 follow-up: Changed 8 months ago by hfiguiere

I believe this issue #7359.

comment:3 in reply to: ↑ 2 Changed 8 months ago by mjethani

Replying to hfiguiere:

I believe this issue #7359.

Yes, I have mentioned this in the description. It may or may not be the same issue (most likely it is).

comment:4 Changed 8 months ago by mjethani

  • Owner set to mjethani

comment:5 Changed 8 months ago by mjethani

  • Review URL(s) modified (diff)
  • Status changed from new to reviewing

comment:6 Changed 8 months ago by hfiguiere

  • Blocked By 7359 added

comment:7 Changed 8 months ago by hfiguiere

  • Blocked By 7359 removed
  • Blocking 7359 added

comment:8 Changed 8 months ago by abpbot

A commit referencing this issue has landed:
Issue 7400 - Handle identical types in qualifySelector()

comment:9 Changed 8 months ago by mjethani

  • Resolution set to fixed
  • Status changed from reviewing to closed

comment:10 Changed 8 months ago by mjethani

  • Description modified (diff)

comment:11 Changed 4 months ago by Ross

  • Tester changed from Unknown to Ross
  • Verified working set

Done. Working as described.

Microsoft Edge 44.17763.1.0 / Windows 10 1809

Chrome 49.0.2623.75 / Windows 10 1809
Chrome 75.0.3770.142 / Windows 10 1809
Opera 36.0.2130.65 / Windows 10 1809
Opera 62.0.3331.72 / Windows 10 1809
Firefox 51.0 / Windows 10 1809
Firefox 68.0 / Windows 10 1809
Firefox Mobile 68.0 / Android 7.2.2

Note: See TracTickets for help on using tickets.