@@ -, +, @@ 
 embed/ephy-web-view.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
--- a/embed/ephy-web-view.c	
+++ a/embed/ephy-web-view.c	
@@ -526,6 +526,19 @@ ephy_web_view_button_press_event (GtkWidget *widget, GdkEventButton *event)
   if (event->button == 3 && event->state == GDK_CONTROL_MASK)
     return FALSE;
 
+  /* Handle optional mouse buttons for convenience */
+  if (event->button == 8)
+  {
+    webkit_web_view_go_back (WEBKIT_WEB_VIEW (widget));
+    return TRUE;
+  }
+
+  if (event->button == 9)
+  {
+    webkit_web_view_go_forward (WEBKIT_WEB_VIEW (widget));
+    return TRUE;
+  }
+
   /* Let WebKitWebView handle this. */
   return GTK_WIDGET_CLASS (ephy_web_view_parent_class)->button_press_event (widget, event);
 }
