rem: aPostDataRef.value = getPostDataStream(aPostDataRef.value, text, 
add: aPostDataRef.value = getPostDataStream(aPostDataRef.value, text, 
context: function getShortcutOrURI(aURL, aPostDataRef){  // rjc: added support for URL shortcuts (3/30/1999)  try {    var shortcutURL = BMSVC.resolveKeyword(aURL, aPostDataRef);    if (!shortcutURL) {      // rjc: add support for string substitution with shortcuts (4/4/2000)      //      (see bug # 29871 for details)      var aOffset = aURL.indexOf(" ");      if (aOffset > 0) {        var cmd = aURL.substr(0, aOffset);        var text = aURL.substr(aOffset+1);        shortcutURL = BMSVC.resolveKeyword(cmd, aPostDataRef);        if (shortcutURL && text) {          if (aPostDataRef && aPostDataRef.value) {            // XXXben - currently we only support "application/x-www-form-urlencoded"            //          enctypes.            aPostDataRef.value = unescape(aPostDataRef.value);            if (aPostDataRef.value.match(/%s/))              aPostDataRef.value = getPostDataStream(aPostDataRef.value, text,                                                      "application/x-www-form-urlencoded");            else {              shortcutURL = null;              aPostDataRef.value = null;            }          }          else            shortcutURL = shortcutURL.match(/%s/) ? shortcutURL.replace(/%s/g, encodeURIComponent(text)) : null;        }      }    }    if (shortcutURL)      aURL = shortcutURL;  } catch (ex) {  }  return aURL;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2fb9feaadc992e3ccd442db789244b253d0427f8/browser.js/buggy/browser/base/content/browser.js