rem:   try { var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"] .getService(Components.interfaces.nsIBookmarksService);  var shortcutURL = bmks.FindShortcut(url); if (!shortcutURL) {   var aOffset = url.indexOf(" "); if (aOffset > 0) { var cmd = url.substr(0, aOffset); var text = url.substr(aOffset+1); shortcutURL = bmks.FindShortcut(cmd); if (shortcutURL && text) { aOffset = shortcutURL.indexOf("%s"); if (aOffset >= 0) shortcutURL = shortcutURL.substr(0, aOffset) + text + shortcutURL.substr(aOffset+2); else shortcutURL = null; } } }  if (shortcutURL) url = shortcutURL;  } catch (ex) {  }  loadURI(url); _content.focus(); 
add: loadShortcutOrURI(url); 
context: function BrowserLoadURL(){  var url = gURLBar.value;  // rjc: added support for URL shortcuts (3/30/1999)  try {    var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"]                         .getService(Components.interfaces.nsIBookmarksService);    var shortcutURL = bmks.FindShortcut(url);    if (!shortcutURL) {      // rjc: add support for string substitution with shortcuts (4/4/2000)      //      (see bug # 29871 for details)      var aOffset = url.indexOf(" ");      if (aOffset > 0) {        var cmd = url.substr(0, aOffset);        var text = url.substr(aOffset+1);        shortcutURL = bmks.FindShortcut(cmd);        if (shortcutURL && text) {          aOffset = shortcutURL.indexOf("%s");          if (aOffset >= 0)            shortcutURL = shortcutURL.substr(0, aOffset) + text + shortcutURL.substr(aOffset+2);          else            shortcutURL = null;        }      }    }    if (shortcutURL)      url = shortcutURL;  } catch (ex) {    // stifle any exceptions so we're sure to load the URL.  }  loadURI(url);  _content.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3f8ac9e823a9a1405192d54b8a235575f28f8759/navigator.js/clean/suite/browser/navigator.js