[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
https://bugs.webkit.org/show_bug.cgi?id=191489
Bug ID: 191489
Summary: URLSearchParams parsing seemings to be broken for full
URLs
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);
p.get('https://localhost/?code');
(produces "123")
p.get('code');
(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.
Thanks,
DG
--
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