NEW213695
ER: Content blocker: Allow use of action selector field when type=block
https://bugs.webkit.org/show_bug.cgi?id=213695
Summary ER: Content blocker: Allow use of action selector field when type=block
Neil Jhaveri
Reported 2020-06-27 23:11:37 PDT
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...
Attachments
Radar WebKit Bug Importer
Comment 1 2020-06-28 16:16:26 PDT
Note You need to log in before you can comment on or make changes to this bug.