[Webkit-unassigned] [Bug 273069] New: Content Scripts do not match on the URL query

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 22 08:44:56 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=273069

            Bug ID: 273069
           Summary: Content Scripts do not match on the URL query
           Product: WebKit
           Version: Safari 17
          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, webkit-bug-importer at group.apple.com

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

-- 
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/20240422/41c9ca15/attachment.htm>


More information about the webkit-unassigned mailing list