зеркало из https://github.com/mozilla/pjs.git
bug 215797 (by mistake, ff part was not checked in and mozilla part was checked in with 'dump()') r=bsmedberg, sr=darin, moa=bryner
This commit is contained in:
Родитель
26641a73bf
Коммит
279d2136ff
|
@ -138,7 +138,7 @@ function OpenURL(aWhere, event)
|
|||
return;
|
||||
|
||||
var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);
|
||||
var url = builder.getResourceAtIndex(currentIndex).Value;
|
||||
var url = builder.getResourceAtIndex(currentIndex).ValueUTF8;
|
||||
|
||||
if (!checkURLSecurity(url))
|
||||
return;
|
||||
|
|
|
@ -282,7 +282,6 @@ function OpenURL(aTarget)
|
|||
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"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче