From ac1dbe03544161fce45ef47cf75fe2e79ed329a9 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 28 Jun 2012 09:30:56 +0000 Subject: fix missing default svn path=/trunk/netsurf/; revision=13992 --- Makefile.defaults | 4 +++- javascript/jsapi/window.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.defaults b/Makefile.defaults index eda59beac..8995a7271 100644 --- a/Makefile.defaults +++ b/Makefile.defaults @@ -62,8 +62,10 @@ NETSURF_USE_WEBP := NO NETSURF_USE_VIDEO := NO # Enable NetSurf's use of spidermonkey for javascript -# Valid options: YES, NO +# Valid options: YES, NO, AUTO NETSURF_USE_JS := NO +# Javascript support in older debian/ubuntu versions +NETSURF_USE_MOZJS := NO # Enable NetSurf's use of libharu for PDF export and GTK printing support. # There is no auto-detection available for this, as it does not have a diff --git a/javascript/jsapi/window.c b/javascript/jsapi/window.c index 0225e25d9..e5034cb3b 100644 --- a/javascript/jsapi/window.c +++ b/javascript/jsapi/window.c @@ -179,7 +179,7 @@ static JSBool jsnative_confirm(JSContext *cx, uintN argc, jsval *vp) warn_user(txt, NULL); - JS_SET_RVAL(cx, vp, result); + JS_SET_RVAL(cx, vp, BOOLEAN_TO_JSVAL(result)); return JS_TRUE; } -- cgit v1.2.3