Closed
Bug 1873940
Opened 1 year ago
Closed 1 year ago
mozurl_host_port returns the wrong thing for non-spec:/.//
Categories
(Core :: Networking, defect, P2)
Core
Networking
Tracking
()
RESOLVED
FIXED
126 Branch
| Tracking | Status | |
|---|---|---|
| firefox126 | --- | fixed |
People
(Reporter: valentin, Assigned: dotoole)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
pub extern "C" fn mozurl_host_port(url: &MozURL) -> SpecSlice {
(&url[Position::BeforeHost..Position::BeforePath]).into()
}
host returns the right thing, but host_port returns a slice. This works for most URLs, but the non-idempotency quirk makes it return /. as a host:port.
This should be fixed, probably by checking if the url has a host before returning.
Blocks: interop-2024-url
Updated•1 year ago
|
Attachment #9392581 -
Attachment description: WIP: Bug 1873940 - added port check to mozurl_host_port. r=valentin → Bug 1873940 - added port check to mozurl_host_port. r=valentin
Pushed by dotoole@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e642cf84fa6f
added port check to mozurl_host_port. r=necko-reviewers,valentin
Comment 3•1 year ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox126:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•