mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 17:16:12 +00:00
bug 215797 : can't open an entry with IDN in History (r=bsmedberg, sr=darin, moa=bryner)
This commit is contained in:
parent
362a0ccd75
commit
358a95fb4a
@ -279,9 +279,10 @@ function OpenURL(aTarget)
|
||||
{
|
||||
var currentIndex = gHistoryTree.currentIndex;
|
||||
var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);
|
||||
var url = builder.getResourceAtIndex(currentIndex).Value;
|
||||
var url = builder.getResourceAtIndex(currentIndex).ValueUTF8;
|
||||
var uri = Components.classes["@mozilla.org/network/standard-url;1"].
|
||||
createInstance(Components.interfaces.nsIURI);
|
||||
dump("history: url = " + url + "\n");
|
||||
uri.spec = url;
|
||||
if (uri.schemeIs("javascript") || uri.schemeIs("data")) {
|
||||
var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"]
|
||||
|
Loading…
Reference in New Issue
Block a user