Closed
Bug 1347459
Opened 7 years ago
Closed 10 months ago
URL: protocol setter needs to be more restrictive around file
Categories
(Core :: DOM: Networking, defect, P3)
Core
DOM: Networking
Tracking
()
RESOLVED
FIXED
117 Branch
Tracking | Status | |
---|---|---|
firefox117 | --- | fixed |
People
(Reporter: annevk, Assigned: twisniewski)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
See new tests added in https://github.com/w3c/web-platform-tests/pull/5112 and standard changes at https://github.com/whatwg/url/pull/269.
Updated•7 years ago
|
Priority: -- → P2
Comment 1•6 years ago
|
||
Moving to p3 because no activity for at least 1 year(s). See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
Reporter | ||
Updated•3 years ago
|
Component: DOM: Core & HTML → DOM: Networking
Updated•3 years ago
|
Whiteboard: [necko-triaged]
Updated•2 years ago
|
Severity: normal → S3
Assignee | ||
Comment 2•10 months ago
•
|
||
Tests on wpt.fyi:
- https://wpt.fyi/results/url/url-setters-a-area.window.html%253Finclude%253Dfile
- https://wpt.fyi/results/url/url-setters-a-area.window.html%253Fexclude%253D(file%7Cjavascript%7Cmailto)
- https://wpt.fyi/results/url/url-setters.any.html%253Finclude%253Dfile
- https://wpt.fyi/results/url/url-setters.any.worker.html%253Finclude%253Dfile
- https://wpt.fyi/results/url/url-setters.any.html%253Fexclude%253D(file%7Cjavascript%7Cmailto)
- https://wpt.fyi/results/url/url-setters.any.worker.html%253Fexclude%253D(file%7Cjavascript%7Cmailto)
Blocks: interop-2023-url
Assignee | ||
Comment 3•10 months ago
•
|
||
I have a patch to address this in the works (although there are a couple of side-issues which will still prevent some of the related WPTs from passing).
Assignee: nobody → twisniewski
Assignee | ||
Comment 4•10 months ago
|
||
Assignee | ||
Comment 5•10 months ago
|
||
Assignee | ||
Comment 6•10 months ago
|
||
Note that even with this patch, some of the related WPTs will still fail:
new URL("ssh://me@example.net").protocol = "http"
will keep the protocol the same as expected, but add an extra slash to the end:ssh://me@example.net/
new URL("file://hi/path").protocol = "s"
will also keep the protocol the same as expected, but will drop the "hi" part of the URL and add a root slash:file:///path
I'm not quite sure what's causing those issues, but they appear to be preexisting and separate issues from what this patch touches, so I would rather address them in follow-up bugs.
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/07dacad2b549 make the link and URL protocol setters adhere to the URL spec text validating changes of protocol between file and/or special schemes; r=kershaw,necko-reviewers
Comment 8•10 months ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 10 months ago
status-firefox117:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•