summaryrefslogtreecommitdiff
path: root/content/handlers/javascript/duktape
Commit message (Collapse)AuthorAgeFilesLines
* initial implementation of split messages in cVincent Sanders2020-06-151-6/+0
| | | | functional but the compression switch still needs implementing
* implement a minimal xxd for builds to remove external dependancyVincent Sanders2020-06-031-4/+10
|
* canvas: Implement fully correct putImageData featuresDaniel Silverstone2020-05-241-48/+120
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS dom event binding: Squash leak of string.Michael Drake2020-05-241-1/+1
|
* Canvas: Do not overrun destination bitmap during creationDaniel Silverstone2020-05-241-5/+6
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* canvas: Support changing canvas size at runtimeDaniel Silverstone2020-05-232-8/+143
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Canvas: Move bitmap management to the 2D render contextDaniel Silverstone2020-05-231-0/+162
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* CanvasRenderingContext2D: More verbose input validation error messageDaniel Silverstone2020-05-221-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* javascript: Support Canvas to a basic levelDaniel Silverstone2020-05-225-2/+314
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* improve html content handler private headersVincent Sanders2020-05-022-2/+2
|
* dukky: Don't allow js_exec on a thread pending destructionDaniel Silverstone2020-04-261-0/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky: Various checks for win being NULLDaniel Silverstone2020-04-262-1/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window: Do not get stuck if callbacks are in-train during compartment closeDaniel Silverstone2020-04-251-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 heightVincent Sanders2020-04-242-1/+19
|
* Window: Add flag to ensure we don't set timeouts after closeDaniel Silverstone2020-03-221-0/+14
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: Add concept of js_closethreadDaniel Silverstone2020-03-221-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 tooDaniel Silverstone2020-03-221-2/+18
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Add refcounting to threadsDaniel Silverstone2020-03-211-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 splitDaniel Silverstone2020-03-213-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 callbackDaniel Silverstone2020-03-211-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Node: nodeValue setter should return value set into nodeDaniel Silverstone2020-02-231-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky: Guard pointless work for deep debugDaniel Silverstone2020-02-231-2/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: it's Infinity not infinityDaniel Silverstone2020-02-211-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: Add Element::attributes and NamedNodeMap to handle itDaniel Silverstone2020-02-213-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 builderDaniel Silverstone2020-02-211-0/+23
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Element: support innerHTMLDaniel Silverstone2020-02-211-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::createHTMLDocumentDaniel Silverstone2020-02-213-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 Drake2019-12-011-1/+31
|
* JavaScript: Add KeyboardEvent bindings.Michael Drake2019-12-012-1/+143
|
* Window: set{Timeout,Interval}() default delay 10msDaniel Silverstone2019-08-211-12/+8
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Duktape element binding: Check dom_string_create for error.Michael Drake2019-08-041-0/+6
|
* dukky: Remove unused `dukky_safe_get()`Daniel Silverstone2019-08-021-6/+0
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky: Clean up our stacktrace reportingDaniel Silverstone2019-08-021-31/+6
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Duktape: Hopefully silence issue with %lldDaniel Silverstone2019-08-021-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Duktape: Make declaration match definition for memcmp and double_div.Michael Drake2019-08-021-3/+3
|
* Duktape: Make declaration match definition for duk_refzero_check_fast()Michael Drake2019-08-021-1/+1
|
* Duktape: Make declarations match definitions for fastint-enabled functions.Michael Drake2019-08-021-2/+2
|
* Duktape: Make declarations match definitions for duk_raw_read_xxx_beMichael Drake2019-08-021-6/+6
|
* Duktape: Make declarations match definitions for inline functions.Michael Drake2019-08-021-4/+4
|
* Duktape: Prevent clang static analysis.Michael Drake2019-08-021-0/+3
|
* Duktape: Update to 2.4.0 release.Michael Drake2019-08-023-7413/+8430
|
* Document.bnd: Fix cookies getter and implement setterDaniel Silverstone2019-08-021-1/+33
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Add and utilise a jserrors categoryDaniel Silverstone2019-08-021-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 stuffDaniel Silverstone2019-08-021-9/+10
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window: Restructure EXPOSE()d globalsDaniel Silverstone2019-08-021-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 Silverstone2019-08-011-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Dukky: Support console logging betterDaniel Silverstone2019-08-014-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 Silverstone2019-08-011-4/+7
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Console.bnd: Support attempts to log when Window has goneDaniel Silverstone2019-08-011-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* cleanup some javascript documentation commentsVincent Sanders2019-07-121-15/+40
|