After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 337852 - side mouse button to go backwards
side mouse button to go backwards
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Interface
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 351697 469648 587841 620734 632077 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-04-09 21:14 UTC by Allison Karlitskaya (desrt)
Modified: 2012-12-11 18:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mouse button 8 and 9 support (1.78 KB, patch)
2010-05-17 19:08 UTC, Vincas Dargis
none Details | Review
mouse button 8 and 9 support, version #2 (1.05 KB, patch)
2010-05-18 17:59 UTC, Vincas Dargis
needs-work Details | Review
WEBKIT_WEB_VIEW version (769 bytes, patch)
2010-10-13 17:16 UTC, Joe Barnett
none Details | Review
e-web-view: enable back/forward mouse buttons (1.23 KB, patch)
2012-12-11 18:30 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review

Description Allison Karlitskaya (desrt) 2006-04-09 21:14:04 UTC
the side mouse button should go 'back'.

this is button 8 on my (fairly typical) mouse on ubuntu dapper with default config.
Comment 1 Christian Persch 2006-04-09 21:48:07 UTC
Related to bug 312073... 
Does this work in firefox? If so, what's the values of mousewheel.*.withnokey.action in about:config in ff?
Comment 2 Adam Hooper 2006-04-10 04:17:03 UTC
This should certainly be in Epiphany by default, *not* as an extension.
Comment 3 Crispin Flowerday (not receiving bugmail) 2006-04-10 08:52:04 UTC
This is definately the same as bug 312073, side mouse buttons are treated as 6 and 7 in X, as is a horizantal scroll wheel. The situation sucks, so we need to choose either horizantal scrolling or back/forward. The horizantal scrolling was choosen to be in-sync with what gtk+ does over scrollbars.
Comment 4 Allison Karlitskaya (desrt) 2006-04-10 12:58:24 UTC
I assure you that the situation here is better.  My side button is #8 (xorg in Ubuntu has been tweaked to deal with 4/5 6/7 being taken up for scrolling).

I can only imagine that the other distros will follow the Ubuntu behaviour.
Comment 5 klement 2006-04-26 23:00:55 UTC
I have a Microsoft InteliMouse Explorer 3.0 USB mouse with
Option "ZAxisMapping"   "6 7"
in xorg.conf, So my navigation(side) buttons worked as forward/back in Firefox.

To get them working in epiphany, I only had to set the following to values in about:config to

mousewheel.horizscrool.withnokey.action 2
mousewheel.horizscrool.withnokey.sysnumlines false

I don't know how this will work with other mice, but if it's the same values, I would suggest to change the defaults in epiphany to the same as the ones in Firefox, so anyone switching to epiphany from firefox (or any other browser with working navigation buttons) feels right at home.
Comment 6 aroden 2006-05-05 01:02:04 UTC
mousewheel.horizscrool.withnokey.action 2
mousewheel.horizscrool.withnokey.sysnumlines false

Makes my back buttons work like in firefox and galeon. Using a Razer DiamondBack mouse (a gaming mouse). Xmodmap swaps side buttons 8 9 to report as 6 7 for back and forward (horizscroll) and buttons 2 3 to be swaped as of xorg7.

I agree w/ default. However I expected horizontal scrolling to work in same fashion as other browser so this was very confusing to me coming from galeon. Changing it would have made my conversion much more smooth and default operations would be much more as expected (even if it is against gtk). 
Comment 7 Daniel Holbach 2006-08-07 15:45:54 UTC
Mentioned in https://launchpad.net/distros/ubuntu/+source/epiphany-extensions/+bug/55077 as well.
Comment 8 Reinout van Schouwen 2006-08-17 08:21:53 UTC
*** Bug 351697 has been marked as a duplicate of this bug. ***
Comment 9 Reinout van Schouwen 2007-06-11 20:58:20 UTC
This is an Epiphany bug, not Epiphany-extensions.
Comment 10 Reinout van Schouwen 2007-08-23 23:17:55 UTC
*** Bug 469648 has been marked as a duplicate of this bug. ***
Comment 11 antistress 2007-11-18 23:06:16 UTC
neither Nautilus (non spatial view) nor Epiphany allow my MS Intellimouse Explorer to go back and next with my 4th and 5th buttons

