rem: var formsArray = window._content.document.forms; 
add: var formsArray = this.target.ownerDocument.forms; 
context:     okToCapture: function () {      this.disableCapture = false;      var rv = false;      if (!window._content.document) {        return false;      }      // test for a form with at least one text element that has a value      var formsArray = window._content.document.forms;      if (!formsArray) {        return false;      }      var form;      for (form=0; form<formsArray.length; form++) {        var elementsArray = formsArray[form].elements;        var element;        for (element=0; element<elementsArray.length; element++) {          var type = elementsArray[element].type;          if (type=="" || type=="text") {            // we have a form with at least one text element            var value = elementsArray[element].value;            rv = true;            if (value != "") {              // at least one text element has a value, thus capture is to appear in menu              return rv;            }          }         }      }      // if we got here, then there was no text element with a value      if (rv) {        // if we got here, then we had a form with at least one text element        // in that case capture is to appear in menu but will be disabled        this.disableCapture = true;      }      return rv;    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/50ab3e71d715311ba4231c0dea5b2c8099a4a8d8/nsContextMenu.js/clean/xpfe/browser/resources/content/nsContextMenu.js