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)

defect

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)

Priority: -- → P2
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
Component: DOM → DOM: Core & HTML
Component: DOM: Core & HTML → DOM: Networking
Whiteboard: [necko-triaged]
Severity: normal → S3

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

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
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
Regressions: 1850954
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: