rem: if (document.firstChild.getAttribute('windowtype') == "mail:messageWindow") 
add: if (document.documentElement.getAttribute('windowtype') == "mail:messageWindow") 
context:   isCommandEnabled: function(command)  {    switch ( command )    {      case "cmd_viewSecurityStatus":      {        if (document.firstChild.getAttribute('windowtype') == "mail:messageWindow")        {          return ( gCurrentMessageUri != null);        }        else        {          if (GetNumSelectedMessages() > 0 && gDBView)          {            var enabled = new Object();            enabled.value = false;            var checkStatus = new Object();            gDBView.getCommandStatus(nsMsgViewCommandType.cmdRequiringMsgBody, enabled, checkStatus);            return enabled.value;          }        }              return false;      }      default:        return false;    }    return false;  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/409f5623a2b0eb5c31330e5671fc741803c87a85/msgReadSMIMEOverlay.js/clean/mailnews/extensions/smime/resources/content/msgReadSMIMEOverlay.js