  gBrowser.userTypedValue = gURLBar.value; 
function canonizeUrl(aTriggeringEvent, aPostDataRef) {  if (!gURLBar || !gURLBar.value)    return;  var url = gURLBar.value;  // Only add the suffix when the URL bar value isn't already "URL-like".  // Since this function is called from handleURLBarCommand, which receives  // both mouse (from the go button) and keyboard events, we also make sure not  // to do the fixup unless we get a keyboard event, to match user expectations.  if (!/^(www|http)|\/\s*$/i.test(url) &&      (aTriggeringEvent instanceof KeyEvent)) {#ifdef XP_MACOSX    var accel = aTriggeringEvent.metaKey;#else    var accel = aTriggeringEvent.ctrlKey;#endif    var shift = aTriggeringEvent.shiftKey;    var suffix = "";    switch (true) {      case (accel && shift):        suffix = ".org/";        break;      case (shift):        suffix = ".net/";        break;      case (accel):        try {          suffix = gPrefService.getCharPref("browser.fixup.alternate.suffix");          if (suffix.charAt(suffix.length - 1) != "/")            suffix += "/";        } catch(e) {          suffix = ".com/";        }        break;    }    if (suffix) {      // trim leading/trailing spaces (bug 233205)      url = url.replace(/^\s+/, "").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.      // Also, don't add the suffix if it's in the original url (bug 233853).            var firstSlash = url.indexOf("/");      var existingSuffix = url.indexOf(suffix.substring(0, suffix.length - 1));      // * Logic for slash and existing suffix (example)      // No slash, no suffix: Add suffix (mozilla)      // No slash, yes suffix: Add slash (mozilla.com)      // Yes slash, no suffix: Insert suffix (mozilla/stuff)      // Yes slash, suffix before slash: Do nothing (mozilla.com/stuff)      // Yes slash, suffix after slash: Insert suffix (mozilla/?stuff=.com)            if (firstSlash >= 0) {        if (existingSuffix == -1 || existingSuffix > firstSlash)          url = url.substring(0, firstSlash) + suffix +                url.substring(firstSlash + 1);      } else        url = url + (existingSuffix == -1 ? suffix : "/");      url = "http://www." + url;    }  }  gURLBar.value = getShortcutOrURI(url, aPostDataRef);}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/5c8381d2206187cb856a79c4ea9d0b82cd8ac4ed/browser.js/clean/browser/base/content/browser.js