Closed Bug 60178 Opened 24 years ago Closed 23 years ago

Mozilla shows escaped text in status text field

Categories

(Core :: Internationalization, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.3

People

(Reporter: bugzilla, Assigned: tetsuroy)

References

()

Details

(Keywords: testcase)

Attachments

(6 files)

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
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!
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.
Works in Netscape 4.76
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)?
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
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
Updating the target milestone.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
changing milestone to 0.9.3
Target Milestone: Future → mozilla0.9.3
nhotta: can you review? thanks
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);
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.
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. 
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.
Making 87202 as a depend of this bug.  Will check this bug once
we check-in the patch for 87202. 

Depends on: 87202
nhotta: can you review?
Whiteboard: request for /r=?????
Please move nsCOMPtr<nsITextToSubURI> textToSubURI out of the if block, or not
use  nsITextToSubURI for mailto (use nsUnescape and NS_ConvertUTF8toUCS2 instead).
r=nhotta
Whiteboard: request for /r=????? → /r=nhotta, request for /sr=?
sr=blizzard
Whiteboard: /r=nhotta, request for /sr=? → /r=nhotta, /sr=blizzard
checked-in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: /r=nhotta, /sr=blizzard
Verified as fixed in 8-28 trunk build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: