summaryrefslogtreecommitdiff
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* about: Correct handling of ring in fetch_about_pollDaniel Silverstone2020-02-241-1/+16
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* fs_backing_store: Clear entry memory flags on readDaniel Silverstone2020-02-231-0/+5
| | | | 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>
* 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>
* Keep the complete certificate chain from a fetchVincent Sanders2020-02-236-347/+171
| | | | | | | | | Instead of extracting information from the X509 certificate chain in the fetcher the entire chain is propagated in Distinguished Encoding Rules (DER) format. This allows all the information contained in a certificate chain to be retained which can subsequently be presented to the user
* Improve some content documentation commentsVincent Sanders2020-02-232-38/+116
|
* HTML Script: Check for success on intern of mimetype.Michael Drake2020-02-231-1/+5
|
* HTML: Ignore dom exceptions we don't care aboutDaniel Silverstone2020-02-231-4/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Node: nodeValue setter should return value set into nodeDaniel Silverstone2020-02-231-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* dukky: Guard pointless work for deep debugDaniel Silverstone2020-02-231-2/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: it's Infinity not infinityDaniel Silverstone2020-02-211-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: Add Element::attributes and NamedNodeMap to handle itDaniel Silverstone2020-02-213-0/+103
| | | | | | | This is a *very* rudimentary implementation lacking most of the functionality of NamedNodeMap but it's enough to get jQuery 1.12.4 up. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS Generics: Add a NodeMap proxy builderDaniel Silverstone2020-02-211-0/+23
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Element: support innerHTMLDaniel Silverstone2020-02-211-0/+123
| | | | | | | | To get us further along the JavaScript pathway, support the getter and setter for innerHTML. The getter always returns an empty string for now, but the setter works. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* JS: Add DOMImplementation::createHTMLDocumentDaniel Silverstone2020-02-213-0/+142
| | | | | | This was the last major thing blocking basic jQuery support Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* HTML: Ignore LOADING status in html_proceed_to_done()Daniel Silverstone2020-02-211-1/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* HTML: Don't transition the content state machine if we do nothingDaniel Silverstone2020-02-211-1/+7
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* HTML: Complete content state machine after async scriptDaniel Silverstone2020-02-213-5/+29
| | | | | | | | | The async script completion process needs to complete the content state machine so that browser throbbers eventually stop once async scripts have fetched and run, even if that happens *after* conversion finishes. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* re-order config include so strcasecmp is correctly detected on RISC OS/win32Vincent Sanders2019-12-221-1/+2
|
* html_script: Count sync scripts to prevent unpausing earlyDaniel Silverstone2019-12-191-2/+11
| | | | | | | | | If there is more than one incomplete sync script then it's important that we don't unpause hubbub too early. This commit adds a counter so that if there're unfinished sync scripts in the set, we don't unpause until the last one completes. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* HTML: box_consturction: cleanup name dom_string in box_object.Michael Drake2019-12-101-0/+2
|
* HTML redraw: Never draw box scrollbars for textareas.Michael Drake2019-12-091-0/+1
| | | | | | | The scrollbars for textareas are rendered by the widget. This stops us from putting broken scrollbars over the top of the textarea's own scrollbars.
* webp: NetSurf bitmap format is RGBA.Michael Drake2019-12-081-1/+3
| | | | | Issue a bitmap modified call after conversion, to allow front ends with different pixel formats to convert.
* fetch_curl_report_certs_upstream: Use new SSL_CERT_ERR_CERT_MISSINGDaniel Silverstone2019-12-031-1/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* fetch_curl_verify_callback: Do depth update after checkDaniel Silverstone2019-12-031-5/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* html: css fetcher: Fix passing LWC borrow to fetcher_add, which consumes.Michael Drake2019-12-021-1/+2
| | | | | | | | | Fixes abort on exit when corestring finalisation tried to unref what should have been the final ref: $ ./nsgtk3 corrupted double-linked list Aborted (core dumped)
* html: Fire DOM KeyboardEvents on keypresses.Michael Drake2019-12-011-0/+36
|
* dukky_push_event: Enable KeyboardEvent specialisation.Michael Drake2019-12-011-1/+31
|
* JavaScript: Add KeyboardEvent bindings.Michael Drake2019-12-012-1/+143
|
* html: Add function for issuing a keypress event.Michael Drake2019-12-012-0/+85
|
* html: Split out helper for firing DOM events and swallowing errors.Michael Drake2019-12-011-4/+23
|