rem: var findInst = getBrowser().webBrowserFind;  var findInFrames = findInst.QueryInterface(Components.interfaces.nsIWebBrowserFindInFrames); findInFrames.rootSearchFrame = window._content; findInFrames.currentSearchFrame = focusedWindow;   findInst.searchFrames = true;   if (window.findDialog) window.findDialog.focus(); else window.findDialog = window.openDialog("chrome: 
add: findInPage(getBrowser(), window._content, focusedWindow) 
context: function BrowserFind(){  var focusedWindow = document.commandDispatcher.focusedWindow;  if (!focusedWindow || focusedWindow == window)    focusedWindow = window._content;  var findInst = getBrowser().webBrowserFind;  // set up the find to search the focussedWindow, bounded by the content window.  var findInFrames = findInst.QueryInterface(Components.interfaces.nsIWebBrowserFindInFrames);  findInFrames.rootSearchFrame = window._content;  findInFrames.currentSearchFrame = focusedWindow;  // always search in frames for now. We could add a checkbox to the dialog for this.  findInst.searchFrames = true;    // is the dialog up already?  if (window.findDialog)    window.findDialog.focus();  else    window.findDialog = window.openDialog("chrome://global/content/finddialog.xul", "Find on Page", "chrome,resizable=no,dependent=yes", findInst);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d06a250b8efeb300f41ce45999dec316f2fe4b5a/navigator.js/buggy/suite/browser/navigator.js