зеркало из https://github.com/mozilla/pjs.git
A few preparations for later checkins for bug 46200. r=alecf, a=ben
This commit is contained in:
Родитель
a7c2c1dbeb
Коммит
31b2b02b2f
|
@ -387,6 +387,20 @@ nsXULBrowserWindow.prototype =
|
|||
}
|
||||
}
|
||||
|
||||
function getBrowser()
|
||||
{
|
||||
return document.getElementById("content");
|
||||
}
|
||||
|
||||
function getWebNavigation()
|
||||
{
|
||||
try {
|
||||
return getBrowser().webNavigation;
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function UpdateBackForwardButtons()
|
||||
{
|
||||
if(!backButton)
|
||||
|
@ -1398,14 +1412,11 @@ function BrowserEditBookmarks()
|
|||
}
|
||||
}
|
||||
|
||||
function loadURI(href)
|
||||
{
|
||||
var content = document.getElementById("content")
|
||||
var boxObject = content.boxObject.QueryInterface(Components.interfaces.nsIBrowserBoxObject)
|
||||
var docShell = boxObject.docShell
|
||||
var webNavigation = docShell.QueryInterface(Components.interfaces.nsIWebNavigation)
|
||||
return webNavigation.loadURI(href, 0);
|
||||
}
|
||||
function loadURI(uri)
|
||||
{
|
||||
// window._content.location.href = uri;
|
||||
getWebNavigation().loadURI(uri, Components.interfaces.nsIWebNavigation.LOAD_FLAGS_NONE);
|
||||
}
|
||||
|
||||
function BrowserLoadURL()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче