rem: var msgIdentityElement             = GetMsgIdentityElement(); var msgAddressingWidgetTreeElement = GetMsgAddressingWidgetTreeElement(); var msgSubjectElement              = GetMsgSubjectElement(); var msgAttachmentElement           = GetMsgAttachmentElement(); 
add: var msgIdentityElement         = GetMsgIdentityElement(); var msgAddressingWidgetElement = GetMsgAddressingWidgetElement(); var msgSubjectElement          = GetMsgSubjectElement(); var msgAttachmentElement       = GetMsgAttachmentElement(); 
context: function WhichElementHasFocus(){  var msgIdentityElement             = GetMsgIdentityElement();  var msgAddressingWidgetTreeElement = GetMsgAddressingWidgetTreeElement();  var msgSubjectElement              = GetMsgSubjectElement();  var msgAttachmentElement           = GetMsgAttachmentElement();  if (top.document.commandDispatcher.focusedWindow == content)    return content;  var currentNode = top.document.commandDispatcher.focusedElement;  while (currentNode)  {    if (currentNode == msgIdentityElement ||        currentNode == msgAddressingWidgetTreeElement ||        currentNode == msgSubjectElement ||        currentNode == msgAttachmentElement)      return currentNode;    currentNode = currentNode.parentNode;  }  return null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/07deeae1a09888ea43964a42a96e6de344b0b59a/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js