Comment 7 for bug 707024

Revision history for this message
gue5t gue5t (gue5t) wrote :

I've done some research into this and I think it might be possible that the reason this occurs is that webkit's default button handling opens links on button-release, while all the midori button-handling is on button-press. In my experience with this bug's behavior, this seems to be confirmed: the new tab opens first (in the background per my personal settings) when midori itself opens it for middle-click. But when the click is released a fraction of a second later, webkit picks up on it and decides to open the page in the current tab (try GtkLauncher; release of /any/ mouse button on a link will open it). I have attached a patch but since this bug is so hard to reproduce consistently I don't know for sure if this analysis/fix is correct. Review would be greatly appreciated.