include_globs not supported for content_scripts

Currently trying to port a web extension over to safari which heavily relies on the include_globs property of content_scripts.

Is this something Safari plans to support?

Replies

Globs are not supported at this time. Can you convert your glob expressions into match patterns instead?

Please send us feedback via Feedback Assistant on what you are trying to do with an example manifest file. Thanks!
The use case 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.

Any update on this? Still didn't hear anything on my feedback assistent ticket/case.

See feedback assistant ticket: https://feedbackassistant.apple.com/feedback/9612462