Commit Graph

187 Commits

Author SHA1 Message Date
John-Mark Bell
fd9aa16ece JS: mark idx_func volatile to remove warning 2015-08-15 10:03:39 +00:00
John-Mark Bell
a7fb19f3a9 JS: use deep stack, regardless of platform.
Without enabling this, the compiler recursion limit will be hit
when parsing most non-trivial JS libraries.
2015-08-15 10:00:35 +00:00
Daniel Silverstone
a76de90a2e Final (untested) bits of Node 2015-08-14 16:09:28 +02:00
Daniel Silverstone
e46a705b0f More (untested) Node stuff 2015-08-14 15:34:00 +02:00
Vincent Sanders
dc7f0dce9f expose Math operations to javascript code 2015-08-13 23:05:02 +01:00
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
Michael Drake
526b0e3bb4 Add assertion that jscontext is non-NULL when making new compartment. 2015-08-13 09:26:50 +01:00
Daniel Silverstone
ecc6a12ed6 Slight tidying of error report 2015-08-12 15:56:01 +02:00
Daniel Silverstone
1ee30e7632 Log more of the JS error object 2015-08-12 15:39:34 +02:00
Daniel Silverstone
e331784ea3 Expose Array, Date and RegExp on Window 2015-08-12 15:19:57 +02:00
Daniel Silverstone
3a6da36fc9 Add missing node unref 2015-08-12 12:27:18 +02:00
Daniel Silverstone
c47db23f8f Attempt to prevent use of STRPTIME or GETDATE on platforms where we know it is broken 2015-08-12 10:43:34 +02:00
Daniel Silverstone
b4d26fd160 Take tip of the fix-cast-align-warnings branch from Sami to see if it helps 2015-08-12 08:40:35 +02:00
Michael Drake
9354adacdb Fix: warning: pointer targets ... differ in signedness [-Wpointer-sign] 2015-08-11 20:44:52 +01:00
Daniel Silverstone
ab79f0a9c5 document.write shoud stringify all args 2015-08-11 19:39:31 +02:00
Vincent Sanders
c1d5bbe7df add urlutils IDL to netsurf binding 2015-08-11 14:36:43 +01:00
Daniel Silverstone
a590117246 Element::getElementsByTagName() 2015-08-11 15:13:14 +02:00
Daniel Silverstone
73fbaf6fb1 Add support for a lot of Node's interface 2015-08-11 14:45:59 +02:00
Daniel Silverstone
1af1ab1c3c Add a variant of dukky_instanceof which can take an index 2015-08-11 14:45:59 +02:00
Vincent Sanders
45ced343af Add urlutils IDL 2015-08-11 12:14:18 +01:00
Daniel Silverstone
d4f487acf1 Basic Console support 2015-08-10 20:09:58 +02:00
Daniel Silverstone
0df3439eb2 Fix constructor injection to use new constructor type, add test 2015-08-09 18:54:37 +01:00
Daniel Silverstone
3d7de6cf8d Fix window.window 2015-08-09 16:20:09 +01:00
Daniel Silverstone
da77e9c91c Avoid strptime on platforms where NetSurf knows we don't have a good one 2015-08-09 14:51:22 +01:00
Chris Young
8d4c4b9179 Support PowerPC 2015-08-09 14:07:38 +01:00
Daniel Silverstone
d6a0f3fef0 Fix copyright header on dukky.h 2015-08-09 12:28:44 +01:00
Daniel Silverstone
061472e520 Support duktape and WebIDL 2015-08-09 12:27:13 +01:00
Daniel Silverstone
aadb820089 Add duktape bindings 2015-08-09 12:26:41 +01:00
Daniel Silverstone
37b118d966 Add duktape binding support code 2015-08-09 12:26:28 +01:00
Daniel Silverstone
ad82c49a80 Add duktape 1.2.3 release ready for use 2015-08-09 12:26:11 +01:00
Vincent Sanders
c5a834f527 retrive the correct uievents spec and process it appropriately 2015-07-23 21:42:46 +01:00
Vincent Sanders
bdd9f59573 Attempt to extract the uievents IDL 2015-07-23 21:26:46 +01:00
Vincent Sanders
3b9df4f796 Fix IDL update from spec 2015-07-17 09:29:37 +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
30c2962faa Fixup javascript logging to cope with new varadic LOG macro 2015-05-28 16:33:30 +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
d06df231bc Update the core to use the split operations table headers
Second in the series to decouple the core API usage from the frontends.
2014-10-16 22:33:43 +01:00
Vincent Sanders
02bbaa3e88 split version info into its own header and remove unnecessary nesurf.h includes
The netsurf.h header should *only* contain the registration, core
initialisation and finalisation methods. Version information is best
placed in its own header.

Also remove any unneeded inclusion of this header limiting it to
solely the places the relevant API is required.
2014-10-13 15:08:16 +01:00
Vincent Sanders
37755fb135 add incomplete scheme fetcher for javascript urls 2014-08-25 15:59:52 -07:00
Michael Drake
49bed056dd Make browser_window_navigate (un)verifiable flag match browser_window_create. 2014-02-10 22:40:04 +00:00
Michael Drake
af014bce99 Allow tab creation without history clone. Changes browser_window_create and browser_window_navigate flags. 2014-02-10 14:08:45 +00:00
Vincent Sanders
f8854707bb fix leak of utsname structure (coverity 1109881) 2013-11-06 10:53:01 +00:00
Vincent Sanders
ccb0c1cfd1 implement very, very bad js window.top method 2013-06-03 23:10:53 +01:00
Vincent Sanders
3aba4b778a enable trace logging in binding generation 2013-06-03 15:16:38 +01:00
Vincent Sanders
8d57bb30af forcing a GC when the new global is created improves memory usage with scripts enabled 2013-06-03 11:55:37 +01:00
Vincent Sanders
6397fedb2b Turns out there are still two different compiles of the 1.8.5 API about 2013-06-03 11:10:46 +01:00
Vincent Sanders
ae6058c15c create objects from window on demand an keep them as simple unshared objects
update prototype handling to keep GC refs
2013-06-02 21:00:32 +01:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Vincent Sanders
ca345e9b99 fix version range when teh callback API changed 2013-05-22 20:42:37 +01:00