rem: var bmks = Components.classes["component: 
add: var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService(); 
context:   function BrowserAddBookmark(url,title)  {    var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService();    var wnd = document.commandDispatcher.focusedWindow;    if (window == wnd) wnd = window._content;    var docCharset = wnd.document.characterSet;    bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);    if ((title == null) || (title == ""))    {    	title = url;    }    bmks.AddBookmark(url, title, bmks.BOOKMARK_DEFAULT_TYPE, docCharset);    dump("BrowserAddBookmark: " + docCharset + "\n");  }
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/0257791053c2b38e1dfaf2ee11afae973e82e394/navigator.js/buggy/xpfe/browser/resources/content/navigator.js