From 2f1ca751d66cbb2f027e9acdf24725efacd8023a Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 2 Oct 2012 13:33:08 +0100 Subject: [PATCH] make the "none" javascript implmentation specifically disable the scripting option --- javascript/none.c | 2 ++ test/js/index.html | 1 + test/js/noscript-inline-doc-write.html | 14 ++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 test/js/noscript-inline-doc-write.html diff --git a/javascript/none.c b/javascript/none.c index e5cfb0d33..b5cfc7875 100644 --- a/javascript/none.c +++ b/javascript/none.c @@ -21,12 +21,14 @@ */ #include "content/content.h" +#include "desktop/options.h" #include "javascript/js.h" #include "utils/log.h" void js_initialise(void) { + nsoption_set_bool(enable_javascript, false); } void js_finalise(void) diff --git a/test/js/index.html b/test/js/index.html index 276854712..a7d34f5a1 100644 --- a/test/js/index.html +++ b/test/js/index.html @@ -11,6 +11,7 @@

Document write tests