rem: var bmks = Components.classes["component: 
add: var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService(); 
context: function saveFind(){	var resultsTree = document.getElementById("findresultstree");	if (!resultsTree)	return(false);	var searchURL = resultsTree.getAttribute("ref");	if ((!searchURL) || (searchURL == ""))		return(false);	debug("Bookmark search URL: " + searchURL + "\n");	var searchTitle = "Find: " + gMatchName + " " + gMethodName + " '" + gTextName + "' in " + gDatasourceName;	debug("Title: " + searchTitle + "\n\n");	var bmks = Components.classes["component://netscape/browser/bookmarks-service"].getService();	if (bmks)	bmks = bmks.QueryInterface(Components.interfaces.nsIBookmarksService);	if (bmks)	bmks.AddBookmark(searchURL, searchTitle, bmks.BOOKMARK_FIND_TYPE, null);	return(true);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0257791053c2b38e1dfaf2ee11afae973e82e394/bm-find.js/clean/xpfe/components/bookmarks/resources/bm-find.js