rem: if (currentNode.getAttribute("hidden") == "true") { 
add:  if ((currentNode instanceof XULElement) && currentNode.hidden) { 
context: function SearchBarToggled(){  var searchBox = document.getElementById('searchBox');  if (searchBox)  {    var attribValue = searchBox.getAttribute("hidden") ;    if (attribValue == "true")    {      /*come out of quick search view */      if (gDBView && gDBView.viewType == nsMsgViewType.eShowQuickSearchResults)        onClearSearch();    }    else    {      /*we have to initialize searchInput because we cannot do it when searchBox is hidden */      var searchInput = GetSearchInput();      searchInput.value="";    }  }  for (var currentNode = top.document.commandDispatcher.focusedElement; currentNode; currentNode = currentNode.parentNode) {    if (currentNode.getAttribute("hidden") == "true") {      SetFocusThreadPane();      return;    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f43543f43869257b3f13f6118a4c367028fe4f66/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js