summaryrefslogtreecommitdiff
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* add missing includeVincent Sanders2020-05-011-1/+2
|
* put html content handler object interface into its own headerVincent Sanders2020-05-015-23/+98
|
* remove unused available width and height parameters from html_fecth_object()Vincent Sanders2020-04-305-34/+37
|
* remove unecessary filename prefixes in the html content handlerVincent Sanders2020-04-308-10/+10
|
* split html box processing codeVincent Sanders2020-04-2920-2674/+2958
| | | | | | | reduce the module size of the html box handling code by splitting into smaller sections. No functional code change.
* Initial special canvas handling to not show fallbackVincent Sanders2020-04-281-3/+27
|
* clean up html box, no functionality change just cosmeticVincent Sanders2020-04-288-827/+1040
| | | | | | split up the html box headers tidy up the documentation comments avoid forward declarations in normalisation implementation
* use dom type interface instead of strcasecmpVincent Sanders2020-04-261-52/+87
|
* 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>
* remove forward declarationsVincent Sanders2020-04-262-2044/+2170
| | | | | reorder module to remove need for forward function declarations. remove unecessary and confusing parameter macros
* 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
|
* Implement javascript scheme url script https://wiki.whatwg.org/wiki/URL_schemesVincent Sanders2020-04-173-4/+46
|
* refactor html mouse actionVincent Sanders2020-04-131-482/+738
| | | | | | | | | | | | | | | | | This reduces the source complexity of the html_mouse_action() previously this was a single function of several thousand lines with over 30 local variables allocated on the stack. Variables are now mostly held in a single static structure which drasticaly reduces the size of stack frame required and improves lookup locality. The generated code does cause two additional function calls as the compiler avoids inlining the sub functions. The optimiser seems to produce somewhat better code within the sub functions. In the final analysis there appears to be no significant performance loss or gain with this change, just more readable source.
* About pages: Update presentation using nscolour.Michael Drake2020-04-071-100/+95
|
* Directory listings: Update to use nscolour.Michael Drake2020-04-071-53/+19
|
* about fetcher: Add about:nscolour.css generated colour stylesheet.Michael Drake2020-04-071-0/+46
|
* html: Also close js thread on html_stop()Daniel Silverstone2020-03-291-0/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* remove unused constantsVincent Sanders2020-03-261-7/+4
|
* about: Add handling for unknown about: pageDaniel Silverstone2020-03-221-2/+28
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* HTML: Use new js_closethread()Daniel Silverstone2020-03-221-1/+7
| | | | 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>
* JS: Add concept of js_closethreadDaniel Silverstone2020-03-223-4/+42
| | | | | | | 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>
* JS: Move ownership of jsthread from browser to htmlcDaniel Silverstone2020-03-223-27/+8
| | | | | | | | Since it makes more sense for the htmlc to be responsible for when the JS thread gets destroyed, move its lifetime from the responsibility of the browser window to the html content. 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: Add concept of thread destroyDaniel Silverstone2020-03-212-0/+18
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: Split concept of JS context into heap and threadDaniel Silverstone2020-03-217-56/+86
| | | | | | | | | In preparation for proper splitting of Javascript support into heaps and threads, this renames the types and corrects the no-js builds to still work. At this time no substantive change in semantics exists, and the duktape build won't work. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: Remove unused slow script callbackDaniel Silverstone2020-03-213-8/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Fetch: Squash use of uninitialised value in fetch_send_callback()Michael Drake2020-03-121-8/+1
| | | | | The `last_msg` member of `struct fetch` was not initialised on creation of the structure.
* Internal content: Restyle certificate viewer page.Michael Drake2020-02-241-7/+43
|
* fs_backing_store: Remove cache on failure to initDaniel Silverstone2020-02-241-3/+17
| | | | | | | | | | If we fail to init the control file for reasons other than it not being found, we blow away the cache in its entirety and then try again. We warn if the removal fails, but carry on regardless since right now the worst that'll happen is that we'll end up with more on disk than we know about in the cache. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Internal pages: Update directory listing style.Michael Drake2020-02-241-1/+55
|
* fetch: Bump last_msg rather than always assigning itDaniel Silverstone2020-02-241-1/+3
| | | | | | | | | | If we are aborting a cURL fetch then it's possible entry to cURL to clean up could cause a PROGRESS message to happen which we need to not reset last_msg for, otherwise we spuriously attempt to send an ERROR message during abort which is not a safe time for our message callback to be used. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* fs_backing_store: Fix some comparison typesDaniel Silverstone2020-02-241-2/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* fs_backing_store: Use correct format specifier for 64bit intDaniel Silverstone2020-02-241-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* about scheme certificate viewer initial implementationVincent Sanders2020-02-241-1/+279
|
* fs_backing_store: Fix up comments to be in-line with valuesDaniel Silverstone2020-02-241-2/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Low level cache: Squash use of uninitialised value.Michael Drake2020-02-241-3/+2
| | | | | | | Coverity issue: CID 1419828: Memory - corruptions (UNINIT) >>> Using uninitialized value "output_length".
* fs_backing_store: 8K metadata blocks, 1K blocks, bump versionDaniel Silverstone2020-02-241-3/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Curl fetcher: Guard against read of uninitialised value.Michael Drake2020-02-241-0/+3
| | | | | | | Fixes Coverity issue: CID 1419830: Memory - illegal accesses (UNINIT) >>> Using uninitialized value "buf[depth]".
* Cache backing store: Add missing calloc check.Michael Drake2020-02-241-0/+5
| | | | | | | Found by coverity: CID 1419831: Null pointer dereferences (NULL_RETURNS) >>> Dereferencing a pointer that might be "NULL" "url" when calling "read".
* Curl fetcher: Squash coverity warning.Michael Drake2020-02-241-3/+2
| | | | | CID 1419832: Control flow issues (DEADCODE) >>> Execution cannot reach this statement: "goto out;".
* fetchers: Rework the about, data, file, and resource fetcher poll loopDaniel Silverstone2020-02-244-123/+50
| | | | | | | This simplifies the poll loops a little more and makes me less worried that some other corner case will bite us in the future. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* About fetches resources: Drop maps resource.Michael Drake2020-02-242-30/+0
| | | | It had bitrotted.
* fetch: When aborting, ensure we note this to not multi-failDaniel Silverstone2020-02-242-0/+7
| | | | | | | | When aborting a fetch, it may be cleaned up, in which case we would otherwise send a spurious failure message too early. Instead we record that the abort has occurred to suppress such an error. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* fetchers: Apply cleaner ring handling mechanic to other fetchersDaniel Silverstone2020-02-243-3/+48
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* fetch: Automatically handle fetches which fail to finishDaniel Silverstone2020-02-242-1/+25
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>