Init for the homebar ,and the BrowserOpenURLasTab function

This commit is contained in:
mgalli%geckonnection.com 2006-02-03 22:25:42 +00:00
Родитель fb25c61d06
Коммит c6bea196e0
1 изменённых файлов: 20 добавлений и 0 удалений

Просмотреть файл

@ -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