Bug 855484 - Wait for toplevel-window-ready instead of domwindowopen to avoid issues with private windows.

https://bugzilla.mozilla.org/show_bug.cgi?id=855484