Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | javascript: Support Canvas to a basic level | Daniel Silverstone | 2020-05-22 | 5 | -2/+314 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | improve html content handler private headers | Vincent Sanders | 2020-05-02 | 2 | -2/+2 |
| | |||||
* | dukky: Don't allow js_exec on a thread pending destruction | Daniel Silverstone | 2020-04-26 | 1 | -0/+5 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | dukky: Various checks for win being NULL | Daniel Silverstone | 2020-04-26 | 2 | -1/+4 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Window: Do not get stuck if callbacks are in-train during compartment close | Daniel Silverstone | 2020-04-25 | 1 | -1/+30 |
| | | | | | | | | | When we close the JS compartment we try and cancel all callbacks so that they do not fire after the compartment is closed. However if we have in-train callbacks, they can gum up the closedown and so we need to check and if we've done all we can, we break out of the callback removal loop. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | add bindings for canvas width and height | Vincent Sanders | 2020-04-24 | 2 | -1/+19 |
| | |||||
* | Window: Add flag to ensure we don't set timeouts after close | Daniel Silverstone | 2020-03-22 | 1 | -0/+14 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | JS: Add concept of js_closethread | Daniel Silverstone | 2020-03-22 | 1 | -0/+20 |
| | | | | | | | In order to better model content close vs destroy, add the concept of closing a thread to the JS interface. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Dukky: Make heaps refcounted too | Daniel Silverstone | 2020-03-22 | 1 | -2/+18 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Dukky: Add refcounting to threads | Daniel Silverstone | 2020-03-21 | 1 | -5/+59 |
| | | | | | | | | | In order to cope with threads which manage to navigate entirely while executing (sadly possible) we need to handle the possibility that a thread is destroyed by the browser but still needs to live until it returns from whatever exec it was doing at the time. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Dukky: Upgrade dukky binding to support new heap/thread split | Daniel Silverstone | 2020-03-21 | 3 | -95/+121 |
| | | | | | | | | Update the duktape bindings and dukky interface to support the new JS heap/thread split. Heaps may have multiple active threads though in general there will only be 2 at a time. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | JS: Remove unused slow script callback | Daniel Silverstone | 2020-03-21 | 1 | -1/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Node: nodeValue setter should return value set into node | Daniel Silverstone | 2020-02-23 | 1 | -1/+2 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | dukky: Guard pointless work for deep debug | Daniel Silverstone | 2020-02-23 | 1 | -2/+2 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | JS: it's Infinity not infinity | Daniel Silverstone | 2020-02-21 | 1 | -1/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | JS: Add Element::attributes and NamedNodeMap to handle it | Daniel Silverstone | 2020-02-21 | 3 | -0/+103 |
| | | | | | | | This is a *very* rudimentary implementation lacking most of the functionality of NamedNodeMap but it's enough to get jQuery 1.12.4 up. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | JS Generics: Add a NodeMap proxy builder | Daniel Silverstone | 2020-02-21 | 1 | -0/+23 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Element: support innerHTML | Daniel Silverstone | 2020-02-21 | 1 | -0/+123 |
| | | | | | | | | To get us further along the JavaScript pathway, support the getter and setter for innerHTML. The getter always returns an empty string for now, but the setter works. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | JS: Add DOMImplementation::createHTMLDocument | Daniel Silverstone | 2020-02-21 | 3 | -0/+142 |
| | | | | | | This was the last major thing blocking basic jQuery support Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | dukky_push_event: Enable KeyboardEvent specialisation. | Michael Drake | 2019-12-01 | 1 | -1/+31 |
| | |||||
* | JavaScript: Add KeyboardEvent bindings. | Michael Drake | 2019-12-01 | 2 | -1/+143 |
| | |||||
* | Window: set{Timeout,Interval}() default delay 10ms | Daniel Silverstone | 2019-08-21 | 1 | -12/+8 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Duktape element binding: Check dom_string_create for error. | Michael Drake | 2019-08-04 | 1 | -0/+6 |
| | |||||
* | dukky: Remove unused `dukky_safe_get()` | Daniel Silverstone | 2019-08-02 | 1 | -6/+0 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | dukky: Clean up our stacktrace reporting | Daniel Silverstone | 2019-08-02 | 1 | -31/+6 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Duktape: Hopefully silence issue with %lld | Daniel Silverstone | 2019-08-02 | 1 | -1/+2 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Duktape: Make declaration match definition for memcmp and double_div. | Michael Drake | 2019-08-02 | 1 | -3/+3 |
| | |||||
* | Duktape: Make declaration match definition for duk_refzero_check_fast() | Michael Drake | 2019-08-02 | 1 | -1/+1 |
| | |||||
* | Duktape: Make declarations match definitions for fastint-enabled functions. | Michael Drake | 2019-08-02 | 1 | -2/+2 |
| | |||||
* | Duktape: Make declarations match definitions for duk_raw_read_xxx_be | Michael Drake | 2019-08-02 | 1 | -6/+6 |
| | |||||
* | Duktape: Make declarations match definitions for inline functions. | Michael Drake | 2019-08-02 | 1 | -4/+4 |
| | |||||
* | Duktape: Prevent clang static analysis. | Michael Drake | 2019-08-02 | 1 | -0/+3 |
| | |||||
* | Duktape: Update to 2.4.0 release. | Michael Drake | 2019-08-02 | 3 | -7413/+8430 |
| | |||||
* | Document.bnd: Fix cookies getter and implement setter | Daniel Silverstone | 2019-08-02 | 1 | -1/+33 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Dukky: Add and utilise a jserrors category | Daniel Silverstone | 2019-08-02 | 1 | -4/+4 |
| | | | | | | | Normal, and verbose logging will now also log all JS errors in order that we stand a chance of debugging things more easily when testing. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Window: Provide a little more info on why not EXPOSE()ing some stuff | Daniel Silverstone | 2019-08-02 | 1 | -9/+10 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Window: Restructure EXPOSE()d globals | Daniel Silverstone | 2019-08-02 | 1 | -14/+82 |
| | | | | | | | By reference to the MDN and to Duktape's CLI, expose everything we possibly can on the global object (Window). Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | dukky.c: Correct typo (BUTTOM -> BUTTON) | Daniel Silverstone | 2019-08-01 | 1 | -1/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Dukky: Support console logging better | Daniel Silverstone | 2019-08-01 | 4 | -2/+117 |
| | | | | | | | Add a polyfill for Array.from(), and fix the console formatter so that it won't keep exploding. This should improve matters in the tests. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | dukky: Attempt to make the fallback to HTMLUnknownElement more useful. | Daniel Silverstone | 2019-08-01 | 1 | -4/+7 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Console.bnd: Support attempts to log when Window has gone | Daniel Silverstone | 2019-08-01 | 1 | -1/+2 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | cleanup some javascript documentation comments | Vincent Sanders | 2019-07-12 | 1 | -15/+40 |
| | |||||
* | when owning context is destroyed ensure that active js compartment is ↵ | Vincent Sanders | 2019-07-12 | 1 | -24/+56 |
| | | | | destroyed first | ||||
* | add isFinite to global context | Vincent Sanders | 2019-07-01 | 1 | -0/+1 |
| | |||||
* | revert 8265b8b66f7072a659dbc0f3e50fe23d6d6a68a1 as ssize_t is not available ↵ | Vincent Sanders | 2019-06-25 | 1 | -1/+1 |
| | | | | everywhere | ||||
* | Duktape: Probably should use ssize_t | Daniel Silverstone | 2019-06-15 | 1 | -1/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Duktape: Hopefully silence issue with %lld | Daniel Silverstone | 2019-06-15 | 2 | -1/+4 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Window.bnd: Suppress some unnecessary stack frame dumps | Daniel Silverstone | 2019-06-09 | 1 | -3/+3 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Window.bnd: Expose isNan | Daniel Silverstone | 2019-06-09 | 1 | -0/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Window.bnd: Do not remove in-train callbacks | Daniel Silverstone | 2019-06-09 | 1 | -8/+17 |
| | | | | | | | | | | Sometimes callbacks may be cancelled from within themselves. In that case we need to simply ensure that should the callback be wanted to repeat, we instead stop that so that once the callback is completed we do not attempt to reschedule something which had already been deleted. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> |