From c6bea196e05cc9e78fa98c179e149fdb69d2db3b Mon Sep 17 00:00:00 2001 From: "mgalli%geckonnection.com" Date: Fri, 3 Feb 2006 22:25:42 +0000 Subject: [PATCH] Init for the homebar ,and the BrowserOpenURLasTab function --- minimo/chrome/content/minimo.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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