[Webkit-unassigned] [Bug 246613] New: include_globs not supported for content_scripts
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 17 04:40:14 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=246613
Bug ID: 246613
Summary: include_globs not supported for content_scripts
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Extensions
Assignee: webkit-unassigned at lists.webkit.org
Reporter: carlosj-webkit-bugzilla at jeurissen.co
CC: timothy at apple.com
Currently trying to port a web extension over to safari which heavily relies on the include_globs property of content_scripts. There is currently no alternative here.
One of the use cases here is to help collapse permissions.
If you have these two content scripts:
Code Block language
{
"css": [ "style-a.css" ],
"matches": [ "https://*.example.com/*" ],
"include_globs": [ "https://a.example.com/*style=a*" ],
"run_at": "document_start"
},
{
"css": [ "style-b.css" ],
"matches": [ "https://*.example.com/*" ],
"include_globs": [ "https://b.example.google.com/*style=b*" ],
"run_at": "document_start"
}
The permissions for these content scripts would merge into *.example.com, and the permission would be a clean host permission.
This issue has previously been reported in the Feedback Assistant and the Forum:
https://feedbackassistant.apple.com/feedback/9612462
https://developer.apple.com/forums/thread/662114
--
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/20221017/bde3be6b/attachment.htm>
More information about the webkit-unassigned
mailing list