Commit Graph

14718 Commits

Author SHA1 Message Date
John-Mark Bell
a8ff4ab228 fetchers/curl: tolerate lack of TLS1.3
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.
2023-03-05 21:37:22 +00:00
Michael Drake
b22e61871c gtk: Don't try to make zero-size bitmaps
Fixes complete failure to render wikipedia and the register when
built against rsvg.
2023-01-24 15:30:57 +00:00
Michael Drake
f7a0135300 html: layout: flex: Don't freeze already-frozen items
This fixes an error in the used main size tracking.
2022-12-16 14:18:46 +00:00
Michael Drake
73dab84ef8 html: layout: flex: shrink: Avoid rounding error accumulation 2022-12-16 14:18:46 +00:00
Michael Drake
dbd7f5bcd8 html: layout: flex: grow: Avoid rounding error accumulation 2022-12-16 14:18:46 +00:00
Michael Drake
71765dd1e8 html: layout: flex: Handle auto margins in main direction 2022-12-15 21:57:15 +00:00
Michael Drake
88e6fc918a html: layout: flex: Track used size and count auto margins for main 2022-12-15 21:57:15 +00:00
Michael Drake
cab66fb1ac html: layout: flex: Helper to get main margin end size 2022-12-15 21:57:15 +00:00
Daniel Silverstone
651deffcf7 (curl): Add extra logging to fetcher initialisation
Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
2022-12-15 10:40:22 +00:00
Michael Drake
e754f31cb7 html: layout: flex: Support reversed main direction 2022-12-14 22:53:35 +00:00
Michael Drake
fbc4f141f7 html: layout: Helpers to get cross/main box size 2022-12-14 22:53:35 +00:00
Michael Drake
25acf1a5dd html: layout: flex: Rename indirected box w/h functions 2022-12-14 22:53:35 +00:00
Michael Drake
73ce30325f html: layout: flex: Scope reduce variables 2022-12-14 22:53:35 +00:00
Michael Drake
3760bbcd2a html: layout: flex: Only distribute positive remaining cross space 2022-12-14 22:53:35 +00:00
Michael Drake
b07bda787c html: layout: flex: Minor code style change 2022-12-14 22:53:35 +00:00
Michael Drake
43d5ce44ac html: layout: flex: Add code documentation 2022-12-14 22:53:35 +00:00
Michael Drake
8d4176e4d4 html: layout: flex: Hoist item placement out of line resolver 2022-12-14 22:53:35 +00:00
Michael Drake
6da16e5648 html: layout: flex: Return NULL for pointer 2022-12-14 22:53:35 +00:00
Michael Drake
fbb39f0d49 html: layout: Helper for whether flex direction is reversed 2022-12-14 22:53:35 +00:00
Michael Drake
f30f869ea4 rsvg246: Fix build against librsvg 2.48
The version of librsvg is used on Ubuntu 20.04TLS.
2022-12-13 13:02:44 +00:00
Michael Drake
68a4cd39cd rsvg246: Split out width/height acquisition 2022-12-13 13:02:44 +00:00
Vincent Sanders
9b57f64c55 add rsvg image decoder that uses the new API 2022-11-27 17:34:41 +00:00
Daniel Silverstone
550900b1cb
(Element): Honour [SameObject] for ::classList getter
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-11-27 14:52:48 +00:00
Daniel Silverstone
f29f12a5df
(docs): Update the unimplemented JS bits list
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-11-27 09:43:23 +00:00
Daniel Silverstone
7bcd4fd246
DOMTokenList: Add support and testing for this
We add both DOMTokenList and DOMSettableTokenList and introduce
polyfills for stringifying it until nsgenbind can do that.

We also bring in a test to demonstrate all that we have.

