Backslash converted to forward slash when copying file:// url, even in query string or hash
Categories
(Core :: Networking, defect)
Tracking
()
People
(Reporter: kip.robinson, Unassigned)
References
(Depends on 1 open bug)
Details
(Whiteboard: [necko-backlog])
Attachments
(1 file)
726 bytes,
text/plain
|
Details |
Updated•9 years ago
|
Updated•9 years ago
|
Updated•8 years ago
|
I don't think this is a duplicate of bug 1348876. The underlying causes are different:
Bug 1348876: The address bar decodes "%5C" into "", making the shown URL invalid (and pressing enter in the address bar causes "" to be replaced with "/").
This bug: The backslash replacing algorithm in the URL parser seemingly doesn't stop at "#" or "?" when parsing file: URLs.
Example STR: new URL("file:///#\").hash == "#/"
Oops, markdown ate some backslashes. Let's try again:
I don't think this is a duplicate of bug 1348876. The underlying causes are different:
Bug 1348876: The address bar decodes %5C
into \\
, making the shown URL invalid (and pressing enter in the address bar causes \
to be replaced with /
).
This bug: The backslash replacing algorithm in the URL parser seemingly doesn't stop at #
or ?
when parsing file: URLs.
For example, new URL("file:///#\\").hash
returns #/
Description
•