Commit Graph

14778 Commits

Author SHA1 Message Date
John-Mark Bell
283f73dcaa HSTS: propagate enabled state for HTTPS URLs, too
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.
2024-01-20 18:12:52 +00:00
Chris Young
daa0fb5dc7 Amiga: Add "Enable CSS" to Prefs=>Advanced=>Misc 2024-01-15 13:29:24 +00:00
Chris Young
da33103357 Amiga: Ensure font kerning matches for width and plotting 2024-01-15 11:02:44 +00:00
Chris Young
9c5b07633f AmigaOS3: Revert disable backing store
For some reason this isn't finding the llcache_table
2024-01-15 11:01:43 +00:00
Chris Young
bef1ff3045 AmigaOS3: Disable backing store by default
It doesn't work on OS3, lots of write failed errors
2024-01-09 13:33:34 +00:00
Vincent Sanders
7c957b4564 remove pointless box structure 2024-01-08 22:40:11 +00:00
Vincent Sanders
ccb7562903 remove completely unused box pointer 2024-01-08 22:25:10 +00:00
Vincent Sanders
82410dbb9e Update copyright year 2024-01-05 17:29:03 +00:00
Chris Young
466361cb14 Amiga: Avoid double free of diskfont 2024-01-04 13:59:50 +00:00
Chris Young
c0904cf3fb Amiga: Update netsurf_os3.readme requirements
Now needs AmiSSL 5.13, and works on OS3.2/3.5/3.9
2024-01-04 13:30:20 +00:00
Chris Young
22e1f14106 Amiga: Add "Enable CSS" item to the Browser menu
This allows for a quick toggle of CSS next to the similar JS option
Enable CSS has not yet been added to the full prefs GUI
2024-01-03 17:07:32 +00:00
Vincent Sanders
50f3460426 Update version for next development cycle 2023-12-28 00:30:37 +00:00
Vincent Sanders
b128459593 Merge branch 'heads/releasing/3.11' 2023-12-28 00:27:33 +00:00
Vincent Sanders
3709818641 Update version files for release 2023-12-28 00:26:04 +00:00
Vincent Sanders
a82692093c Update copyright years and version numbers 2023-12-28 00:20:11 +00:00
John-Mark Bell
33ba78065a content/textplain: fix U+FFFD encoding 2023-12-21 00:57:08 +00:00
John-Mark Bell
94c5536129 RISC OS: update Acorn universal boot URLs
riscos.com reorganised years ago. Follow this reorganisation
(although it may be more sensible to stop pointing at this
abandonware and suggest using the RISC OS Open universal boot,
instead).
2023-12-20 00:03:11 +00:00
John-Mark Bell
df211ca3fb RISC OS: use https in distribution ReadMe 2023-12-20 00:01:17 +00:00
John-Mark Bell
f3e25d5c1f RISC OS: use https in Obey files
Also remove dead link to iyonix.com: the relevant information is
apparently now in Issue 3 of the Style Guide.
2023-12-19 23:54:32 +00:00
John-Mark Bell
157ec57cf2 RISC OS: use https in help links 2023-12-19 23:32:06 +00:00
John-Mark Bell
2af06447eb Update root CA bundle 2023-12-19 23:29:53 +00:00
John-Mark Bell
04a70af77d RISC OS: s/Freenode/libera.chat/ in Help files 2023-12-19 18:14:05 +00:00
John-Mark Bell
aab6948fcc RISC OS: update Iconv licensing information 2023-12-19 17:54:20 +00:00
John-Mark Bell
284ce17e61 RISC OS: switch to AcornURI from ROOL
This is the version of the module provided by ROOL in their
universal HardDisc images. It is long past time to retire the
cleanroom reimplementation we used to provide (which is no longer
actively maintained).
2023-12-19 17:54:20 +00:00
John-Mark Bell
adfd3b33fb RISC OS: expose !Cache licensing more obviously
Also, point at the appropriate origin for this component.
2023-12-19 17:54:20 +00:00
John-Mark Bell
d0b98dcacb RISC OS: resync !Unicode resource with ROOL
This resyncs the !Unicode resource with the latest version provided
by ROOL. Additionally, we place the full copyright information into
the 3rdParty tree.
2023-12-19 17:54:20 +00:00
John-Mark Bell
de8a76b2e9 RISC OS: update distribution ReadMe
* Point at ROOL Universal HardDisc4
  * Shuffle origin information into 3rdParty tree

