Safari incorrectly ignores the query string when matching match patterns. Giving the following match pattern: "https://example.com/*query*" Safari matches only when the "query" is part of the pathname, not the query string. It should also match the following URL: https://example.com/?query=1 Example extension: https://github.com/carlosjeurissen/webext-tech-demo-extensions/tree/main/issues/safari-content-script-query-match
This has been tested in Safari 17 and Safari Technology Preview 192. In both no match is made on the URL query.
Carlos, do you know if this is a regression from previous behavior or has Safari always behaved this way?
<rdar://problem/128621567>
Thanks for looking into this! I can not rule out this used to work at some point in the past.