summaryrefslogtreecommitdiff
path: root/content/handlers/javascript/duktape/Window.bnd
Commit message (Collapse)AuthorAgeFilesLines
* improve html content handler private headersVincent Sanders2020-05-021-1/+1
|
* dukky: Various checks for win being NULLDaniel Silverstone2020-04-261-0/+3
| | | | 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>
* 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>
* Dukky: Upgrade dukky binding to support new heap/thread splitDaniel Silverstone2020-03-211-6/+6
| | | | | | | | 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: it's Infinity not infinityDaniel Silverstone2020-02-211-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window: set{Timeout,Interval}() default delay 10msDaniel Silverstone2019-08-211-12/+8
| | | | 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>
* cleanup some javascript documentation commentsVincent Sanders2019-07-121-15/+40
|
* add isFinite to global contextVincent Sanders2019-07-011-0/+1
|
* Window.bnd: Suppress some unnecessary stack frame dumpsDaniel Silverstone2019-06-091-3/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window.bnd: Expose isNanDaniel Silverstone2019-06-091-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Window.bnd: Do not remove in-train callbacksDaniel Silverstone2019-06-091-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>
* Update schedulers return codesVincent Sanders2019-06-081-1/+6
| | | | | The GTK and monkey frontends schedulers now return NSERROR_NOT_FOUND when a caller is using a negative schedule time to remove a callback.
* Expose NaN on WindowDaniel Silverstone2019-05-251-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add dodgy window method to clear callbacksDaniel Silverstone2019-05-251-0/+33
| | | | | | | | | Until we can determine *how* the compartment isn't cleaning up properly in the duktape context, this will at least mean we don't get unpleasant callback related issues when compartments are reset during browsing. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Log when we finalise window objectsDaniel Silverstone2019-05-251-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Use new safe context dumpDaniel Silverstone2019-05-061-9/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* complete basic binding documentationVincent Sanders2019-05-061-3/+13
| | | | improve the alert() method parameter handling
* Ensure we clear the cbt entry after finishing a non-recurring callbackDaniel Silverstone2019-05-051-7/+21
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Replace zd with PRIsizet to appease WindowsDaniel Silverstone2019-05-051-6/+7
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* add some comments to window location bindingVincent Sanders2019-05-041-0/+2
|
* Expose Number and Error on WindowDaniel Silverstone2019-05-041-0/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Expose encodeURI{,Component}Daniel Silverstone2019-05-041-0/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add global handlers to WindowDaniel Silverstone2019-05-031-0/+155
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Javascript: Support setTimeout and friendsDaniel Silverstone2019-05-031-2/+214
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Use NSLOG rather than LOG/JS_LOGDaniel Silverstone2019-02-171-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Browser: Rename function to access bw URL.Michael Drake2018-07-231-1/+1
|
* move html and text content handlers where they belongVincent Sanders2018-05-101-2/+2
|
* update bindings with logging changesVincent Sanders2017-09-061-3/+4
|
* Duktape 2.X: duk_error now returns a duk_ret_tMichael Drake2017-03-231-6/+3
| | | | | | https://github.com/svaarala/duktape/blob/master/doc/release-notes-v2-0.rst#duk_error-duk_error_va-duk_throw-duk_fatal-have-a-return-value This also changes Console.bnd to return on error, rather than ignoring it.
* Move javascript content handler as appropriate for updated source formatVincent Sanders2016-06-071-0/+146