context: function MiniNavStartup(){  var homepage = "http://www.mozilla.org";  try {    gURLBar = document.getElementById("urlbar");    var currentTab=getBrowser().selectedTab;    browserInit(currentTab);    gSelectedTab=currentTab;        var BrowserStatusHandler = new nsBrowserStatusHandler();    BrowserStatusHandler.init();    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;    gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;2"]                               .getService(Components.interfaces.nsIBrowserHistory);      gURIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"]                          .getService(Components.interfaces.nsIURIFixup);    try {      var pref = Components.classes["@mozilla.org/preferences-service;1"]                         .getService(Components.interfaces.nsIPrefBranch);      var page = pref.getCharPref("browser.startup.homepage");      if (page != null)        homepage = page;    } catch (ignore) {}        } catch (e) {    alert("Error trying to startup browser.  Please report this as a bug:\n" + e);  }  loadURI(homepage);  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/43428371f9b96dc321384c3016e31de6c609c9af/minimo.js/buggy/minimo/chrome/content/minimo.js