rem: .getService(Components.interfaces.nsIURIFixup); 
add: .getService(nsCI.nsIURIFixup); 
context: function MiniNavStartup(){  var homepage = "http://www.mozilla.org";  try {    gURLBar = document.getElementById("urlbar");    gURLBar.setAttribute("completedefaultindex", "true");        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);    var bookmarkstore=null;     try {      gPref = Components.classes["@mozilla.org/preferences-service;1"]                         .getService(Components.interfaces.nsIPrefBranch);      var page = gPref.getCharPref("browser.startup.homepage");      var bookmarkstore = gPref.getCharPref("browser.bookmark.store");      if (page != null)      {        var fixedUpURI = gURIFixup.createFixupURI(page, 2 /*fixup url*/ );        homepage = fixedUpURI.spec;      }    } catch (ignore) {}        } catch (e) {    alert("Error trying to startup browser.  Please report this as a bug:\n" + e);  }  loadURI(homepage);  loadBookmarks(bookmarkstore);    /*   * We add event handler to catch the right and left keys on the main_MenuPopup    */  document.addEventListener("keypress",eventHandlerMenu,true);  /*    * Override the title attribute <title /> in this doc with a setter.   * This is our workaround solution so that when the tabbrowser::updateTitle   * tries to update this document's title, nothing happens. Bug 311564   */      document.__defineSetter__("title",function(x){}); // Stays with the titled defined by the XUL element.       /*   * Sync UI zoom level    */   syncUIZoom();    /*    * Add event clicks to Minimo toolbars and also to the mStrip BOX in the tabbrowser   */  getBrowser().mStrip.addEventListener("click",BrowserWithoutSNAV,false);  document.getElementById("mini-toolbars").addEventListener("click",BrowserWithoutSNAV,false);    getBrowser().addEventListener("DOMLinkAdded", BrowserLinkAdded, false);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/462b1ace82ab253c3fcbe25a6733f9bb31b3c8cb/minimo.js/buggy/minimo/chrome/content/minimo.js