mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 774870 - Work - Display unicode characters properly in the location field of the Firefox app bar. r=fryn
--HG-- extra : amend_source : ae1b8c97ed1af70edd0992d3ea75a55645e0bf98
This commit is contained in:
parent
341606e865
commit
c2dfa6e069
@ -243,11 +243,20 @@ var BrowserUI = {
|
||||
|
||||
getDisplayURI: function(browser) {
|
||||
let uri = browser.currentURI;
|
||||
let spec = uri.spec;
|
||||
|
||||
try {
|
||||
uri = gURIFixup.createExposableURI(uri);
|
||||
spec = gURIFixup.createExposableURI(uri).spec;
|
||||
} catch (ex) {}
|
||||
|
||||
return uri.spec;
|
||||
try {
|
||||
let charset = browser.characterSet;
|
||||
let textToSubURI = Cc["@mozilla.org/intl/texttosuburi;1"].
|
||||
getService(Ci.nsITextToSubURI);
|
||||
spec = textToSubURI.unEscapeNonAsciiURI(charset, spec);
|
||||
} catch (ex) {}
|
||||
|
||||
return spec;
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user