rem: var findInst = GetCurrentEditorElement().webBrowserFind; var findService = Components.classes["@mozilla.org/find/find_service;1"] .getService(Components.interfaces.nsIFindService); findInst.findBackwards = findService.findBackwards ^ this.isFindPrev; findInst.findNext();  findInst.findBackwards = findService.findBackwards; 
add: var fileHandler = GetFileProtocolHandler(); ifile = fileHandler.getFileFromURLSpec(URL2Validate);  } catch (e) { ifile = null; } if (ifile) { URL2Validate = ifile.path; var vwin = window.open("http: "EditorValidate");  vwin.addEventListener("load", this.validateFilePageLoaded, false); 
context:   doCommand: function(aCommand)  {    try {      var findInst = GetCurrentEditorElement().webBrowserFind;      var findService = Components.classes["@mozilla.org/find/find_service;1"]                             .getService(Components.interfaces.nsIFindService);          findInst.findBackwards = findService.findBackwards ^ this.isFindPrev;      findInst.findNext();      // reset to what it was in dialog, otherwise dialog setting can get reversed      findInst.findBackwards = findService.findBackwards;     }    catch (ex) {}  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/da612cac58dcb7e9f3602cece16f98855cac775c/ComposerCommands.js/buggy/editor/ui/composer/content/ComposerCommands.js