rem: #ifndef MOZ_PLACES 
add: #ifndef MOZ_PLACES_BOOKMARKS 
context: function AddKeywordForSearchField(){  var node = document.popupNode;  var docURI = makeURI(node.ownerDocument.URL,                       node.ownerDocument.characterSet);  var formURI = makeURI(node.form.getAttribute("action"),                        node.ownerDocument.characterSet,                        docURI);  var spec = formURI.spec;  var isURLEncoded =                (node.form.method.toUpperCase() == "POST"                && (node.form.enctype == "application/x-www-form-urlencoded" ||                    node.form.enctype == ""));  var el, type;  var formData = [];  for (var i=0; i < node.form.elements.length; i++) {    el = node.form.elements[i];    if (!el.type) // happens with fieldsets      continue;    if (el == node) {      formData.push((isURLEncoded) ? escapeNameValuePair(el.name, "%s", true) :                                     // Don't escape "%s", just append                                     escapeNameValuePair(el.name, "", false) + "%s");      continue;    }    type = el.type.toLowerCase();        if ((type == "text" || type == "hidden" || type == "textarea") ||        ((type == "checkbox" || type == "radio") && el.checked)) {      formData.push(escapeNameValuePair(el.name, el.value, isURLEncoded));    } else if (el instanceof HTMLSelectElement && el.selectedIndex >= 0) {      for (var j=0; j < el.options.length; j++) {        if (el.options[j].selected)          formData.push(escapeNameValuePair(el.name, el.options[j].value,                                            isURLEncoded));      }    }  }  var postData;  if (isURLEncoded)    postData = formData.join("&");  else    spec += "?" + formData.join("&");#ifndef MOZ_PLACES  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);#else  dump("*** IMPLEMENT ME: Bug 329281\n");#endif}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d7263a337d6a2edc9619559fc6a942aad9d889c9/browser.js/buggy/browser/base/content/browser.js