rem: succeeded = true; 
add:  var interfaceRequestor = getBrowser().docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor); var webProgress = interfaceRequestor.getInterface(Components.interfaces.nsIWebProgress); webProgress.addProgressListener(gBrowserStatusHandler); 
context: function MiniNavStartup(){  dump("*** MiniNavStartup\n");  window.XULBrowserWindow = new nsXULBrowserWindow();  var succeeded = false;  var webNavigation = getWebNavigation();  try {    // Create the browser instance component.    appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"]                        .createInstance(Components.interfaces.nsIBrowserInstance);    webNavigation.sessionHistory = Components.classes["@mozilla.org/browser/shistory;1"]                                             .createInstance(Components.interfaces.nsISHistory);    succeeded = true;  } catch (e) {  }  if (!succeeded) {    // Give up.    dump("Error creating browser instance\n");    window.close();  }  // Initialize browser instance..  appCore.setWebShellWindow(window);  _content.appCore = appCore;  // 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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5ad5ad4564a3e8ded6376bb59916e22c4051d1d5/mini-nav.js/buggy/embedding/browser/chrome/content/mini-nav.js