[Webkit-unassigned] [Bug 213695] New: ER: Content blocker: Allow use of action selector field when type=block

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 27 23:11:37 PDT 2020


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

            Bug ID: 213695
           Summary: ER: Content blocker: Allow use of action selector
                    field when type=block
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Enhancement
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: neil at neiljhaveri.com

ER: Allow use of the the "selector" field of a content rule action when the type is "block". 

Right now, the documentation says "For the selector field, specify a string that defines a selector list. This value is required when the action type is css-display-none. If it's not, the selector field is ignored by Safari."

I'm not sure if that's a reasonable request or not. My use case is that I'm writing an email app that uses WKWebView, and my goal is to use the content blocker APIs to block common tracking pixels in messages, without having to block all remote images. I have a curated list of several popular tracking services, but I would like to add a final rule that can capture and block some generic cases, like this: 
<img width="1" height="1" ...>
<img width="0" height="0" ...> etc
via selectors like img[width="1"][height="1"] etc. 

Admittedly this is far from airtight...

-- 
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/20200628/b421fb43/attachment-0001.htm>


More information about the webkit-unassigned mailing list