summaryrefslogtreecommitdiff
path: root/desktop/netsurf.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid integer types with platform dependent sizeDeltaVonNeumann2023-06-171-1/+1
|
* Prevent overflow of disc cache hysteresis.Michael Drake2021-01-251-3/+3
| | | | | | | | | | | | The default disc cache size is 1GB (1024 * 1024 * 1024). On systems with 32bit size_t, the hysteresis calculation, which multiplied 1GB by 20 would overflow, causing a zero hysteresis. (1024 * 1024 * 1024) * 20 % (2^32) = 0 Thanks to Jonas Amoson for reporting.
* NetSurf: Setup the nscolour module on startup.Michael Drake2020-04-071-0/+6
|
* netsurf_init: Use disc_cache_path if specified, otherwise platform pathDaniel Silverstone2020-02-241-1/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* NetSurf: Init/fini the page-info module on browser startup/quit.Michael Drake2020-02-231-1/+10
|
* netsurf_exit(): Finalise DOM namespace stringsDaniel Silverstone2019-09-071-0/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* netsurf_exit(): Release user-agent string on exitDaniel Silverstone2019-09-071-0/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Reimplement handling of BAD_AUTH inside browser_windowDaniel Silverstone2019-08-061-200/+0
| | | | | | | | | | | | | We now handle authentication requests via an `about:` page which presents a nice form built into the browser window. In order to do this, we add internal navigation as a concept to the browser window and we strip the 401login support from all frontends except monkey. The 401login callback is now intended for password safe type support rather than an immediately interactive prompt. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Excise the llcache query pathway.Daniel Silverstone2019-08-051-44/+9
| | | | | | | | In further preparation for the auth and cert queries being handled as special contents from `about:` this excises the query pathway from the llcache pretty much entirely. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* desktop: Expose llcache query handler temporarilyDaniel Silverstone2019-08-041-1/+10
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Logging: Bump lwc leak exit report to WARNING level.Michael Drake2019-05-061-1/+1
|
* HTTP Auth: Squash error path leaks.Michael Drake2018-08-151-0/+4
|
* HTTP Auth: Do get/set auth in the core.Michael Drake2018-08-141-4/+194
|
* HTTP authentication: Add some logging when opening 401 windows.Michael Drake2018-08-091-0/+3
|
* move html and text content handlers where they belongVincent Sanders2018-05-101-2/+2
|
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* make mimesniffing use core stringsVincent Sanders2017-03-191-6/+0
|
* create netsurf inttypes header to have portable integer formatting macrosVincent Sanders2017-01-211-1/+1
|
* Ensure memory used by Messages is freed on exitChris Young2016-12-111-0/+3
|
* complete transition to locale independant core operationVincent Sanders2016-09-291-2/+1
| | | | | | | | | | | | The netsurf core no longer uses any locale dependant operations excepting the mall number or cases where such operations are explicitly wanted. the netsurf_init now calls setlocale with the empty string and lets the c library setup as per its specific implementation. any core functionality that specificaly processes ascii text must use the utils/ascii.h header to do so.
* Allow certificate verification user prompt creation to return errorsVincent Sanders2016-07-311-2/+6
|
* Allow include directories to be added by sub makefilesVincent Sanders2016-06-061-3/+3
|
* move desktop window header into public APIVincent Sanders2016-05-301-1/+1
|
* move netsurf header into public APIVincent Sanders2016-05-301-2/+2
|
* move misc header into public APIVincent Sanders2016-05-301-1/+1
|
* move the CSS content handlerVincent Sanders2016-05-261-1/+1
|
* move image content handlers to accomodate core build changesVincent Sanders2016-05-231-2/+2
|
* complete the rename of the gui browser tableVincent Sanders2016-04-161-3/+3
| | | | | | When the operations tables were created the browser table was renamed to miscellaneous except the actual rename patch was never applied, this fixes that situation.
* Fix size_t printf formattingVincent Sanders2016-03-171-1/+2
| | | | | | | The printf formatting for size_t is set in c99 as %zu but in windows it is %Iu this is solved by adding and inttypes style PRI macro for size_t This also uses this macro everywhere size_t is formatted.
* Add support for retrying timed-out cURL fetches.Daniel Silverstone2015-11-101-0/+3
| | | | | | | | | | | | | This is an attempt to amelioriate the situation found in #2384 where we see the cURL connect() failing to complete. Based on the pcap from the bug log, we believe that RISC OS is likely failing to signal the completion of the connection to cURL. As such, cURL times out. This change permits retries of timed out connections in the hope that a fresh socket FD might subsequently function correctly. The defaults chosen mean that the previous behaviour of 30 seconds before timeout is reported will remain the same, but in that time we will make 3 separate attempts to connect the socket.
* This moves message loading out of netsurf_init into each frontendVincent Sanders2015-06-211-3/+1
| | | | | | | | | | The translated message loading is dependant on configuration of resource location in each frontend, additionally they should have the ability to deal with errors in this loading in a implementation specific manner. This also extends the message loading API to be capable of loading from an inline memory buffer instead of from a file.
* Move the browser identification and machine info logging.Vincent Sanders2015-06-211-9/+0
| | | | | | | | Previously this information was logged when netsurf_init was called which might be many lines out output into the log. It is useful to have this information at the beginning of the log to make it easily found. In addition it makes netsurf_init less complex.
* Change LOG() macro to be varadicVincent Sanders2015-05-281-19/+15
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* Improve llcache writeout stratagyVincent Sanders2014-11-281-8/+16
|
* Remove old URL header includes.Michael Drake2014-10-311-1/+0
|
* remove unused url_init functionVincent Sanders2014-10-311-2/+0
|
* Update the core to use the split operations table headersVincent Sanders2014-10-161-9/+3
| | | | Second in the series to decouple the core API usage from the frontends.
* split version info into its own header and remove unnecessary nesurf.h includesVincent Sanders2014-10-131-14/+13
| | | | | | | | | The netsurf.h header should *only* contain the registration, core initialisation and finalisation methods. Version information is best placed in its own header. Also remove any unneeded inclusion of this header limiting it to solely the places the relevant API is required.
* remove netsurf_poll callback and netsurf main loopVincent Sanders2014-10-131-14/+0
|
* make fetchers scheduledVincent Sanders2014-06-261-4/+1
|
* clean up the fetcher factory and improve its APIVincent Sanders2014-06-191-4/+4
|
* fix disc cache size option to be unsignedVincent Sanders2014-06-091-1/+1
|
* Completely re-write web search provider handlingVincent Sanders2014-05-251-2/+2
|
* add backing store storage path to browser initialisationVincent Sanders2014-05-131-3/+2
|
* Extend low level source data cache with persistant storageVincent Sanders2014-05-131-42/+67
|
* ensure operations tables are registered as early as possible.Vincent Sanders2014-05-101-9/+8
|
* move verbose log global into logging module and remove netsurf.h includeVincent Sanders2014-01-291-1/+0
|
* remove forward refs from content/fetch.c and cleanup doc commentsVincent Sanders2014-01-191-1/+4
|
* move 401 login into operation tableVincent Sanders2014-01-161-3/+1
|
* split browser gui operations upVincent Sanders2014-01-151-3/+3
|