rem: var searchBar = document.getElementById("searchbar"); if (searchBar && !searchBar.parentNode.parentNode.collapsed && !(window.getComputedStyle(searchBar.parentNode, null).display == "none")) { searchBar.select(); searchBar.focus(); }  
context: function WebSearch(){  var searchBar = document.getElementById("searchbar");  if (searchBar && !searchBar.parentNode.parentNode.collapsed &&      !(window.getComputedStyle(searchBar.parentNode, null).display == "none")) {    searchBar.select();    searchBar.focus();  }  // XXX: If the search box is hidden, we should open a search dialog (see bug 235204)#ifdef XP_MACOSX  else if (window.location.href != getBrowserURL()) {    var win = getTopWin();    if (win) {      // If there's an open browser window, it should handle this command      win.focus()      win.WebSearch();    }    else {      // If there are no open browser windows, open a new one      win = window.openDialog("chrome://browser/content/", "_blank",                              "chrome,all,dialog=no", "about:blank");      win.addEventListener("load", WebSearchCallback, false);    }  }#endif}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ccac0f4f4ec74f1f71c51366e471b550f0c6d552/browser.js/buggy/browser/base/content/browser.js