add:  if (document.getElementById("saveQuery").checked == true) { var bundle = document.getElementById("bookmarksBundle"); var findTitle = bundle.stringBundle.formatStringFromName( "ShortFindTitle", [gSearchField.value], 1); var bmks = Components.classes[BMARKS_CONTRACTID].getService(nsIBookmarksService); bmks.AddBookmark(searchURI, findTitle, bmks.BOOKMARK_FIND_TYPE, null); }  
context: function find(){  // Build up a find URI from the search fields and open a new window  // rooted on the URI.   var match = document.getElementById("matchList");  var method = document.getElementById("methodList");  var searchURI = "find:datasource=rdf:bookmarks"  searchURI += "&match=" + match.selectedItem.value;  searchURI += "&method=" + method.selectedItem.value;  searchURI += "&text=" + escape(gSearchField.value);  var bmWindow = findMostRecentWindow("bookmarks:searchresults", "chrome://communicator/content/bookmarks/bookmarks.xul", searchURI);    // Update the root of the tree if we're using an existing search window.   if (!gCreatingNewWindow)     bmWindow.document.getElementById("bookmarks-view").outliner.setAttribute("ref", searchURI);   bmWindow.focus();  return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/8c214026b723a8a47485fed4986dd4231672e297/findBookmark.js/buggy/xpfe/components/bookmarks/resources/findBookmark.js