Closed
Bug 111072
Opened 24 years ago
Closed 24 years ago
nsIOService::ExtractUrlPart does not return correct HOST (flag=IOService.url_Host)
Categories
(Core :: Networking, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla0.9.7
People
(Reporter: cmanske, Assigned: darin.moz)
References
Details
Attachments
(1 file)
|
1.17 KB,
patch
|
cmanske
:
review+
mscott
:
superreview+
|
Details | Diff | Splinter Review |
With recent changes to network code for bug 103916, nsIOService::ExtractUrlPart
doesn't seem to return the correct host for cases like:
"file:///M:/myfile.html"
Current code returns the entire path: "///M:/myfile.html" when trying to obtain
just the host part.
| Reporter | ||
Comment 1•24 years ago
|
||
This was discovered investigating failure in Composer's "MakeRelativeUrl()" JS
method -- adding dependency.
Blocks: 110756
| Assignee | ||
Comment 2•24 years ago
|
||
i see this too... looks like it happens whenever the url contains an empty
authority section.
| Assignee | ||
Comment 3•24 years ago
|
||
| Assignee | ||
Comment 4•24 years ago
|
||
andreas: can you review this patch? thx!
| Reporter | ||
Comment 5•24 years ago
|
||
Comment on attachment 58740 [details] [diff] [review]
v1.0 patch
Ok, initialize the out param and check the authority length.
Also return if there's no path.
Seems pretty clear to me even though I'm not a network specialist!
r=cmanske
Attachment #58740 -
Flags: review+
| Reporter | ||
Comment 6•24 years ago
|
||
Oh yea, and I also applied the patch and it fixed the problem in bug 110756.
Comment 8•24 years ago
|
||
Comment on attachment 58740 [details] [diff] [review]
v1.0 patch
looks good to me too
r=andreas.otte@debitel.net
Comment 9•24 years ago
|
||
Comment on attachment 58740 [details] [diff] [review]
v1.0 patch
sr=mscott
Attachment #58740 -
Flags: superreview+
| Assignee | ||
Updated•24 years ago
|
Severity: normal → critical
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla0.9.7
| Assignee | ||
Comment 10•24 years ago
|
||
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•