add: if (gFindInstData && gFindInst != gFindInstData.webBrowserFind) { gFindInstData.init(); gFindInst = gFindInstData.webBrowserFind; }  
context: function onAccept(){  // Transfer dialog contents to the find service.  saveFindData();  // set up the find instance  gFindInst.searchString  = dialog.findKey.value;  gFindInst.matchCase     = dialog.caseSensitive.checked;  gFindInst.wrapFind      = dialog.wrap.checked;  gFindInst.findBackwards = dialog.searchBackwards.checked;    // Search.  var result = gFindInst.findNext();  if (!result)  {    if (!dialog.bundle)      dialog.bundle = document.getElementById("findBundle");    try {      var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();      promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService);      promptService.alert(window, null,                          dialog.bundle.getString("notFoundWarning"));    }    catch (e) { dump("The text you entered was not found."); }    dialog.findKey.select();    dialog.findKey.focus();  }   return false;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/9d7d2a4332f17643856134ba49e31c507439260f/finddialog.js/clean/xpfe/components/find/resources/finddialog.js