rem: XULBrowserWindow.asyncUpdateUI(); 
add: XULBrowserWindow.asyncUpdateUI(); PlacesStarButton.updateState(); 
context: function BrowserToolboxCustomizeDone(aToolboxChanged){#ifdef TOOLBAR_CUSTOMIZATION_SHEET  document.getElementById("customizeToolbarSheetBox").hidden = true;#endif  // Update global UI elements that may have been added or removed  if (aToolboxChanged) {    gURLBar = document.getElementById("urlbar");    gProxyButton = document.getElementById("page-proxy-button");    gProxyFavIcon = document.getElementById("page-proxy-favicon");    gProxyDeck = document.getElementById("page-proxy-deck");    gHomeButton.updateTooltip();    window.XULBrowserWindow.init();  }  // Update the urlbar  var url = getWebNavigation().currentURI.spec;  if (gURLBar) {    gURLBar.value = url == "about:blank" ? "" : url;    SetPageProxyState("valid");    XULBrowserWindow.asyncUpdateUI();      }  // Re-enable parts of the UI we disabled during the dialog  var menubar = document.getElementById("main-menubar");  for (var i = 0; i < menubar.childNodes.length; ++i)    menubar.childNodes[i].setAttribute("disabled", false);  var cmd = document.getElementById("cmd_CustomizeToolbars");  cmd.removeAttribute("disabled");  // XXXmano bug 287105: wallpaper to bug 309953,  // the reload button isn't in sync with the reload command.  var reloadButton = document.getElementById("reload-button");  if (reloadButton) {    reloadButton.disabled =      document.getElementById("Browser:Reload").getAttribute("disabled") == "true";  }#ifdef XP_MACOSX  // make sure to re-enable click-and-hold  if (!getBoolPref("ui.click_hold_context_menus", false))    SetClickAndHoldHandlers();#endif  initBookmarksToolbar();#ifndef TOOLBAR_CUSTOMIZATION_SHEET  // XXX Shouldn't have to do this, but I do  window.focus();#endif}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/acea3379769981930b22e1502c52a623c70e681d/browser.js/buggy/browser/base/content/browser.js