I'd prefer doing the settimeout in onFocus method, like this:
https://github.com/mozilla/addon-sdk/pull/836/files#L0R200
As we may face similar issue in other places.