Note that the origin for ARMEABISupport is approximate: at the
time of writing, the pre-built version available there is 1.03,
but we require 1.04 or later (sources for which are part of
GCCSDK in the usual way). We expect that an updated release binary
will eventually be published there, so this will do.
2023-12-19 17:54:20 +00:00
Vincent Sanders
bb3026b19d Fix corestring test 2023-12-13 14:33:47 +00:00
Vincent Sanders
188f6dd5c0 Fix use of uninitialised code variable in error reporting 2023-12-13 13:52:22 +00:00
Vincent Sanders
7f8ea62269 Attempt to fix maybe uninitialised error 2023-12-13 13:41:15 +00:00
Vincent Sanders
aa050729b4 Resolve progress function deprication in curl later than 7.32.0 2023-12-12 08:53:16 +00:00
Vincent Sanders
da4a1a4561 Remove use of depricated API after libcurl 7.56 2023-12-12 08:53:16 +00:00
Michael Drake
f68aca93b7 jpegxl: Ensure decoded bitmap format is converted to front end format 2023-11-26 17:26:09 +00:00
Michael Drake
d59f30c683 jpegxl: Tell libjxl to decode unpremultiply alpha if needed
On some platforms our bitmap format does not use premultiplied alpha.
2023-11-26 17:26:09 +00:00
Michael Drake
6fa4c04dea jpegxl: Designated initialiser for output format struct
So I could see the meanings of how we'd set up the decode.
2023-11-26 17:26:09 +00:00
Michael Drake
249e8472a2 Makefile: Set libjxl to AUTO 2023-11-26 17:26:09 +00:00
Vincent Sanders
b19fcdd26f avoid the unecessary callback API 2023-11-26 17:26:09 +00:00
Vincent Sanders
dbe5d1ef87 Implement simple jpeg xl image handler 2023-11-26 17:26:09 +00:00
Michael Drake
bbeb93d512 RISC OS: Add "Disable CSS" option to content choices UI 2023-11-26 12:25:28 +00:00
Michael Drake
14b6fa9546 RISC OS: Remove last vestiges of plugin support 2023-11-26 11:55:17 +00:00
Michael Drake
dcdd0148b2 html: css: Remove redundant origin filtering for author_level_css 2023-11-26 10:50:38 +00:00
Michael Drake
571a9ca0c9 html: Avoid processing STYLE elements if author_level_css disabled 2023-11-26 10:50:38 +00:00
Michael Drake
33bba1d9fd html: Avoid fetching (and decoding) linked stylesheets
When the `author_level_css` option is disabled, avoid fetching
stylesheets that won't be used for selection.
2023-11-26 10:50:38 +00:00
Michael Drake
74ab1eb244 html: css: Minor code style fix 2023-11-26 10:50:38 +00:00
Michael Drake
303d5f251f tests: Add author_level_css to list of all options 2023-11-25 21:49:43 +00:00
Michael Drake
c38be94bf9 css: Fix blocking of presentational hints for author_level_css=0 2023-11-25 21:37:06 +00:00
Michael Drake
3f764b0459 html: layout: Ensure all object types are reflowed if appropriate
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.
2023-11-25 21:09:01 +00:00
Michael Drake
4cb38c4704 css: Add option to ignore author level CSS
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
2023-11-25 20:02:23 +00:00
Vincent Sanders
41de6cb6f8 Ensure the current scaffold remains valid
When a scaffold was being destroyed the currently selected scaffold could become a reference to a destroyed object. This would result in crashes subsequently when the current scaffold was referenced.

The change is simply to ensure the selected scaffold is changed to something valid during destruction.
2023-11-25 12:02:58 +00:00
John-Mark Bell
d448436cdb Update root CA bundle 2023-09-17 16:03:47 +01:00