rem: return true; 
add: /* we have a form with at least one text or select element */ rv = true;  /* see if there is a saved value for it */ var walletService = Components.classes["@mozilla.org/wallet/wallet-service;1"].getService(Components.interfaces.nsIWalletService); var value = walletService.WALLET_PrefillOneElement (window._content, elementsArray[element]); if (value != "") {  return rv; } 
context:     okToPrefill: function () {      if (!window._content.document) {        return false;      }      var formsArray = this.target.ownerDocument.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;          var value = elementsArray[element].value;          if (type=="" || type=="text" || type=="select-one") {            return true;          }        }      }      return false;    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/496db6022558adc542c6a98bc4656fe15967938b/nsContextMenu.js/buggy/suite/common/nsContextMenu.js