GNOME Bugzilla – Bug 694268
Load HTTP auth protected pages doesn't work from the overview in WebKit2
Last modified: 2013-02-20 15:02:30 UTC
Created attachment 236930 [details] [review] Patch The switch between overview and normal web page happens when the page load is committed, in case of HTTP auth protected pages we never switch to web page mode because authentication happens before the load is committed. In WebKit2 the auth dialog is attached to the web view, so we need to show the web view before the load is committed to show the auth dialog.
Review of attachment 236930 [details] [review]: I'm trying to remember if there was any particular reason to do this during 'committed' instead of 'start', but I don't think so, so this is probably safe to do.
The reason is that the ephy web view address is manually updated in the committed state, because we know it won't change. But in this case, since overview will never be redirected we can use the web view uri directly as soon as the load starts.