devgianlu
1e98fa96d7
LibWeb: Fix bogus AesGcm and AesCtr key import length validation
...
The validation of the key size and specified algorithm was out of spec.
It is now implemented correctly like in `AesCbc`.
The issue was discovered while implementing `wrapKey` and `unwrapKey` in
the next commits.
2024-12-16 11:35:00 +01:00
devgianlu
ec990d620f
LibCrypto: Cleanup Crypto::PK::RSA constructors to avoid pitfalls
...
- Removed the constructor taking a (n, d, e) tuple and moved
it to `RSAPrivateKey`
- Removed default constructor with key generation because it was always
misused and the default key size is quite small
- Added utility constructors to accept a key pair, public key, private
key or both
- Made constructor parameters const
- Updated test to use generated random keys where possible
2024-12-15 23:31:49 +01:00
Pavel Shliak
40bf8dde88
LibWeb: Remove unnecessary Quad.h include
2024-12-15 23:27:42 +01:00
Gustavo Ramirez
108701c899
LibWeb/CSS: Refactor phase() method to reduce redundancy
...
The function AnimationEffect::phase() contained duplicated condition
checks for the animation phase determination. This refactor eliminates
the redundant checks by simplifying the logic.
2024-12-15 10:05:08 +00:00
Feng Yu
7bb7edd6df
LibWeb: Fix is_valid_status_text to handle UTF-8 correctly
...
This change fixed a WPT subtest which I also imported.
2024-12-15 08:33:30 +00:00
Feng Yu
9c76260756
LibWeb: Sync statusText check with spec update
...
Synced change from https://github.com/whatwg/fetch/pull/1795 .
No functional changes; only update comments to reflect the latest
spec.
2024-12-15 08:33:30 +00:00
stelar7
0b1c7d6af2
LibWeb: Mark open request as processed if the spec forgot
2024-12-14 23:02:59 +01:00
stelar7
32e5fb4da5
LibWeb: Add missing spec comment for method
2024-12-14 23:02:59 +01:00
stelar7
a25bba27fa
LibWeb: Close the database if the upgrade connection is aborted
2024-12-14 23:02:59 +01:00
stelar7
0b8f2a8b81
LibWeb: Implement wait step for IndexedDB upgrade_a_database
2024-12-14 23:02:59 +01:00
stelar7
7c3f44282d
LibWeb: Implement IDBTransaction::abort
2024-12-14 23:02:59 +01:00
stelar7
2954278e37
LibWeb: Implement abort_a_transaction for IndexedDB
2024-12-14 23:02:59 +01:00
stelar7
609f7aa659
LibWeb: Implement IDBFactory::delete_database
2024-12-14 23:02:59 +01:00
stelar7
452506964c
LibWeb: Add const qualifiers to Vector iteration in IndexedDB
2024-12-14 23:02:59 +01:00
stelar7
0327541999
LibWeb: Implement delete_a_database for IndexedDB
2024-12-14 23:02:59 +01:00
Tim Ledbetter
022141647a
LibWeb: Implement PopoverInvokerElement attribute change steps
...
PopoverInvokerElement's explicitly set attr-element should be set to
null whenever the value of the `popovertarget` content attribute is
changed.
2024-12-14 12:11:28 -08:00
Tim Ledbetter
40cb36607c
LibWeb: Include namespace parameter in associated_attribute_changed()
2024-12-14 12:11:28 -08:00
Shannon Booth
18dddaa742
LibWeb/HTML: Use DOM's post-connection steps for iframe elements
...
See: https://github.com/whatwg/html/commit/c8ec987d1
2024-12-14 12:06:41 -08:00
Luke Wilde
160c15444b
LibWeb/WebGL2: Implement blitFramebuffer
2024-12-14 09:06:28 +01:00
Luke Wilde
4a4263d869
LibWeb/WebGL2: Implement readBuffer
2024-12-14 09:06:28 +01:00
Luke Wilde
db89b478ff
LibWeb/WebGL2: Implement renderbufferStorageMultisample
2024-12-14 09:06:28 +01:00
Luke Wilde
8b07af9801
LibWeb/WebGL2: Implement bindBufferBase
2024-12-14 09:06:28 +01:00
Luke Wilde
6e42f401f9
LibWeb/WebGL2: Implement texImage3D with ArrayBufferView and offset
2024-12-14 09:06:28 +01:00
Luke Wilde
50b4d65540
LibWeb/WebGL2: Implement texImage2D with ArrayBufferView and offset
2024-12-14 09:06:28 +01:00
Luke Wilde
766f4d2ec4
LibWeb/WebGL2: Implement texSubImage2D with ArrayBufferView and offset
2024-12-14 09:06:28 +01:00
Luke Wilde
e6ebec853b
LibWeb/WebGL2: Implement texSubImage3D with ArrayBufferView and offset
2024-12-14 09:06:28 +01:00
Luke Wilde
5cde82ac80
LibWeb/WebGL2: Implement texStorage3D
2024-12-14 09:06:28 +01:00
Luke Wilde
776328e2e7
LibWeb/WebGL2: Implement getInternalformatParameter
2024-12-14 09:06:28 +01:00
Luke Wilde
0207487199
LibWeb/WebGL2: Implement deleteSync
2024-12-14 09:06:28 +01:00
Luke Wilde
ff8a9549f1
LibWeb/WebGL2: Implement clientWaitSync
2024-12-14 09:06:28 +01:00
Luke Wilde
135ceb387e
LibWeb/WebGL2: Implement fenceSync
2024-12-14 09:06:28 +01:00
Luke Wilde
bc9ae79a47
LibWeb/WebGL2: Implement texSubImage2D with ArrayBufferView
2024-12-14 09:06:28 +01:00
Luke Wilde
f4f3e446a2
LibWeb/WebGL2: Implement bindSampler
2024-12-14 09:06:28 +01:00
Luke Wilde
8a9d1de1cf
LibWeb/WebGL2: Implement createSampler
2024-12-14 09:06:28 +01:00
Luke Wilde
71521a7004
LibWeb/WebGL2: Implement WebGL 1 version of bufferSubData
2024-12-14 09:06:28 +01:00
Luke Wilde
bd1cc239df
LibWeb/WebGL2: Implement uniformMatrix{2,3,4}fv
2024-12-14 09:06:28 +01:00
Lucas CHOLLET
3c60510896
LibWeb/CSS: Correctly serialize the colorspace name of xyz and xyz-d65
...
This gives us a +40 subtests passes in:
- css/css-color/parsing/color-valid-color-function.html
2024-12-14 07:43:48 +00:00
devgianlu
9240d38273
LibCrypto+LibTLS+LibWeb: Store EC key size + refactor serialization
...
In order for public/private key serialization to work correctly we must
store the size of the key because P-521 cannot be stored as full words
inside `UnsignedBigInteger` and therefore is exported as the wrong
length (68 instead of 66).
This makes it also possible to refactor some methods and cleanup
constants scattered around.
Gets almost all import/export tests, expect the JWK ones that calculate
the public key on export. The `SECPxxxr1` implementation currently fails
to do calculations for P-521.
2024-12-14 01:52:16 +01:00
devgianlu
70db7772b8
LibWeb: Expose support for P-521 in ECDH and ECDSA
...
Replace all TODOs and FIXMEs requiring P-521 support with actual code
paths that make use of it. Gets a few tests by simply not failing early.
2024-12-14 01:52:16 +01:00
Sam Atkins
e318316af7
LibWeb/CSS: Add missing parameter to CSSStyleValue::to_string() calls
2024-12-13 08:23:56 -08:00
Manuel Zahariev
f5e01192cc
LibWeb: Layout standalone SVG document with specified dimensions
...
Before, standalone SVG documents were stretched to fit the agent
viewport.
2024-12-13 15:02:49 +00:00
Gingeh
84150f972f
LibWeb: Properly serialize position/edge style values
2024-12-13 11:35:38 +00:00
sideshowbarker
583ca6af89
LibWeb: Implement <input type=checkbox switch> experimentally
...
In conformance with the requirements of the spec PR at
https://github.com/whatwg/html/pull/9546 , this change adds support for
the “switch” attribute for type=checkbox “input” elements — which is
shipping in Safari (since Safari 17.4). This change also implements
support for exposing it to AT users with role=switch.
2024-12-13 11:31:27 +00:00
Aliaksandr Kalenik
897883f947
LibWeb/WebGL: Implement texStorage2D()
2024-12-13 09:19:10 +01:00
Aliaksandr Kalenik
cfff38a176
LibWeb/WebGL: Implement uniform{1,2,3,4}{i,f}v calls for WebGL2
2024-12-13 09:19:10 +01:00
Aliaksandr Kalenik
73479d3f94
LibWeb/WebGL: Implement drawBuffers()
2024-12-13 09:19:10 +01:00
Aliaksandr Kalenik
145bb0f849
LibWeb/WebGL: Implement getSupportedExtensions()
2024-12-13 09:19:10 +01:00
Aliaksandr Kalenik
af4f0c5a81
LibWeb/WebGL: Implement texImage3D()
2024-12-13 09:19:10 +01:00
Aliaksandr Kalenik
ba19328b98
LibWeb/WebGL: Implement vertexAttrib{1,2,3,4}fv
2024-12-13 09:19:10 +01:00
Aliaksandr Kalenik
4e8ec1e793
LibWeb/WebGL: Implement readPixels()
2024-12-13 09:19:10 +01:00