Subject: Re: bug#22749: 25.0.91; xwidget-webkit-scroll-down not working

From: Christopher Cooper <[email-masked]>
Date: Thu, 10 Mar 2016 16:03:02 -0500

The problem was that 'xwidget-set-adjustment' in xwidget.c was checking
'value' using 'CHECK_NATNUM'. However, 'value' can be negative in the case
of relative scrolling. The solution is instead to use 'CHECK_NUMBER'. A
patch implementing this is attached.

Christopher Cooper
From a6268eb02f9a2ddd12cdac57f66a78419f2cf98c Mon Sep 17 00:00:00 2001
From: Christopher Cooper <[email-masked]>
Date: Wed, 9 Mar 2016 17:40:25 -0500
Subject: [PATCH] Fix Bug#22749

* src/xwidget.c (xwidget-set-adjustment): Fix type check on value.
---
 src/xwidget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xwidget.c b/src/xwidget.c
index f436e95..bb15d1d 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -760,7 +760,7 @@ VALUE is the amount to scroll, either relatively or absolutely.  */)
    Lisp_Object value)
 {
   CHECK_XWIDGET (xwidget);
-  CHECK_NATNUM (value);
+  CHECK_NUMBER (value);
   struct xwidget *xw = XXWIDGET (xwidget);
   GtkAdjustment *adjustment
     = ((EQ (Qhorizontal, axis)
-- 
2.5.0