rem: if (!gGlobalHistory) gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;2"] .getService(Components.interfaces.nsIBrowserHistory);  if (!gURIFixup) gURIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"] .getService(Components.interfaces.nsIURIFixup); 
context: function addToUrlbarHistory(aUrlToAdd){  if (!aUrlToAdd)     return;  if (aUrlToAdd.search(/[\x00-\x1F]/) != -1) // don't store bad URLs     return;  if (!gGlobalHistory)    gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;2"]                               .getService(Components.interfaces.nsIBrowserHistory);  if (!gURIFixup)    gURIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"]                          .getService(Components.interfaces.nsIURIFixup);   try {     if (aUrlToAdd.indexOf(" ") == -1) {       var fixedUpURI = gURIFixup.createFixupURI(aUrlToAdd, 0);       gGlobalHistory.markPageAsTyped(fixedUpURI);     }   }   catch(ex) {   }}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/e4c53c5a4cc86e7413551ce7e6b28c973faa31db/browser.js/clean/browser/base/content/browser.js