diff --git a/minimo/chrome/content/minimo.js b/minimo/chrome/content/minimo.js index aaa581d877f..dbabec5d2fd 100755 --- a/minimo/chrome/content/minimo.js +++ b/minimo/chrome/content/minimo.js @@ -368,6 +368,13 @@ nsBrowserStatusHandler.prototype = */ 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 *** * Launches the popup for the tabbed area / tabbrowser. Make sure to call this function