Michael Drake
ca29c3b512
Framebuffer: Make some log messages deep debug.
2020-03-12 17:21:28 +00:00
Ori Bernstein
bf427e3b2a
fix nsurl sizeof/offsetof
2020-03-12 15:07:08 +00:00
Michael Drake
7d06021e21
nsurl: Make nusrl component dump more usable.
...
This is only a development aid, and not something that should
be called in production.
2020-03-11 11:02:40 +00:00
Vincent Sanders
2c549b28fb
add page information ui elements to GTK frontend
2020-03-11 08:33:58 +00:00
Michael Drake
f59c415ef7
GTK: Initial page-info display.
2020-03-11 08:33:58 +00:00
Michael Drake
72ff12b3ae
Docs: Update for nsgtk3 rename.
2020-03-10 14:45:23 +00:00
Chris Young
b371454344
AmiSSL implies OpenSSL
2020-03-06 20:42:34 +00:00
Chris Young
47b689c5e9
Use nsamiga as defined in makefile
2020-03-06 20:35:56 +00:00
Chris Young
9664a8ac76
Mod os3support files so file.c builds
2020-03-06 20:29:45 +00:00
Chris Young
962431dd3d
Rename mask to msk
...
There's something about "mask" which causes the version of GCC we use for the m68k-amigaos build to misinterpret the code
2020-03-06 20:15:52 +00:00
Michael Drake
0e6ba162b2
Internal content: Restyle certificate viewer page.
2020-02-24 21:54:54 +00:00
Daniel Silverstone
14286b381b
fs_backing_store: Remove cache on failure to init
...
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>
2020-02-24 21:01:58 +00:00
Daniel Silverstone
5dd1a81f9c
utils/file: Add netsurf_recursive_rm
...
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>
2020-02-24 21:01:25 +00:00
Daniel Silverstone
921568166b
test: Add disc_cache_path to Choices-all test data
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 19:21:49 +00:00
Michael Drake
82805f72e6
Browser window: Rework constification of bw for show_certificates.
2020-02-24 19:18:20 +00:00
Michael Drake
c8efbbc206
Page info: We need a non-const browser window.
...
Due to where we pass it back out to browser window.
2020-02-24 19:17:27 +00:00
Vincent Sanders
1a25234f20
implement browser_window_show_certificates
2020-02-24 18:56:15 +00:00
Michael Drake
52bfae1782
Internal pages: Update directory listing style.
2020-02-24 18:22:03 +00:00
Michael Drake
1e6b0f1d76
Plot style: Add helper to swap red and blue channels.
2020-02-24 18:22:03 +00:00
Daniel Silverstone
4c256408c5
fetch: Bump last_msg rather than always assigning it
...
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>
2020-02-24 17:43:21 +00:00
Daniel Silverstone
02c5bde5a9
fs_backing_store: Fix some comparison types
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 17:43:14 +00:00
Daniel Silverstone
fa75e8e4fd
fs_backing_store: Use correct format specifier for 64bit int
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 17:19:45 +00:00
Daniel Silverstone
3602765e7f
inttypes: Add PRIu64
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 17:19:45 +00:00
Vincent Sanders
f172a21df9
about scheme certificate viewer initial implementation
2020-02-24 16:59:18 +00:00
Daniel Silverstone
5c205fbff0
fs_backing_store: Fix up comments to be in-line with values
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 15:56:55 +00:00
Michael Drake
f840833723
Low level cache: Squash use of uninitialised value.
...
Coverity issue:
CID 1419828: Memory - corruptions (UNINIT)
>>> Using uninitialized value "output_length".
2020-02-24 15:37:20 +00:00
Daniel Silverstone
133e00edbe
fs_backing_store: 8K metadata blocks, 1K blocks, bump version
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 15:37:12 +00:00
Daniel Silverstone
c88106e02a
monkey_driver: Add launch-time option support
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 15:37:12 +00:00
Daniel Silverstone
0b4d1fbb1b
monkey: Enable disc cache optionally on monkey
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 15:37:11 +00:00
Daniel Silverstone
40cb70b845
netsurf_init: Use disc_cache_path if specified, otherwise platform path
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 15:37:11 +00:00
Daniel Silverstone
a8ffa12cdf
options: Add disc_cache_path option
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 15:37:11 +00:00
Michael Drake
79821cd9cf
Frontends: Delete maps resource links.
2020-02-24 15:02:12 +00:00
Michael Drake
0140d1e5b1
Curl fetcher: Guard against read of uninitialised value.
...
Fixes Coverity issue:
CID 1419830: Memory - illegal accesses (UNINIT)
>>> Using uninitialized value "buf[depth]".
2020-02-24 14:58:16 +00:00
Michael Drake
63dd59bd2e
Cache backing store: Add missing calloc check.
...
Found by coverity:
CID 1419831: Null pointer dereferences (NULL_RETURNS)
>>> Dereferencing a pointer that might be "NULL" "url" when calling "read".
2020-02-24 14:34:37 +00:00
Michael Drake
b8dc537bf8
Curl fetcher: Squash coverity warning.
...
CID 1419832: Control flow issues (DEADCODE)
>>> Execution cannot reach this statement: "goto out;".
2020-02-24 14:31:02 +00:00
Daniel Silverstone
bb5d72410b
fetchers: Rework the about, data, file, and resource fetcher poll loop
...
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>
2020-02-24 14:25:37 +00:00
Michael Drake
a47270c93e
About fetches resources: Drop maps resource.
...
It had bitrotted.
2020-02-24 14:21:27 +00:00
Daniel Silverstone
e59e52b853
windows: Convert the remaining NoMemory warnings which aren't about memory
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 12:10:35 +00:00
Daniel Silverstone
2fa06ed503
windows: Use nserror reporting rather than always NoMemory
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 11:57:18 +00:00
Daniel Silverstone
56a9a25192
Windows: Add nserror reporting function
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 11:57:02 +00:00
Daniel Silverstone
a970572fc9
Add BadURL message
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 11:55:34 +00:00
Daniel Silverstone
8ca778197c
framebuffer: Use new enumerate feature of libnsfb
...
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>
2020-02-24 10:58:07 +00:00
Daniel Silverstone
b6d33785a0
hashmap: Fix a whitespace bogon
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 10:28:41 +00:00
Daniel Silverstone
97870122dd
fetch: When aborting, ensure we note this to not multi-fail
...
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>
2020-02-24 10:24:23 +00:00
Daniel Silverstone
5cfe0dfffc
fetchers: Apply cleaner ring handling mechanic to other fetchers
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 09:51:44 +00:00
Daniel Silverstone
083ba385d7
fetch: Automatically handle fetches which fail to finish
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 09:47:52 +00:00
Daniel Silverstone
50ff8433da
browser_window: Use messages for unknown errors
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 09:47:23 +00:00
Daniel Silverstone
89e468422d
about: Correct handling of ring in fetch_about_poll
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 09:46:59 +00:00
Daniel Silverstone
5a028f61d3
test: Another corestring
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-02-24 09:20:14 +00:00
Michael Drake
21bbda23fa
Browser window: Set the search string on show cookies.
...
We still need to tell the front end to open the cookies
window.
2020-02-24 08:55:26 +00:00