rem:  createBrowserInstance(); 
add: var succeeded = false; var webNavigation = getWebNavigation(); try {  appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); 
context: function MiniNavStartup(){  dump("*** MiniNavStartup\n");  window.XULBrowserWindow = new nsXULBrowserWindow();  // Create the browser instance component.  createBrowserInstance();  window._content.appCore= appCore;  if (appCore == null) {    // Give up.    window.close();  }  // Initialize browser instance..  appCore.setWebShellWindow(window);  // create the embedding command handler  netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  var commandHandlerInit = Components      .classes["@mozilla.org/embedding/browser/nsCommandHandler;1"]      .createInstance(Components.interfaces.nsICommandHandlerInit);  // Attach it to the window  commandHandlerInit.window = window;  commandHandler = commandHandlerInit.QueryInterface(Components.interfaces.nsICommandHandler);  gURLBar = document.getElementById("urlbar");  dump("gURLBar " + gURLBar + "\n");}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/5f432f1928b60f033360e2b15b4c9bbd16cbbcc2/mini-nav.js/buggy/embedding/browser/chrome/content/mini-nav.js