Do you really need a timeout here?  If so, please add a comment explaining why.  I assume this is because gecko isn't giving you the event you need to know when focus is complete?  In that case, there should be a followup bug filed to add that, and the comment here should reference the bug number.