[Webkit-unassigned] [Bug 167423] New: Rules with type=ignore-previous-rules are not applied to rules with `url-filter: *`

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 25 10:07:15 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=167423

            Bug ID: 167423
           Summary: Rules with type=ignore-previous-rules are not applied
                    to rules with `url-filter: *`
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: am at adguard.com

#### Steps to reproduce

1. Register a content blocker with the following content:
```
[
    {
        "trigger": {
            "url-filter": ".*"
        },
        "action": {
            "type": "css-display-none",
            "selector": "img"
        }
    },
    {
        "trigger": {
            "url-filter": "^https?://([^/]*\\.)?yahoo\\.com[/:&?]?",
            "resource-type": [
                "document"
            ]
        },
        "action": {
            "type": "ignore-previous-rules"
        }
    }
]
```

2. Open yahoo.com

#### Expected result

All images are visible

#### Actual result

All images are hidden

#### Explanation

According to the [WebKit code](https://trac.webkit.org/browser/trunk/Source/WebCore/contentextensions/ContentExtensionsBackend.cpp#L76), `universalWithDomains` and `universalWithoutDomains` rules have higher priority. So, despite that the problematic rule precedes exception rule, it is not ignored.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170125/1c899c87/attachment-0001.html>


More information about the webkit-unassigned mailing list