Permalink
Browse files

Bug 831933: Introduce a short timeout after the window gets focus bef…

…ore continuing
  • Loading branch information...
1 parent 5b94e64 commit b79ad3cdeb994c44e96a5b2ea55ed81349740e2c @Mossop committed Feb 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/windows/test-firefox-windows.js
@@ -278,11 +278,11 @@ exports.testActiveWindow = function(test) {
var focused = (focusedChildWindow == childTargetWindow);
if (focused) {
- nextStep();
+ setTimeout(nextStep, 0);
} else {
childTargetWindow.addEventListener("focus", function focusListener() {
childTargetWindow.removeEventListener("focus", focusListener, true);
- nextStep();
+ setTimeout(nextStep, 0);
}, true);
}

0 comments on commit b79ad3c

Please sign in to comment.