Closed
Bug 60178
Opened 24 years ago
Closed 23 years ago
Mozilla shows escaped text in status text field
Categories
(Core :: Internationalization, defect, P3)
Core
Internationalization
Tracking
()
VERIFIED
FIXED
mozilla0.9.3
People
(Reporter: bugzilla, Assigned: tetsuroy)
References
()
Details
(Keywords: testcase)
Attachments
(6 files)
107 bytes,
text/html
|
Details | |
484 bytes,
text/html
|
Details | |
2.20 KB,
patch
|
Details | Diff | Splinter Review | |
1.91 KB,
patch
|
Details | Diff | Splinter Review | |
2.49 KB,
patch
|
Details | Diff | Splinter Review | |
2.30 KB,
patch
|
Details | Diff | Splinter Review |
If you have the following HTML tag: <A href='mailto:"Mogens Kühn Pedersen" <mk.inf@cbs.dk>'>mk.inf@cbs.dk</A> the status field of the browser says: mailto:%22Mogens%20K%FChn%20Pedersen%22%20%3Cmk.inf%40cbs.dk%3E Expected: The status field should show the correct non escaped link. Trunk Mozilla Build 2000111420
Comment 1•24 years ago
|
||
henrik, could you provide a url that has such a link for us to test? bill, would you know who'd be the one to fix this? thx!
Reporter | ||
Comment 2•24 years ago
|
||
I'm trying to set the URL link in this bug so that it shows the problem (although I'm not sure Bugzilla will let me do it)...
Hmm, that's interesting; looks like Bugzilla won't let me do that.
I'm not sure that's a valid mailto: url (with the name enclosed in ""). I'll set up a test page on my internal web server and try it out with 4.x and IE. This bug can stay with xpapps although it might really be do to code inside the Gecko HTMLLinkElement.
Reporter | ||
Comment 6•24 years ago
|
||
Works in Netscape 4.76
Reporter | ||
Comment 7•24 years ago
|
||
Invalid mailto: or not. The status text should show the link. Not something else, like escaped text....
OK, I've attached another sample with the same mailto: link except that I've replaced the u-umlaut. That one works fine. So the problem seems related to the presence of certain characters in the URL. I think this is definitely not our bug. But I'm not sure if it's an intl thing or in Gecko url-parsing or elsewhere. Sarah, how about you decide and reassign (how's that for passing the buck)?
Comment 10•24 years ago
|
||
thanks for the testcase, bill! hmmm...who should get this... i'll try i18n this time. :)
Assignee: don → nhotta
Component: XP Apps → Internationalization
Keywords: testcase
QA Contact: sairuh → teruko
Comment 11•24 years ago
|
||
Reassign to yokoyama. Please look at nsWebShell::OnOverLink, http://lxr.mozilla.org/seamonkey/search?string=nsWebShell%3A%3AOnOverLink and get a document charset then use nsITextToSubURI, http://lxr.mozilla.org/seamonkey/source/intl/uconv/idl/nsITextToSubURI.idl
Assignee: nhotta → yokoyama
Assignee | ||
Comment 12•24 years ago
|
||
Updating the target milestone.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Assignee | ||
Comment 13•23 years ago
|
||
changing milestone to 0.9.3
Target Milestone: Future → mozilla0.9.3
Assignee | ||
Comment 14•23 years ago
|
||
Assignee | ||
Comment 15•23 years ago
|
||
nhotta: can you review? thanks
Comment 16•23 years ago
|
||
r=nhotta If you use NS_ConvertUCS2toUTF8 then no need to free the memory manually. e.g. rv = textToSubURI->UnEscapeAndConvert(NS_ConvertUCS2toUTF8(charset.GetUnicode()).get(), NS_ConvertUCS2toUTF8(aURLSpec).get(), &uStr);
Comment 17•23 years ago
|
||
It looks like this will not only impact mailto: url but all other url. Is this the right thing to do ? add adamlock@netscape.com and vidur@netscape.com to the cc list.
Comment 18•23 years ago
|
||
origional I think this is a nsbranch low risk bug. But after look at the patch and bug report. I am not that sure now. seems higher risk then I thought.
Assignee | ||
Comment 19•23 years ago
|
||
Comment 20•23 years ago
|
||
I didn't realized that this bug is orignally for mailto URI. I will change mailto URI to use UTF-8 for bug 87202, so this patch will not work for mailto URI. There is a plan to make internal URI to be UTF-8. news://news.mozilla.org/3AFAD8BC.5020805%40netscape.com I think we want to change this part after that happens then we would only need UCS2 to UTF-8 conversion. Sorry, I did not find it earlier.
Assignee | ||
Comment 21•23 years ago
|
||
Making 87202 as a depend of this bug. Will check this bug once we check-in the patch for 87202.
Depends on: 87202
Assignee | ||
Comment 22•23 years ago
|
||
Comment 24•23 years ago
|
||
Please move nsCOMPtr<nsITextToSubURI> textToSubURI out of the if block, or not use nsITextToSubURI for mailto (use nsUnescape and NS_ConvertUTF8toUCS2 instead).
Assignee | ||
Comment 25•23 years ago
|
||
Comment 26•23 years ago
|
||
r=nhotta
Assignee | ||
Updated•23 years ago
|
Whiteboard: request for /r=????? → /r=nhotta, request for /sr=?
Comment 27•23 years ago
|
||
sr=blizzard
Assignee | ||
Updated•23 years ago
|
Whiteboard: /r=nhotta, request for /sr=? → /r=nhotta, /sr=blizzard
Assignee | ||
Comment 28•23 years ago
|
||
checked-in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: /r=nhotta, /sr=blizzard
You need to log in
before you can comment on or make changes to this bug.
Description
•