diff --git a/toolkit/mozapps/downloads/tests/chrome/test_close_download_manager.xul b/toolkit/mozapps/downloads/tests/chrome/test_close_download_manager.xul index bf58f27f9e0..58b30f76469 100644 --- a/toolkit/mozapps/downloads/tests/chrome/test_close_download_manager.xul +++ b/toolkit/mozapps/downloads/tests/chrome/test_close_download_manager.xul @@ -108,6 +108,7 @@ function runTest() let testObs = { observe: function(aSubject, aTopic, aData) { let win = aSubject.QueryInterface(Ci.nsIDOMWindow); + win.focus(); switch(testPhase++) { case 0: testCloseDMWithEscKey(win);