Closed Bug 102701 Opened 23 years ago Closed 15 years ago

Need to revisit String usage after iDNS landing

Categories

(Core :: XPCOM, defect, P3)

defect

Tracking

()

RESOLVED INCOMPLETE
mozilla1.0.1

People

(Reporter: tetsuroy, Assigned: tetsuroy)

References

()

Details

I see the code segment char* urlStr = url.ToNewCString() where urlStr may get corrupted if url contains non-ascii DNS. ( see above URL )
Depends on: 42898
the iDNS checkin did not change anything having to do with the way URLs are stored. the URL parts are UTF8, though there are some bugs in which portions of the URL (in particular the hostname) are treated as ASCII. so, i suspect that this bug can be marked INVALID.
darin: thanks for your input. I'll verify it. == assign to myself
Assignee: scc → yokoyama
Please see a related bug 102656.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.5
Target Milestone: mozilla0.9.5 → mozilla0.9.6
P3. Mark as m1.0
Priority: -- → P3
Target Milestone: mozilla0.9.6 → mozilla1.0
This led me to do some testing. I loaded http://playground.i-dns.net/mozilla/samples/jpsjis.html and dragged one of the URLs onto the desktop to create a shortcut. The location shown is url-escaped (%XX), which is good. But it is the raw SJIS values. And since internet shortcuts do not have a charset associated with them, it is impossible to recover the UTF8 from it. Maybe we should do something similar to bug 102656, i.e. convert the hostname part into UTF8 first before creating the shortcut? Okay I realize that this is slightly different from the title of this bug, but still related. But this means that if internet shortcuts were created as url escaped UTF8-hostname then we're fine. Interestingly, dragging the URL back into Mozilla is fine, because XPIDN does the encoding detection. CC: nhotta@netscape.com
Target Milestone: mozilla1.0 → mozilla0.9.7
I'll wait unitl bug 102656 gets checked in.
Depends on: 102656
Target Milestone: mozilla0.9.7 → mozilla0.9.8
moving to 1.0
Target Milestone: mozilla0.9.8 → mozilla1.0
post 1.0
Target Milestone: mozilla1.0 → mozilla1.0.1
Blocks: 237820
QA Contact: scc → string
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.