rem: var shortcutURL = bmks.FindShortcut(document.getElementById('urlbar').value);  dump("FindShortcut: in='" + document.getElementById('urlbar').value + "'  out='" + shortcutURL + "'\n");  if ((shortcutURL != null) && (shortcutURL != "")) { 
add: var text = document.getElementById('urlbar').value; var shortcutURL = bmks.FindShortcut(text); if ((shortcutURL == null) || (shortcutURL == "")) {   var aOffset = text.indexOf(" "); if (aOffset > 0) { var cmd = text.substr(0, aOffset); var text = text.substr(aOffset+1); var shortcutURL = bmks.FindShortcut(cmd); if ((shortcutURL) && (shortcutURL != "") && (text != "")) { aOffset = shortcutURL.indexOf("%s"); if (aOffset >= 0) { shortcutURL = shortcutURL.substr(0, aOffset) + text + shortcutURL.substr(aOffset+2); } else { shortcutURL = null; } } } } if ((shortcutURL != null) && (shortcutURL != "")) { 
context:   function BrowserLoadURL()  {	if (appCore == null)	{		dump("BrowserAppCore has not been initialized\n");		return;	}    // rjc: added support for URL shortcuts (3/30/1999)    try {      var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService();      bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);      var shortcutURL = bmks.FindShortcut(document.getElementById('urlbar').value);      dump("FindShortcut: in='" + document.getElementById('urlbar').value + "'  out='" + shortcutURL + "'\n");      if ((shortcutURL != null) && (shortcutURL != "")) {        document.getElementById('urlbar').value = shortcutURL;      }    }    catch (ex) {      // stifle any exceptions so we're sure to load the URL.    }	appCore.loadUrl(document.getElementById('urlbar').value);        }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/87a011d982d20eacfaff40ddac37e7856c0bec04/navigator.js/clean/xpfe/browser/resources/content/navigator.js