rem: client.input.focus(); 
add: const WWATCHER_CTRID = "@mozilla.org/embedcomp/window-watcher;1"; const nsIWindowWatcher = Components.interfaces.nsIWindowWatcher;  var watcher = Components.classes[WWATCHER_CTRID].getService(nsIWindowWatcher); if (watcher.activeWindow == window) client.input.focus(); else document.commandDispatcher.focusedElement = client.input; 
context: function focusInput (){    client.input.focus();}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/8de35978640391713d72c3218e0eba1b075b0507/static.js/buggy/xul/content/static.js