rem:  if (node.form.method.toUpperCase() == "POST" && 
add:  if (node.form.method.toUpperCase() == "POST" && 
context: function AddKeywordForSearchField(){  var node = document.popupNode;  var ioService = Components.classes["@mozilla.org/network/io-service;1"]                            .getService(Components.interfaces.nsIIOService);  var uri = ioService.newURI(node.ownerDocument.URL, node.ownerDocument.characterSet, null);  var keywordURL = ioService.newURI(node.form.action, node.ownerDocument.characterSet, uri);  var spec = keywordURL.spec;  var postData = "";  var i, e;    if (node.form.method.toUpperCase() == "POST" &&       (node.form.enctype == "application/x-www-form-urlencoded" || node.form.enctype == "")) {    for (i=0; i < node.form.elements.length; ++i) {      e = node.form.elements[i];      if (e.type.toLowerCase() == "text" || e.type.toLowerCase() == "hidden" ||           e.localName.toLowerCase() == "textarea")         postData += escape(e.name + "=" + (e == node ? "%s" : e.value)) + "&";      else if (e.localName.toLowerCase() == "select" && e.selectedIndex >= 0)        postData += escape(e.name + "=" + e.options[e.selectedIndex].value) + "&";      else if ((e.type.toLowerCase() == "checkbox" ||	  	e.type.toLowerCase() == "radio") && e.checked)	 postData += escape(e.name + "=" + e.value) + "&";    }  }  else {    spec += "?" + escape(node.name) + "=%s";    for (i=0; i < node.form.elements.length; ++i) {      e = node.form.elements[i];      if (e == node) // avoid duplication of the target field value, which was populated above.        continue;              if (e.type.toLowerCase() == "text" || e.type.toLowerCase() == "hidden" ||           e.localName.toLowerCase() == "textarea")        spec += "&" + escape(e.name) + "=" + escape(e.value);      else if (e.localName.toLowerCase() == "select" && e.selectedIndex >= 0)        spec += "&" + escape(e.name) + "=" + escape(e.options[e.selectedIndex].value);      else if ((e.type.toLowerCase() == "checkbox" ||	  	e.type.toLowerCase() == "radio") && e.checked)	 spec += "&" + escape(e.name) + "=" + escape(e.value);    }  }  var dialogArgs = {    name: "",    url: spec,    charset: node.ownerDocument.characterSet,    bWebPanel: false,    keyword: "",    bNeedKeyword: true,    postData: postData,    description: BookmarksUtils.getDescriptionFromDocument(node.ownerDocument)  }  openDialog("chrome://browser/content/bookmarks/addBookmark2.xul", "",             BROWSER_ADD_BM_FEATURES, dialogArgs);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2fb9feaadc992e3ccd442db789244b253d0427f8/browser.js/buggy/browser/base/content/browser.js