Whereas it works in Firefox after having change my xorg.conf in Ubuntu to 

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "Emulate3Buttons"       "false"
        Option          "Buttons"               "7"
        Option          "ZAxisMapping"          "4 5"
        Option          "ButtonMapping"         "1 2 3 6 7"
        Option          "Resolution"            "100"
EndSection
Comment 12 Christian Persch 2008-01-06 19:36:30 UTC
We probably need to implement an event listener for app commands, the "AppCommand" DOM event. See https://bugzilla.mozilla.org/show_bug.cgi?id=360731 . Code goes in embed/mozilla/EphyBrowser.cpp along the other event listeners.
Comment 13 Christian Persch 2008-01-06 19:39:42 UTC
Also needs those command events to be dispatches; that's https://bugzilla.mozilla.org/show_bug.cgi?id=355477 .
Comment 14 Reinout van Schouwen 2009-07-06 10:24:31 UTC
*** Bug 587841 has been marked as a duplicate of this bug. ***
Comment 15 Reinout van Schouwen 2009-07-06 10:25:52 UTC
I wonder what the status is on this functionality with the new webkit backend?
Comment 16 Baybal Ni 2009-07-06 11:29:16 UTC
I would like to mention that HID and other kernel's hid using devices are treated like keyboards, like most Microsoft mouses using the hid extensions to send things like standard multimedia keyboard codes
Comment 17 Vincas Dargis 2010-05-17 19:08:26 UTC
Created attachment 161256 [details] [review]
mouse button 8 and 9 support
Comment 18 Vincas Dargis 2010-05-17 19:09:42 UTC
Sadly, I've found this bug a bit too late...

I believe my patch is quite too much hard-coded (by the way, about:config is not showing anything for me), but still, any comments would be appreciated, since I'm trying to learn contributing-stuff and familiarize with GTK.
Comment 19 Johannes Jordan 2010-05-18 10:37:24 UTC
You are not too late at all. The bug has new relevance since Epiphany changed to the webkit backend.

However, I am not the right person to review it. I wonder how it changes behavior when you press buttons while the mouse is hovering a link etc.
Comment 20 Vincas Dargis 2010-05-18 16:56:59 UTC
Thank you Johannes for the tip - yes, it behaves rather strange. I'll try to re-patch and simplify it a bit.
Comment 21 Vincas Dargis 2010-05-18 17:59:55 UTC
Created attachment 161373 [details] [review]
mouse button 8 and 9 support, version #2

Mouse button 8 and 9 handling inside Web View. Links are ignored as in Firefox.
Comment 22 Xan Lopez 2010-08-02 21:47:36 UTC
Comment on attachment 161373 [details] [review]
mouse button 8 and 9 support, version #2

Since we are already handling presses by button in ephy-window.c, let's do this there.

Also, a small comment:

+    webkit_web_view_go_back (&EPHY_WEB_VIEW (widget)->parent);

