Bug 831933: Use a window tracker to detect the newloy opened windows instead of getMostRecentWindow.
Bug 831933: Verify we got the correct raw windows in the test.
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
bug 820582: fix for tests that used loader w/out metadata
Merge branch '820582' into 834961
Merge branch 'master' of git://github.com/mozilla/addon-sdk into 834961