rem: if (suffix != null) {  url = url.replace( /^\s+/, ""); url = url.replace( /\s+$/, ""); 
context: function canonizeUrl(aTriggeringEvent, aPostDataRef){  if (!gURLBar || !gURLBar.value)    return;  var url = gURLBar.value;  // Prevent suffix when already exists www , http , /  if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) {    var suffix = null;#ifdef XP_MACOSX    var accelPressed = 'metaKey' in aTriggeringEvent &&                       aTriggeringEvent.metaKey;#else    var accelPressed = 'ctrlKey' in aTriggeringEvent &&                       aTriggeringEvent.ctrlKey;#endif    var shiftPressed = 'shiftKey' in aTriggeringEvent &&                       aTriggeringEvent.shiftKey;    if (accelPressed && shiftPressed)      suffix = ".org/";    else if (accelPressed)    {      try {        suffix = gPrefService.getCharPref("browser.fixup.alternate.suffix");        if (suffix.charAt(suffix.length - 1) != '/')          suffix += "/";      }      catch(e) {        suffix = ".com/";      }    }    else if (shiftPressed)      suffix = ".net/";    if (suffix != null) {      // trim leading/trailing spaces (bug 233205)      url = url.replace( /^\s+/, "");      url = url.replace( /\s+$/, "");      // Tack www. and suffix on.  If user has appended directories, insert      // suffix before them (bug 279035).  Be careful not to get two slashes.      var firstSlash = url.indexOf("/");      if (firstSlash >= 0)        url = "http://www." + url.substring(0, firstSlash) + suffix +              url.substring(firstSlash + 1, url.length);      else        url = "http://www." + url + suffix;    }  }  gURLBar.value = getShortcutOrURI(url, aPostDataRef);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/478b35f99d97c885c3dda084b96de5d63ea65ca8/browser.js/clean/browser/base/content/browser.js