Bug 865547 some tests would end without waiting for their windows/tabs to close
Merge pull request #971 from erikvold/865547

Fix Bug 865547 some tests would end without waiting for their windows/tabs to close r=@Mossop