add: var observerService = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService); observerService.addObserver(dlObserver, "dl-start", false); 
context: function delayedStartup(aElt){  // loads the services  initServices();  initBMService();  gBrowser.addEventListener("load", function(evt) { setTimeout(loadEventHandlers, 0, evt); }, true);    window.addEventListener("keypress", ctrlNumberTabSelection, true);  if (gMustLoadSidebar) {    var sidebar = document.getElementById("sidebar");    sidebar.setAttribute("src", window.opener.document.getElementById("sidebar").getAttribute("src"));  }    // Perform default browser checking (after window opens).  checkForDefaultBrowser();  // now load bookmarks after a delay  BMSVC.ReadBookmarks();  var bt = document.getElementById("bookmarks-toolbar");  if ("toolbar" in bt)    bt.toolbar.builder.rebuild();         // called when we go into full screen, even if it is   // initiated by a web page script  addEventListener("fullscreen", onFullScreen, false);  WindowFocusTimerCallback(aElt);  SetPageProxyState("invalid", null);  var toolbox = document.getElementById("navigator-toolbox");  toolbox.customizeDone = BrowserToolboxCustomizeDone;  // Get the preferences service  gPrefService = Components.classes["@mozilla.org/preferences-service;1"]                              .getService(Components.interfaces.nsIPrefService);  gPrefService = gPrefService.getBranch(null);  updateHomeTooltip();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8b1d48858d5021b24df022745cd84faaeb4781bc/browser.js/buggy/browser/base/content/browser.js