rem: var BrowserStatusHandler = new nsBrowserStatusHandler(); BrowserStatusHandler.init(); try { 
add: gURLBar = document.getElementById("urlbar"); var currentTab=getBrowser().selectedTab; browserInit(currentTab); gSelectedTab=currentTab;  var BrowserStatusHandler = new nsBrowserStatusHandler(); BrowserStatusHandler.init(); 
context: function MiniNavStartup(){  gPrefs = Components.classes["@mozilla.org/preferences-service;1"]                      .getService(Components.interfaces.nsIPrefBranch);  gURLBar = document.getElementById("urlbar");  var currentTab=getBrowser().selectedTab;  browserInit(currentTab);  gSelectedTab=currentTab;  var homepage = "http://www.mozilla.org";  try {    homepage = gPrefs.getCharPref("browser.startup.homepage");  } catch(ex) {}  var BrowserStatusHandler = new nsBrowserStatusHandler();  BrowserStatusHandler.init();  try {    getBrowser().addProgressListener(BrowserStatusHandler, Components.interfaces.nsIWebProgress.NOTIFY_ALL);      // Current build was not able to get it. Taking it from the tab browser element.     // var webNavigation=getBrowser().webNavigation;    var refBrowser=getBrowser().getBrowserForTab(currentTab);    var webNavigation=refBrowser.webNavigation;        webNavigation.sessionHistory = Components.classes["@mozilla.org/browser/shistory;1"].createInstance(Components.interfaces.nsISHistory);    getBrowser().docShell.QueryInterface(Components.interfaces.nsIDocShellHistory).useGlobalHistory = true;  } catch (e) {    alert("Error trying to startup browser.  Please report this as a bug:\n" + e);  }  loadURI(homepage);  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/79787e5d5c6ea9b14d06a340823c64c31b01e9d5/minimo.js/buggy/minimo/chrome/content/minimo.js