Open Bug 1902687 Opened 2 years ago Updated 1 year ago

Incorrect parsing file urls with hosts

Categories

(Core :: Networking, defect, P2)

defect

Tracking

()

People

(Reporter: edgul, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Bug 1873976 handled similar file: WPTs but did not address those containing hosts, like:

Parsing: </> against <file:///C:/a/b>
Parsing: </> against <file://h/C:/a/b>

Let's address these and if there are any similar that don't already overlap with bug 1507354

No longer depends on: 1873976
See Also: → 1873976, 1507354
Severity: -- → S4
Priority: -- → P2

This one could be addressed here as well: Parsing: </> against <file://h/a/b>

For </> against <file:///C:/a/b>

The problem might be from https://searchfox.org/mozilla-central/source/netwerk/base/nsStandardURL.cpp#2746-2749; how we overwrite everything after the authority. But adjusting this might be a bruteforce solution, might need to handle this case with the other two cases with host change.

Whiteboard: [necko-triaged] → [necko-triaged][necko-priority-next]
Depends on: 1922025
Whiteboard: [necko-triaged][necko-priority-next] → [necko-triaged]
You need to log in before you can comment on or make changes to this bug.