Note: This does not implement the extra methods that exist according
to MDN, we may need a polyfill to bring that up to snuff.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-11-27 09:40:47 +00:00
Daniel Silverstone
764fca4f3a
utils/utf8.c: Fix missing format string for snprintf
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-11-26 16:55:47 +00:00
Vincent Sanders
0c25ae5e8e remove the ambiguity around the reallocation in utf8_to_html() 2022-11-26 15:21:16 +00:00
Vincent Sanders
1d82ef411a consolodate duplicated conversion descriptor cache code 2022-11-26 15:21:16 +00:00
Vincent Sanders
6780766fb7 Improve utf8 conversion function
Newer compilers were (correctly) pointing out use after free.

Slightly reworkeed conversion function to remove compiler warnings
and clean up implementation.
2022-11-26 15:21:16 +00:00
Daniel Silverstone
3d739479ea
(duktape): Clear some warnings by adding base data to css rule and stylesheet
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-11-26 14:55:20 +00:00
Michael Drake
14fba9afdc GitHub CI: Make codeql job name match other jobs 2022-11-09 17:10:48 +00:00
Michael Drake
d893a6d602 GitHub CI: Update for new env.sh 2022-11-09 17:10:48 +00:00
Michael Drake
beaeec5792 env.sh: Add support for building only a lib
Allow the build environment to be set up for building a library
only instead of the whole browser.
2022-11-09 17:10:48 +00:00
John-Mark Bell
20f5599514 fetchers/curl: drop non-PFS fallback ciphersuite 2022-11-05 12:49:01 +00:00
John-Mark Bell
85da9873f7 fetchers/curl: disable TLS1.0 and TLS1.1 support 2022-11-05 12:42:15 +00:00
John-Mark Bell
53e92ed57b fetchers/curl: explicitly configure TLS1.3 ciphersuites
These currently match the defaults, so no functional change.
2022-11-05 12:42:15 +00:00
Michael Drake
877bc2ce13 gif: Ensure we never pass NSERROR_OK to error broadcast 2022-11-04 13:52:17 +00:00
Michael Drake
afbd9cd5e8 gif: Mark gifs as complete after scanning source data
This allows libnsgif to distinguish between awaiting more
data, and a broken truncated GIF. In the latter case we
can display what we have.
2022-11-04 11:36:02 +00:00
John-Mark Bell
7148d165a5 RISC OS: conditionally demand ARMEABISupport in !Run
Will only be enabled if an EABI-aware compiler is used to build
the code. At some point, a suitable copy of ARMEABISupport needs
adding to the supplied !System.400.Modules along with licensing
information in the 3rdParty directory.
2022-11-03 22:17:39 +00:00
John-Mark Bell
d8977f7814 RISC OS: generate unwind tables for EABI builds 2022-11-03 21:44:57 +00:00
John-Mark Bell
692da43855 BuildSystem: make package step depend on POSTEXES
The POSTEXE stages might add more stuff to the package contents,
so ensure they have completed before starting to package things up.
2022-11-03 21:44:57 +00:00
John-Mark Bell
7a767da220 Buildsystem: support arm-riscos-gnueabi 2022-11-03 21:44:57 +00:00
John-Mark Bell
2f56bc568d env.sh: support arm-riscos-gnueabi 2022-11-03 21:44:57 +00:00
Michael Drake
217f71357e html: layout: flex: Disable verbose logging 2022-11-02 20:16:41 +00:00
Michael Drake
45b68a3b50 html: layout: flex: Implement align-items and align-self 2022-11-02 20:16:41 +00:00
Michael Drake
47482bd539 html: layout: flex: Implement wrap-reverse 2022-11-02 20:16:41 +00:00
Michael Drake
e9147bdeea html: layout: flex: Don't pass content around unnecessarily 2022-11-02 20:16:41 +00:00
Michael Drake
b91d61b89f html: layout: flex: Compare line main size with available main
When deciding whether to use the grow or shrink flex factor we
we using the available width, rather than the space available in
the main direction.
2022-11-02 20:16:41 +00:00
Michael Drake
d0b1bcb01a html: layout: flex: Unify line item placement 2022-11-02 20:16:41 +00:00
Michael Drake
6c2f9f3285 html: layout helpers: Add helpers for width/height indirection 2022-11-02 20:16:41 +00:00