rem: return false; 
add:  selecRange.setStart(wholeDocRange.startContainer, wholeDocRange.startOffset); selecRange.setEnd(wholeDocRange.startContainer, wholeDocRange.startOffset);  origRange.setEnd(origRange.startContainer, origRange.startOffset); if (gReplaceDialog.wrap.checked) { while ((foundRange = finder.Find(findStr, wholeDocRange, selecRange, origRange)) != null) { gEditor.selection.removeAllRanges(); gEditor.selection.addRange(foundRange); gEditor.insertText(repStr); selection = gEditor.selection; if (selection.rangeCount <= 0) { return; } selecRange = selection.getRangeAt(0); } } 
context: function onReplaceAll(){  // Transfer dialog contents to the find service.  saveFindData();  // set up the find instance  setUpFindInst();  // Search.  while (true) {    var result = gFindInst.findNext();    dump("result of find: " + result + "\n");    if (!result)      break;    gReplaceDialog.editor.insertText(gReplaceDialog.replaceKey.value);  }  return false;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f767738fa2589c59d45b6ddc439e04c39ffaffb1/EdReplace.js/buggy/editor/ui/dialogs/content/EdReplace.js