summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* windows: Use nserror reporting rather than always NoMemoryDaniel Silverstone2020-02-241-2/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Windows: Add nserror reporting functionDaniel Silverstone2020-02-242-0/+24
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add BadURL messageDaniel Silverstone2020-02-241-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* framebuffer: Use new enumerate feature of libnsfbDaniel Silverstone2020-02-241-1/+28
| | | | | | | | | 1. Select as default the most useful compiled in surface 2. If the selected surface is unavailable, report the valid surface list to the user. Also do this if the user specifies -f ? on the CLI. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* hashmap: Fix a whitespace bogonDaniel Silverstone2020-02-241-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* 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-243-1/+28
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* browser_window: Use messages for unknown errorsDaniel Silverstone2020-02-241-0/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* about: Correct handling of ring in fetch_about_pollDaniel Silverstone2020-02-241-1/+16
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* test: Another corestringDaniel Silverstone2020-02-241-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Browser window: Set the search string on show cookies.Michael Drake2020-02-241-2/+14
| | | | | We still need to tell the front end to open the cookies window.
* Cookie manager: Add API to set the search string.Michael Drake2020-02-242-0/+22
|
* Treeview: Add API for setting the search string.Michael Drake2020-02-242-0/+34
|
* Hashmap: Check for failure of first malloc.Michael Drake2020-02-241-0/+3
|
* Test: libmalloc_fig.so needs "-ldl".Michael Drake2020-02-241-1/+1
|
* fs_backing_store: Clear entry memory flags on readDaniel Silverstone2020-02-231-0/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* browser_window: Various little SSL fixesDaniel Silverstone2020-02-231-2/+13
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* curl: Implement SSL chain cache in cURL fetcherDaniel Silverstone2020-02-231-8/+150
| | | | | | | | | | | Because cURL can do connection caching behind the scenes, we need to have a cache for the SSL certificate chains which we send onward on first header back from cURL. This uses the new hashmap implementation to mean that we cache chains on a hostname:port basis. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* corestrings: add '443'Daniel Silverstone2020-02-231-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* ssl_certs: Add dup_intoDaniel Silverstone2020-02-232-0/+49
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Page info: Fix typo.Michael Drake2020-02-231-1/+1
|
* llcache: Rework fs_backing_store to use hashmapDaniel Silverstone2020-02-232-385/+249
| | | | | | | As a result, we no longer waste a bunch of RAM on the entries tables. This ought to be no slower, and more memory efficient. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* llcache: Persist anything available during llcache_finaliseDaniel Silverstone2020-02-231-0/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* utils: Add hashmap_count()Daniel Silverstone2020-02-233-4/+34
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* utils: Fix destroy of non-empty hashmapDaniel Silverstone2020-02-231-2/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* utils: Add iteration API to hashmapDaniel Silverstone2020-02-233-1/+141
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* utils: Add hashmap to sourcesDaniel Silverstone2020-02-231-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* utils: Add hashmap parameter function typesDaniel Silverstone2020-02-231-6/+36
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Page info: Avoid anonymous union for AmigaOS3 and OpenBSD.Michael Drake2020-02-231-60/+67
|
* GTK: Page info: Change crtvrfy to pi throughout.Michael Drake2020-02-231-39/+39
|
* NetSurf: Init/fini the page-info module on browser startup/quit.Michael Drake2020-02-231-1/+10
|
* Buildsystem: Build the page-info module.Michael Drake2020-02-231-1/+1
|
* Page info: Add core window size getter, and stub for keypresses.Michael Drake2020-02-231-0/+20
|
* Page info: Implement mouse action handling.Michael Drake2020-02-231-0/+91
|
* Page info: Implement redraw.Michael Drake2020-02-231-0/+114
|
* Page info: Implement page info window creation and destruction.Michael Drake2020-02-231-0/+250
|
* Page info: Add data structures and module init/fini.Michael Drake2020-02-231-0/+313
|
* Desktop: Add page-info API.Michael Drake2020-02-231-0/+141
| | | | | This will be a core window intended to show information about the page currently shown in the associated browser window.
* Browser window API: Add count for page state enum.Michael Drake2020-02-231-0/+1
|
* Browser window: Add stubs for new interfaces for page-info dialogue.Michael Drake2020-02-232-0/+53
|
* Browser window: Constify bw through page_info_state getter.Michael Drake2020-02-232-2/+2
|
* Plot style: Add function to engorge a colour channel.Michael Drake2020-02-231-0/+33
| | | | This can be used to exaggerate the red, green, or blue component.
* Plot style: Split lightness calc out of colour_to_bw_furthest macro.Michael Drake2020-02-231-4/+7
|