Merge pull request #795 from erikvold/842111

Fix Bug 842111:  TEST-UNEXPECTED-FAIL | test-tab.test behavior on close r=@ochameau(cherry picked from commit 9ea8b594b9974be1bf457463d20c1577ab567662)
Merge pull request #758 from Mossop/bug831933

Fix Bug 831933: Introduce a short timeout after the window gets focus before continuing r=@erikvold(cherry picked from commit ac9eb0cd2df59812531716e92febffa2d6a48c15)
Bug 831933: Force focus the active window so the focus manager knows what is going on. r=ochameau
(cherry picked from commit cd080127e70c6b3095f1066103ac0071874ba198)
Merge pull request #762 from Mossop/bug831933_3

Bug 831933: Use a window tracker to detect the newly opened windows instead of getMostRecentWindow. r=ochameau(cherry picked from commit 9550fe3dbc4b2496cb9dce6a4869f3937547d53a)

Conflicts:
	test/windows/test-firefox-windows.js