[Webkit-unassigned] [Bug 191489] New: URLSearchParams parsing seemings to be broken for full URLs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 9 14:57:35 PST 2018


            Bug ID: 191489
           Summary: URLSearchParams parsing seemings to be broken for full
           Product: WebKit
           Version: Other
          Hardware: PC
                OS: Windows 10
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: granowski at gmail.com

I think I found a bug where if you pass a full URL into the constructor of the URLSearchParams in the browser, then you will not receive what you would expect.

Here's how to reproduce:
var s = "https://localhost/?code=123";
var p = new URLSearchParams(s);

(produces "123")

(produces null)

I would have expected the constructor to correctly parse the full URL and build the list of query parameters.

I have identified the section of code in the C++ of webkit that does the parsing of the URL and I believe I can fix it and submit a Pull Request of some sort if asked to, but would like some confirmation if this for a bug.


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/20181109/d9f4f009/attachment.html>

More information about the webkit-unassigned mailing list