You are never supposed to  do this. The widget is already an EphyWebView, a WebKitWebView, a GtkWidget... all of them, since this is OO programming. Just doing WEBKIT_WEB_VIEW (widget) works fine and it's how you are supposed to go about this.
Comment 23 Joe Barnett 2010-08-03 18:56:25 UTC
changing the (&EPHY_WEB_VIEW (widget)->parent) to (WEBKIT_WEB_VIEW (widget)) works fine.  tried hooking it up in ephy-window.c, but ephy_window_dom_mouse_click_cb seems to only get called when the mouse is hovered over a link and button 8 or 9 is pressed.???  not sure best way to figure out where the signal is getting swallowed (if that is indeed what's happening)?
Comment 24 Xan Lopez 2010-08-03 19:32:24 UTC
(In reply to comment #23)
> changing the (&EPHY_WEB_VIEW (widget)->parent) to (WEBKIT_WEB_VIEW (widget))
> works fine.  tried hooking it up in ephy-window.c, but
> ephy_window_dom_mouse_click_cb seems to only get called when the mouse is
> hovered over a link and button 8 or 9 is pressed.???  not sure best way to
> figure out where the signal is getting swallowed (if that is indeed what's
> happening)?

You mean the callback is never called when buttons 8 or 9 are pressed?
Comment 25 Joe Barnett 2010-08-03 20:39:18 UTC
(In reply to comment #24)
> 
> You mean the callback is never called when buttons 8 or 9 are pressed?

The callback is not called when buttons 8 or 9 on pressed, UNLESS the mouse is over a link during that button press (or possibly other DOM objects, too? haven't fully tested)
Comment 26 Vincas Dargis 2010-08-04 16:36:19 UTC
Xan Lopez: 
thank you for your comments. Yeah, I've messed up a bit - I'm new to this (gobject OOP, GTK+ pure C) stuff.

Joe Barnett: 
Maybe that's why I moved out of ephy-window.c, or maybe I simply missed that callback - not sure. That was some time ago.
Comment 27 Dag Odenhall 2010-10-13 17:00:14 UTC
*** Bug 632077 has been marked as a duplicate of this bug. ***
Comment 28 Joe Barnett 2010-10-13 17:16:39 UTC
Created attachment 172290 [details] [review]
WEBKIT_WEB_VIEW version
Comment 29 Reinout van Schouwen 2010-10-17 17:25:02 UTC
*** Bug 620734 has been marked as a duplicate of this bug. ***
Comment 30 Reinout van Schouwen 2010-12-23 16:28:16 UTC
Xan, has this been committed already? Side mouse buttons work on FF and Chromium. (I haven't been able to test the 2.31 releases yet.)
Comment 31 Ernst Sjöstrand 2011-09-15 07:44:04 UTC
I've been testing this patch on Epiphany 3.1.91.1 today and it works great! It works anywhere on the page etc.
Comment 32 André Klapper 2012-02-06 15:57:07 UTC
Closing as FIXED as per the last two comments.
Comment 33 Ernst Sjöstrand 2012-02-06 22:19:22 UTC
No don't close it, the patch isn't integrated!
I applied it locally and tested it!
Comment 34 André Klapper 2012-02-07 08:56:42 UTC
I completely misread this, sorry. :-( Reopening.
Comment 35 Miha 2012-04-09 07:53:19 UTC
When will the patch go in? It doesn't seem to be in 3.4.0.1.
Comment 36 Dag Odenhall 2012-09-28 00:08:06 UTC
Not in 3.6.0 either... Epiphany is unusable for me without this.
Comment 37 Daniel Renninghoff 2012-12-10 17:35:32 UTC
Epiphany 3.6.1 and this bug still exists? Please guys, its 5 lines of code, a patch has already been included in this bugtracker. Just merge it in. It takes 5mins of your time and it will help many people who want to use epiphany as their default browser.
Comment 38 Diego Escalante Urrelo (not reading bugmail) 2012-12-11 18:30:13 UTC
Created attachment 231297 [details] [review]
e-web-view: enable back/forward mouse buttons

Based on nautilus' (nautilus-window.c) button numbers and the bugzilla
reports by users.

Thank you Vincas Dargis and Joe Barnett for the previous patches.
Comment 39 Xan Lopez 2012-12-11 18:38:22 UTC
Review of attachment 231297 [details] [review]:

OK.
Comment 40 Diego Escalante Urrelo (not reading bugmail) 2012-12-11 18:43:54 UTC
Thank you!
Sorry for the delay everyone.

Attachment 231297 [details] pushed as 8c53252 - e-web-view: enable back/forward mouse buttons