Bug 874843 - Fix focus race in test on windows 8. r=roc