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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 29 13:02:49 PDT 2017


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

--- Comment #3 from Andrey Meshkov <am at adguard.com> ---
> Any sub resource that is loaded that is not a document from yahoo.com would then trigger the first rule but not the ignore-previous-rules, thus hiding the images.

I don't get it, how is that possible that "css-display-none" rule is applied to a non-document? I mean aren't stylesheets supposed to work in the context of a document only?

Moreover, if I replace "url-filter": ".*" with "url-filter": "^http.*", content blocker starts working properly (all images are visible):
```
[
        {
                "trigger": {
                        "url-filter": "^http.*",
                },
                "action": {
                        "type": "css-display-none",
                        "selector": "img"
                }
        },
        {
                "trigger": {
                        "url-filter": "^https?://([^/]*\\.)?yahoo\\.com[/:&?]?",
                        "resource-type": [
                                "document"
                        ]
                },
                "action": {
                        "type": "ignore-previous-rules"
                }
        }
]
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170629/3c1c6a39/attachment.html>


More information about the webkit-unassigned mailing list