зеркало из https://github.com/mozilla/pjs.git
Init for the homebar ,and the BrowserOpenURLasTab function
This commit is contained in:
Родитель
fb25c61d06
Коммит
c6bea196e0
|
@ -368,6 +368,13 @@ nsBrowserStatusHandler.prototype =
|
||||||
*/
|
*/
|
||||||
gURLBarBoxObject=(document.getBoxObjectFor(document.getElementById("urlbar").inputField));
|
gURLBarBoxObject=(document.getBoxObjectFor(document.getElementById("urlbar").inputField));
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Homebar init...
|
||||||
|
*/
|
||||||
|
|
||||||
|
bmInitXUL(document,document.getElementById("browserleftbar"));
|
||||||
|
document.getElementById("browserleftbar").style.display="block";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -619,6 +626,19 @@ function BrowserOpenLinkAsTab()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Used by the Homebar - Open URL as Tab.
|
||||||
|
* WARNING: We need to validate this URL through an existing security mechanism.
|
||||||
|
*/
|
||||||
|
|
||||||
|
function BrowserOpenURLasTab(tabUrl) {
|
||||||
|
try {
|
||||||
|
gBrowser.selectedTab = gBrowser.addTab(tabUrl);
|
||||||
|
browserInit(gBrowser.selectedTab);
|
||||||
|
} catch (e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FOR - keyboard acessibility - context menu for tabbed area ***
|
* FOR - keyboard acessibility - context menu for tabbed area ***
|
||||||
* Launches the popup for the tabbed area / tabbrowser. Make sure to call this function
|
* Launches the popup for the tabbed area / tabbrowser. Make sure to call this function
|
||||||
|
|
Загрузка…
Ссылка в новой задаче