bug 277625 - Context menu Copy Email Address not unescaping, r+sr=bz, a=asa

This commit is contained in:
mconnor%myrealbox.com 2005-01-10 07:34:47 +00:00
Родитель 7e6bdd45a4
Коммит 4f21817389
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -642,13 +642,12 @@ nsContextMenu.prototype = {
}
// Let's try to unescape it using a character set
// in case the address is not ASCII.
try {
var ownerDocument = new XPCNativeWrapper(this.target, "ownerDocument").ownerDocument;
var characterSet = new XPCNativeWrapper(ownerDocument, "characterSet").characterSet;
const textToSubURI = Components.classes["@mozilla.org/intl/texttosuburi;1"]
.getService(Components.interfaces.nsITextToSubURI);
addresses = textToSubURI.unEscapeNonAsciiURI(characterSet, addresses);
addresses = textToSubURI.unEscapeURIForUI(characterSet, addresses);
}
catch(ex) {
// Do nothing.