[Webkit-unassigned] [Bug 201341] New: "; " incorrectly encoded when searching from the address bar

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 30 08:05:39 PDT 2019


            Bug ID: 201341
           Summary: ";" incorrectly encoded when searching from the
                    address bar
           Product: WebKit
           Version: Safari 12
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: konrad at duckduckgo.com

Created attachment 377705

  --> https://bugs.webkit.org/attachment.cgi?id=377705&action=review

Screenshot showing three browser windows: Chrome, Firefox and Safari. All three browsers show search results for "tl;dr" done from address bar. DDG SERP for Safari shows results for "tl".

Steps to reproduce:

1. Set search engine to DuckDuckGo.
2. Search for "tl;dr" from the address bar.

Expected result:

Requested URL should be "https://duckduckgo.com/?q=tl%3Bdr" and DDG SERP should show results for "tl;dr".

Actual result:

Requested URL is "https://duckduckgo.com/?q=tl;dr&t=osx" (";" is not encoded) and, as a result, DDG SERP shows results for "tl" only.

- Relevant specs:
--- https://www.w3.org/TR/html401/appendix/notes.html#h-B.2.2 
--- https://tools.ietf.org/html/rfc1866#section-8.2.1 (recommends supporting ';' as well as '&' for query delimiters)
--- https://tools.ietf.org/html/rfc3986#section-2.2 (';' defined as a 'sub-delim' alongside '&' and others)
--- https://tools.ietf.org/html/rfc3986#appendix-A

- Common application server implementations considering ';' as equivalent to '&':
--- RoR - https://github.com/rack/rack/blob/5e08d39b323d37fd354f63bac0fc30047c528e35/lib/rack/query_parser.rb#L9
--- Python - https://github.com/python/cpython/blob/6b50c10f675a9e8438024c5fcc592b0d38d8c62d/Lib/urllib/parse.py#L716-L720
--- Perl - https://metacpan.org/pod/release/KAZEBURO/WWW-Form-UrlEncoded-0.26/lib/WWW/Form/UrlEncoded.pm#Parser-rules

- Issue does not happen in Chrome and Firefox (see attached screenshot comparing Chrome, Firefox and Safari).

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/20190830/5880a7b1/attachment.html>

More information about the webkit-unassigned mailing list