summaryrefslogtreecommitdiff
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* Socket: fix win32/aos3 buildJohn-Mark Bell2024-03-131-5/+0
|
* Fetch/curl: expose socket open/close via fetch vtableJohn-Mark Bell2024-03-131-0/+20
| | | | | This allows frontends to customise the behaviour of sockets. The default implementation simply maps to socket(2)/close(2).
* fetchers: drop support for ancient OpenSSLJohn-Mark Bell2024-03-132-328/+31
| | | | | | | | | We now require 1.1.1 or later (and, preferably, 3.x). Also take the opportunity to add support for LibreSSL 3.5.0 or later (we still support ancient versions of this because 3.5.0 is still relatively modern -- give it a few more years and support for old LibreSSL can go, too)
* use attributes to indicate switch fall through instead of commentsVincent Sanders2024-03-0510-42/+47
|
* avoid increased alignment warningVincent Sanders2024-03-051-1/+1
|
* res variable could possibly be used without being setVincent Sanders2024-02-271-2/+2
|
* width variable is only required with misconfigured libjpegVincent Sanders2024-02-271-0/+2
|
* HTML/forms: fix radio button group handlingJohn-Mark Bell2024-02-251-2/+15
|
* Do not crash if radio form has no name attributeVincent Sanders2024-02-251-3/+8
|
* Revert "fetchers: drop support for ancient OpenSSL"John-Mark Bell2024-02-112-31/+328
| | | | | | | ciworker{8,12} (respectively: FreeBSD, aarch64 Linux) are running obsolete OS versions. Disappointment ensues. This reverts commit 6bb70e88108c904d67e9af7c8e5b273f6cd6854f.
* fetchers: drop support for ancient OpenSSLJohn-Mark Bell2024-02-082-328/+31
| | | | | | | | | We now require 1.1.1 or later (and, preferably, 3.x). Also take the opportunity to add support for LibreSSL 3.5.0 or later (we still support ancient versions of this because 3.5.0 is still relatively modern -- give it a few more years and support for old LibreSSL can go, too)
* fetchers/curl: modernise TLS 1.2 cipher suitesJohn-Mark Bell2024-02-041-8/+25
| | | | | | | | | * Drop support for DHE completely (logjam plus compat woes caused other browsers to do this some time ago) * Minimise CBC-mode suites * Fall back to non-PFS RSA suites if really necessary (we treat this as a protocol downgrade as anything modern should either be using TLS 1.3 or have support for the ECDHE suites)
* HSTS: propagate enabled state for HTTPS URLs, tooJohn-Mark Bell2024-01-201-2/+9
| | | | | | | While we have no need to transform the URL in the HTTPS case, the HSTS policy should still result in a hard failure when something is untoward (i.e. not providing the user with a way to proceed). Ensure this is so.
* content/textplain: fix U+FFFD encodingJohn-Mark Bell2023-12-211-1/+1
|
* Fix use of uninitialised code variable in error reportingVincent Sanders2023-12-131-3/+4
|
* Attempt to fix maybe uninitialised errorVincent Sanders2023-12-131-1/+1
|
* Resolve progress function deprication in curl later than 7.32.0Vincent Sanders2023-12-121-6/+16
|
* Remove use of depricated API after libcurl 7.56Vincent Sanders2023-12-122-122/+425
|
* jpegxl: Ensure decoded bitmap format is converted to front end formatMichael Drake2023-11-261-1/+13
|
* jpegxl: Tell libjxl to decode unpremultiply alpha if neededMichael Drake2023-11-261-0/+9
| | | | On some platforms our bitmap format does not use premultiplied alpha.
* jpegxl: Designated initialiser for output format structMichael Drake2023-11-261-1/+6
| | | | So I could see the meanings of how we'd set up the decode.
* avoid the unecessary callback APIVincent Sanders2023-11-261-17/+4
|
* Implement simple jpeg xl image handlerVincent Sanders2023-11-265-0/+376
|
* html: css: Remove redundant origin filtering for author_level_cssMichael Drake2023-11-261-5/+0
|
* html: Avoid processing STYLE elements if author_level_css disabledMichael Drake2023-11-261-2/+7
|
* html: Avoid fetching (and decoding) linked stylesheetsMichael Drake2023-11-261-0/+4
| | | | | When the `author_level_css` option is disabled, avoid fetching stylesheets that won't be used for selection.
* html: css: Minor code style fixMichael Drake2023-11-261-2/+2
|
* css: Fix blocking of presentational hints for author_level_css=0Michael Drake2023-11-251-5/+7
|
* html: layout: Ensure all object types are reflowed if appropriateMichael Drake2023-11-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SVGTiny content handler uses the reflow method to set the content width/height. The when the content first broadcasts "done", the HTML handler checks if there had already been a layout. If there has, it calls the SVG's content reflow method with the box dimensions. If not, it calls the reflow method with width/height zero. Since the layout code was only reflowing objects if they were HTML, these SVG contents were never getting their actual dimensions. The result of this was that when we came to plot these SVGs we were dividing by zero in the building of the transformation matrix: transform[0] = (float) width / (float) c->width; ... transform[3] = (float) height / (float) c->height; These divided the plot size by the content size. The result of this on the GTK front end was infinities in the transformation matrix passed to Cairo, and the turning of the whole nsgtk window into a glitchy ruin while the SVG was on screen. It may have affected other front ends too; these divide by zeros were happening in the core, and passed to the front ends' plotters. This issue only affected SVGs on HTML pages, and not when viewed directly. Also the SVGs had to be completely fetched and converted before the document had undergone layout. This was the case with SVGs at the top of both Wikipedia and The Register. In both cases the glitching window would be fixed by scrolling down the page past the SVG.
* css: Add option to ignore author level CSSMichael Drake2023-11-253-5/+17
| | | | | | | | | | | | This adds a new config option, `author_level_css`. When it is disabled, NetSurf will ignore all CSS from the web page. In this case only the default CSS rules from the browser and user CSS rules will be applied. It is enabled by default. Tested by running: ./nsgtk3 --author_level_css=0
* content: backing store: Remove unused typedef.Michael Drake2023-06-171-8/+0
|
* Clean up print format specifier usageMichael Drake2023-06-175-12/+13
|
* Avoid integer types with platform dependent sizeDeltaVonNeumann2023-06-1710-33/+39
|
* fetchers/curl: tolerate lack of TLS1.3John-Mark Bell2023-03-051-2/+6
| | | | | | | | If we are building against a modern version of libcurl, but it was built against a version of OpenSSL that does not support TLS1.3, then attempting to configure TLS1.3 ciphersuites will fail with CURLE_NOT_BUILT_IN. Tolerate this scenario by treating such a return code as non-fatal in this case.
* html: layout: flex: Don't freeze already-frozen itemsMichael Drake2022-12-161-0/+4
| | | | This fixes an error in the used main size tracking.
* html: layout: flex: shrink: Avoid rounding error accumulationMichael Drake2022-12-161-4/+7
|
* html: layout: flex: grow: Avoid rounding error accumulationMichael Drake2022-12-161-3/+6
|
* html: layout: flex: Handle auto margins in main directionMichael Drake2022-12-151-5/+32
|
* html: layout: flex: Track used size and count auto margins for mainMichael Drake2022-12-151-0/+16
|
* html: layout: flex: Helper to get main margin end sizeMichael Drake2022-12-151-16/+32
|
* (curl): Add extra logging to fetcher initialisationDaniel Silverstone2022-12-151-4/+8
| | | | Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
* html: layout: flex: Support reversed main directionMichael Drake2022-12-141-10/+38
|
* html: layout: Helpers to get cross/main box sizeMichael Drake2022-12-141-0/+14
|
* html: layout: flex: Rename indirected box w/h functionsMichael Drake2022-12-142-5/+7
|
* html: layout: flex: Scope reduce variablesMichael Drake2022-12-141-2/+2
|
* html: layout: flex: Only distribute positive remaining cross spaceMichael Drake2022-12-141-1/+1
|
* html: layout: flex: Minor code style changeMichael Drake2022-12-141-6/+3
|
* html: layout: flex: Add code documentationMichael Drake2022-12-141-1/+126
|
* html: layout: flex: Hoist item placement out of line resolverMichael Drake2022-12-141-50/+50
|
* html: layout: flex: Return NULL for pointerMichael Drake2022-12-141-1/+1
|