rem: #else shortcutURL = BMSVC.resolveKeyword(keyword, aPostDataRef); #endif 
context: function getShortcutOrURI(aURL, aPostDataRef) {  var shortcutURL = null;  var keyword = aURL;  var param = "";  var searchService = Cc["@mozilla.org/browser/search-service;1"].                      getService(Ci.nsIBrowserSearchService);  var offset = aURL.indexOf(" ");  if (offset > 0) {    keyword = aURL.substr(0, offset);    param = aURL.substr(offset + 1);  }  var engine = searchService.getEngineByAlias(keyword);  if (engine)    return engine.getSubmission(param, null).uri.spec;  try {#ifdef MOZ_PLACES_BOOKMARKS    var shortcutURI = PlacesUtils.bookmarks.getURIForKeyword(keyword);    shortcutURL = shortcutURI.spec;    aPostDataRef.value = PlacesUtils.getPostDataForURI(shortcutURI);#else    shortcutURL = BMSVC.resolveKeyword(keyword, aPostDataRef);#endif  } catch(ex) {}  if (!shortcutURL)    return aURL;  var postData = "";  if (aPostDataRef && aPostDataRef.value)    postData = unescape(aPostDataRef.value);  if (/%s/i.test(shortcutURL) || /%s/i.test(postData)) {    var charset = "";    const re = /^(.*)\&mozcharset=([a-zA-Z][_\-a-zA-Z0-9]+)\s*$/;    var matches = shortcutURL.match(re);    if (matches)      [, shortcutURL, charset] = matches;    else {      try {        //XXX Bug 317472 will add lastCharset support to places.#ifndef MOZ_PLACES_BOOKMARKS        charset = BMSVC.getLastCharset(shortcutURL);#endif      } catch (ex) {        Components.utils.reportError(ex);      }    }    var encodedParam = "";    if (charset)      encodedParam = escape(converFromUnicode(charset, param));    else // Default charset is UTF-8      encodedParam = encodeURIComponent(param);    shortcutURL = shortcutURL.replace(/%s/g, encodedParam).replace(/%S/g, param);    if (/%s/i.test(postData)) // POST keyword      aPostDataRef.value = getPostDataStream(postData, param, encodedParam,                                             "application/x-www-form-urlencoded");  }  else    aPostDataRef.value = null;  return shortcutURL;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/8854db12e8b678dbe0bcac27fd9d1d2099820a39/browser.js/clean/browser/base/content/browser.js