rem: var hasRead = BMSVC.ReadBookmarks(); 
add: var hasRead = BMSVC.readBookmarks(); 
context: function delayedStartup(){  if (gIsLoadingBlank)    prepareForStartup();  // 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");    var sidebarBox = document.getElementById("sidebar-box");    sidebar.setAttribute("src", sidebarBox.getAttribute("src"));  } #ifdef XP_WIN  // Perform default browser checking (after window opens).  try {    var dialogShown = Components.classes["@mozilla.org/winhooks;1"]                    .getService(Components.interfaces.nsIWindowsHooks)                    .checkSettings(window);  } catch(e) {  }#endif  // now load bookmarks after a delay  var hasRead = BMSVC.ReadBookmarks();    var bt = document.getElementById("bookmarks-ptf");  if (bt) {    if (hasRead)      bt.builder.rebuild();    bt.database.AddObserver(BookmarksToolbarRDFObserver);  }  window.addEventListener("resize", BookmarksToolbar.resizeFunc, false);  controllers.appendController(BookmarksMenuController);  // called when we go into full screen, even if it is   // initiated by a web page script  window.addEventListener("fullscreen", onFullScreen, false);  var element;  if (gIsLoadingBlank && gURLBar && !gURLBar.hidden && !gURLBar.parentNode.parentNode.collapsed)    element = gURLBar;  else    element = _content;  // This is a redo of the fix for jag bug 91884  var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]                     .getService(Components.interfaces.nsIWindowWatcher);  if (window == ww.activeWindow) {    element.focus();  } else {    // set the element in command dispatcher so focus will restore properly    // when the window does become active    if (element instanceof Components.interfaces.nsIDOMElement)      document.commandDispatcher.focusedElement = element;    else if (element instanceof Components.interfaces.nsIDOMWindow)      document.commandDispatcher.focusedWindow = element;  }  SetPageProxyState("invalid", null);  var toolbox = document.getElementById("navigator-toolbox");  toolbox.customizeDone = BrowserToolboxCustomizeDone;  gPrefService = Components.classes["@mozilla.org/preferences-service;1"]                              .getService(Components.interfaces.nsIPrefService);  gPrefService = gPrefService.getBranch(null);  var observerService = Components.classes["@mozilla.org/observer-service;1"]                                  .getService(Components.interfaces.nsIObserverService);  observerService.addObserver(dlObserver, "dl-start", false);    // Enable/Disable Form Fill  var pbi = gPrefService.QueryInterface(Components.interfaces.nsIPrefBranchInternal);  pbi.addObserver(gFormFillPrefListener.domain, gFormFillPrefListener, false);  // Initialize  gFormFillPrefListener.toggleFormFill();  updateHomeTooltip();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/ac75afc291609ed4fc9a4d179d8a2c6f57de5886/browser.js/clean/browser/base/content/browser.js