summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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-225-71/+25
| | | | | | | | 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>
* Browser: Split JS threads between current and loadingDaniel Silverstone2020-03-212-13/+44
| | | | 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-219-69/+104
| | | | | | | | | 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-214-26/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* nsurl: Fix parent path length.Michael Drake2020-03-131-1/+1
|
* Browser window: Clean up cert chains when bw is destroyed.Michael Drake2020-03-121-0/+5
|
* 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.
* Framebuffer: Make some log messages deep debug.Michael Drake2020-03-122-4/+6
|
* fix nsurl sizeof/offsetofOri Bernstein2020-03-121-2/+2
|
* nsurl: Make nusrl component dump more usable.Michael Drake2020-03-113-45/+44
| | | | | This is only a development aid, and not something that should be called in production.
* add page information ui elements to GTK frontendVincent Sanders2020-03-116-83/+101
|
* GTK: Initial page-info display.Michael Drake2020-03-111-44/+15
|
* Docs: Update for nsgtk3 rename.Michael Drake2020-03-103-11/+5
|
* AmiSSL implies OpenSSLChris Young2020-03-061-1/+1
|
* Use nsamiga as defined in makefileChris Young2020-03-061-1/+1
|
* Mod os3support files so file.c buildsChris Young2020-03-063-1/+15
|
* Rename mask to mskChris Young2020-03-061-2/+2
| | | | There's something about "mask" which causes the version of GCC we use for the m68k-amigaos build to misinterpret the code
* Internal content: Restyle certificate viewer page.Michael Drake2020-02-242-8/+45
|
* 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>
* utils/file: Add netsurf_recursive_rmDaniel Silverstone2020-02-242-0/+86
| | | | | | | This is to be used to remove the disc cache (and other things if useful in the future) Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* test: Add disc_cache_path to Choices-all test dataDaniel Silverstone2020-02-241-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Browser window: Rework constification of bw for show_certificates.Michael Drake2020-02-243-5/+7
|
* Page info: We need a non-const browser window.Michael Drake2020-02-242-4/+4
| | | | Due to where we pass it back out to browser window.
* implement browser_window_show_certificatesVincent Sanders2020-02-241-4/+65
|
* Internal pages: Update directory listing style.Michael Drake2020-02-242-14/+77
|
* Plot style: Add helper to swap red and blue channels.Michael Drake2020-02-241-0/+6
|
* 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>
* inttypes: Add PRIu64Daniel Silverstone2020-02-241-0/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* about scheme certificate viewer initial implementationVincent Sanders2020-02-243-1/+377
|
* 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>
* monkey_driver: Add launch-time option supportDaniel Silverstone2020-02-241-1/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* monkey: Enable disc cache optionally on monkeyDaniel Silverstone2020-02-242-0/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* netsurf_init: Use disc_cache_path if specified, otherwise platform pathDaniel Silverstone2020-02-242-1/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* options: Add disc_cache_path optionDaniel Silverstone2020-02-241-0/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Frontends: Delete maps resource links.Michael Drake2020-02-247-7/+0
|
* 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-249-121/+3
| | | | It had bitrotted.
* windows: Convert the remaining NoMemory warnings which aren't about memoryDaniel Silverstone2020-02-241-4/+7
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>