Commit Graph

27 Commits

Author SHA1 Message Date
Michael Drake
4c975aafa3 Fix typo in unused jsapi code. 2015-08-13 14:30:28 +01:00
Michael Drake
16fd36eb9d Proper error handling for JS context creation. 2015-08-13 12:23:59 +01:00
Vincent Sanders
20d29c0537 fixup logging macros that incorrectly override the LOG() macro name 2015-05-28 17:33:18 +01:00
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.

The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.

A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Vincent Sanders
ca345e9b99 fix version range when teh callback API changed 2013-05-22 20:42:37 +01:00
Vincent Sanders
ce0fe06349 create javascript heartbeat and hook a script timeout to it 2013-05-22 19:12:26 +01:00
Vincent Sanders
c0f9ae95b9 change the javascript bindings to use generated headers 2012-12-20 17:00:06 +00:00
Vincent Sanders
25e85f1429 do not add script handler if runtime cannot be initialised 2012-12-13 15:35:01 +00:00
Vincent Sanders
0718d80918 abstract out GC root manipulation for js values 2012-12-04 18:15:14 +00:00
Vincent Sanders
897acff532 make events work on elements 2012-12-04 18:01:11 +00:00
Vincent Sanders
3052864773 issue click events at dom 2012-12-03 17:09:44 +00:00
Vincent Sanders
56b521a125 make window load event delivery work 2012-11-28 18:53:11 +00:00
Vincent Sanders
68f359d1ec initial event fireing implementation 2012-11-28 18:07:36 +00:00
Vincent Sanders
bb42a650df ensure JS_EvaluateScript has a variable to return its result 2012-11-08 00:45:30 +00:00
Vincent Sanders
12f874cd92 separate javascript logging macro 2012-11-06 18:20:41 +00:00
Vincent Sanders
a9f5b2a504 Merge branch 'vince/nsgenbind' of git://git.netsurf-browser.org/netsurf into vince/nsgenbind 2012-10-26 12:41:27 +01:00
Vincent Sanders
99c54f1d9d split class prototype initialisation from instantiation 2012-10-26 12:36:14 +01:00
Vincent Sanders
3ed0b09beb use generated htmldocument binding 2012-10-25 11:17:33 +01:00
Vincent Sanders
b866e3e172 use generated htmldocument binding 2012-10-24 19:00:24 +01:00
Vincent Sanders
752261c66c Improve logging and inline script handling 2012-07-07 00:16:07 +01:00
Vincent Sanders
cc93afcfda alter usage of libdom hubbub binding 2012-07-06 20:00:32 +01:00
Vincent Sanders
274a76d97a Add initial navigator object creation.
Basic navigator object outline ready to add methods to.
The navigator object contains all the information about the browser

Signed-Off-By: Vincent Sanders <vince@netsurf-browser.org>
2012-07-02 22:48:41 +01:00
Vincent Sanders
d5c900b5f1 fix mimetype handling of script elements
svn path=/trunk/netsurf/; revision=13993
2012-06-28 14:38:28 +00:00
Vincent Sanders
804bec4f99 make non js builds compile
make js support compile with older debian/ubuntu packaging


svn path=/trunk/netsurf/; revision=13990
2012-06-27 23:17:18 +00:00
Vincent Sanders
638e135c60 correctly setup window object as global
svn path=/trunk/netsurf/; revision=13987
2012-06-26 18:55:57 +00:00
Vincent Sanders
3b5c782c16 ensure javascript content handler is initialised
svn path=/trunk/netsurf/; revision=13976
2012-06-19 23:21:15 +00:00
Vincent Sanders
49effe103a restructure javascript binding layout to be more explicit
fix html content so it correctly loads all the script tags


svn path=/trunk/netsurf/; revision=13968
2012-06-19 09:35:51 +00:00