Closed Bug 1507357 Opened 6 years ago Closed 5 years ago

DOM URL object doesn't allow setting pathname when underlying implementation is SimpleURI

Categories

(Core :: Networking, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox65 --- wontfix
firefox66 --- fixed

People

(Reporter: loganfsmyth, Assigned: valentin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

The 'pathname' setter on the URL constructor doesn't always work.

> var url = new URL("webpack:///foo");
> url.pathname = "/path";
> url.pathname;
> // "///foo"

The extra "//" in the unexpected result is covered by https://bugzilla.mozilla.org/show_bug.cgi?id=1507355 so that can be ignored, but the core of it is that the setter is a no-op. It appears to be unimplemented: https://hg.mozilla.org/mozilla-central/file/tip/netwerk/base/nsSimpleURI.cpp#l773
Blocks: url
Component: DOM: Core & HTML → Networking
Assignee: nobody → valentin.gosu
Priority: -- → P2
Whiteboard: [necko-triaged]
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/536e641e0d3f
Implement nsSimpleURI::SetFilePath r=kershaw
https://hg.mozilla.org/mozilla-central/rev/536e641e0d3f
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: