Bug 941731 - Improve wait for http authentication dialog