Bug 1086169: Wait for page load event listener to run in tests. r=Unfocused