rem: var bmks = Components.classes["component: 
add: var bmks = Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService(); 
context: function saveSearch(){	var resultsTree = parent.frames[1].document.getElementById("findresultstree");	if (!resultsTree)	return(false);	var searchURL = resultsTree.getAttribute("ref");	if ((!searchURL) || (searchURL == ""))		return(false);	dump("Bookmark search URL: " + searchURL + "\n");	var searchTitle = "Search: " + gMatchName + " " + gMethodName + " '" + gTextName + "' in " + gDatasourceName;	dump("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/find.js/buggy/xpfe/components/search/resources/find.js