GNOME Bugzilla – Bug 695951
Control + back toolbar button creates an empty tab
Last modified: 2013-03-19 13:00:38 UTC
SSIA, the problem is the current code assumes the back/forward list is successfully copied. This assumption doesn't hold for WebKit2, so we should just grab the URI of the back item and load it.
Created attachment 239018 [details] [review] Load back item when back is clicked with control held/middle clicked, for wk2
Created attachment 239188 [details] [review] Load back item when back is clicked with control held/middle clicked, for wk2 In WebKit2 the back/forward list is not copiable, so that assumption doesn't hold, and the current code path fails. With this change we tell EphyShell to not copy the list and load the URL held by the back item of the existing WebView in the new WebView instead, for WebKit2.
Now with 100% less breakage of the normal back button click!
Review of attachment 239188 [details] [review]: Seems to work fine. So sad we cannot copy the bf list. Can you add a FIXME in the code pointing out the old WK1 code path should really work?
Comment on attachment 239188 [details] [review] Load back item when back is clicked with control held/middle clicked, for wk2 10f300b27a14c450c9a20b12c23f4e542942655c Done that, thanks.