Bug 273069
| Summary: | Content Scripts do not match on the URL query | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Carlos J. <carlosj-webkit-bugzilla> |
| Component: | WebKit Extensions | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | timothy, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 17 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Carlos J.
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Carlos J.
This has been tested in Safari 17 and Safari Technology Preview 192. In both no match is made on the URL query.
Timothy Hatcher
Carlos, do you know if this is a regression from previous behavior or has Safari always behaved this way?
Radar WebKit Bug Importer
<rdar://problem/128621567>
Carlos J.
Thanks for looking into this! I can not rule out this used to work at some point in the past.