summaryrefslogtreecommitdiff
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* remove junk content_add_error apiVincent Sanders2020-05-065-14/+0
|
* remove unused junk error values from content structVincent Sanders2020-05-062-8/+0
| | | | saves over half a kilobyte for every content
* split dom event handling into separate moduleVincent Sanders2020-05-054-727/+837
|
* Clean up html content dom element insertion processingVincent Sanders2020-05-052-89/+159
|
* curl: Pass cert chain on even if we get no headersDaniel Silverstone2020-05-041-0/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* llcache: Actually pass on certificate chain properlyDaniel Silverstone2020-05-041-5/+10
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* remove the forward references in html form internal handlingVincent Sanders2020-05-032-549/+615
|
* remove forward delcarations and clean up formatting in html table layout ↵Vincent Sanders2020-05-032-581/+561
| | | | processing
* Improve hsndling of html content objects with no associated boxVincent Sanders2020-05-031-12/+39
|
* remove unecessary includeVincent Sanders2020-05-031-1/+0
|
* improve html content handler private headersVincent Sanders2020-05-0224-123/+277
|
* 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
|