rem: var bmks = Components.classes["component: 
add: var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService(); 
context:   function BrowserLoadURL()  {    // 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 text = document.getElementById('urlbar').value;      var shortcutURL = bmks.FindShortcut(text);      if ((shortcutURL == null) || (shortcutURL == ""))      {        // rjc: add support for string substitution with shortcuts (4/4/2000)        //      (see bug # 29871 for details)      	var aOffset = text.indexOf(" ");      	if (aOffset > 0)      	{      	  var cmd = text.substr(0, aOffset);      	  text = text.substr(aOffset+1);          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 != ""))      {        document.getElementById('urlbar').value = shortcutURL;      }    }    catch (ex)    {      // stifle any exceptions so we're sure to load the URL.    }    try {      appCore.loadUrl(gURLBar.value);      window._content.focus();    }    catch(e) {    }  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0257791053c2b38e1dfaf2ee11afae973e82e394/navigator.js/buggy/xpfe/browser/resources/content/navigator.js