Andreas Kling
733c6b14ff
LibWeb: Teach HTMLObjectElement to negotiate natural size with SVGs
...
We do this by generalizing the code previously used for SVGSVGBox into
something that can be used for NavigableViewportContainer as well.
2024-11-26 18:32:48 +01:00
Andreas Kling
2405805ddf
LibWeb: Delay load event in more HTMLObjectElement situation
2024-11-26 18:32:48 +01:00
Andreas Kling
e88286b337
LibWeb: Mark HTMLObjectElement as potentially delaying the load event
2024-11-26 18:32:48 +01:00
Andreas Kling
b859a6f2e0
LibWeb: Recurse into NavigableContentViewport in layout dumps
2024-11-26 18:32:48 +01:00
Andreas Kling
3ebc7fbd28
LibWeb: Create layout node for HTMLObjectElement navigable containers
...
This makes SVGs in object elements actually render!
2024-11-26 18:32:48 +01:00
Andreas Kling
dd7623eb30
LibWeb: Rename NestedBrowsingContextP => NavigableContainerViewportP
...
...where P is for Paintable :^)
2024-11-26 18:32:48 +01:00
Andreas Kling
11d966f3ba
LibWeb: Make NavigableContainerViewport always have a NavigableContainer
...
Let's not limit this to only corresponding to an HTMLIFrameElement.
2024-11-26 18:32:48 +01:00
Andreas Kling
443a8539e9
LibWeb: Rename Layout::FrameBox => NavigableContainerViewport
2024-11-26 18:32:48 +01:00
Jelle Raaijmakers
06863479be
LibWeb: Fix various local names for custom elements
...
This fixes the typo in `HTMLFieldSetElement` and adds valid local names
for `<meta>`, `<ol>` and `<optgroup>`.
2024-11-26 15:52:54 +01:00
stelar7
6c9a8362d6
LibWeb: Implement the wait step for open_a_database_connection
2024-11-26 14:50:27 +01:00
stelar7
4357c3229c
LibWeb: Implement legacyOutputDidListenersThrowFlag
2024-11-26 14:50:27 +01:00
stelar7
932fb2024e
LibWeb: Store IndexedDB Databases mappings properly
2024-11-26 14:50:27 +01:00
stelar7
1656d8fe07
LibWeb: Implement most of upgrade_a_database for IndexedDB
2024-11-26 14:50:27 +01:00
stelar7
ca25f76ccc
LibWeb: Remove old FIXMEs
2024-11-26 14:50:27 +01:00
stelar7
9aebe5f2eb
LibWeb: Dont take a reference to the request in IDBFactory::open()
2024-11-26 14:50:27 +01:00
stelar7
bb31b682a5
LibWeb: Implement IDBDatabase::close()
2024-11-26 14:50:27 +01:00
stelar7
49ad27816b
LibWeb: Properly implement IDBRequest::result()
2024-11-26 14:50:27 +01:00
stelar7
204d776cdb
LibWeb: Properly implement IDBRequest::error()
2024-11-26 14:50:27 +01:00
stelar7
29ddaa76e7
LibWeb: Implement IDBRequest::ready_state()
2024-11-26 14:50:27 +01:00
stelar7
a4b876b43e
LibWeb: Implement IDBRequest::source()
2024-11-26 14:50:27 +01:00
stelar7
48fae7b64f
LibWeb: Add IDBKeyRange
2024-11-26 14:50:27 +01:00
stelar7
20a92a81c4
LibWeb: Add IDBTransaction
2024-11-26 14:50:27 +01:00
stelar7
16ce2b975a
LibWeb: Add IDBObjectStore
2024-11-26 14:50:27 +01:00
stelar7
297c775b34
LibWeb: Add IDBIndex
2024-11-26 14:50:27 +01:00
stelar7
71772d97dc
LibWeb: Add IDBCursor
2024-11-26 14:50:27 +01:00
Glenn Skrzypczak
74645facae
LibWeb/HTML: Implement cite attribute according to spec
...
Implements the cite attribute of `q`, `blockqoute`, `ins` and `del`
elements according to spec by returning a valid URL.
2024-11-26 11:40:42 +00:00
Khaled Lakehal
2f51e9a98e
LibWeb/HTML: Use default input size (20) when value is 0
...
According to the HTML specification, the `size` attribute of an input
element must be a valid non-negative integer greater than zero. If the
value is invalid or set to `0`, the default size of `20` should be used.
This small change fixes one issue identified in
https://wpt.live/html/rendering/widgets/input-text-size.html
The WPT test suite was also automatically imported.
2024-11-26 10:01:57 +00:00
Andrew Kaster
1549d393b9
LibIPC: Remove socket path from IPC Client connections
...
We don't need these for Ladybird, and they are the only users of
some LibCore functions we can remove as well.
2024-11-26 11:00:48 +01:00
Sam Atkins
310cdc35f0
LibWeb: Fill-in some fixmes around sandboxing flag sets
...
...Including a couple of steps in
obtain_a_browsing_context_to_use_for_a_navigation_response() which
didn't have FIXMEs.
No apparent changes on WPT.
2024-11-26 10:59:50 +01:00
Sam Atkins
2c7e730726
LibWeb/HTML: Consume user activation when choosing a Navigable
...
Corresponds to https://github.com/whatwg/html/pull/10547
2024-11-26 10:59:50 +01:00
Pavel Shliak
af9d855b70
LibGfx: Delete DeprecatedPath
2024-11-25 21:13:53 +01:00
Pavel Shliak
dbfe5be9ff
LibGfx: Delete DeprecatedPainter
2024-11-25 21:13:53 +01:00
Glenn Skrzypczak
1e67b85571
LibWeb/Animation: Support progress values outside of [0,1]
...
If the progress is not in [0,1], the first two or the last two
keyframes are now used for interpolation outside the interval.
2024-11-25 18:10:24 +01:00
Glenn Skrzypczak
0d15cc4672
LibWeb/Animation: Fall back to discrete animation in more cases
...
Use discrete animation when the number of components or the types
of corresponding components do not match. This commit does not cover
all cases, but adds FIXME comments in the appropriate places.
2024-11-25 18:10:24 +01:00
Glenn Skrzypczak
4bec023b7b
LibWeb/Animation: Cancel pending play task on pause
...
This fixes a bug in `pause()` that canceled the pause task instead
of the play task. This issue prevented the animation from being paused
while a play task is scheduled.
2024-11-25 18:10:24 +01:00
Andreas Kling
d625e12082
LibWeb: Implement the deriveBits algorithm for X448
2024-11-25 17:16:51 +01:00
Andreas Kling
96ddccd961
LibWeb: Implement the importKey algorithm for X448
2024-11-25 17:16:51 +01:00
Andreas Kling
4a734226aa
LibWeb: Implement the exportKey algorithm for X448
2024-11-25 17:16:51 +01:00
Andreas Kling
5a8b0a2610
LibWeb: Implement the generateKey algorithm for X448
2024-11-25 17:16:51 +01:00
Milo van der Tier
aa33acf3a2
LibWeb: Update existing style object when setting style attribute
...
Previously any existing ElementInlineCSSStyleDeclaration would get
overwritten by e.setAttribute("style", ...), while it should be updated
instead.
This fixes 2 WPT subtests.
2024-11-25 17:16:29 +01:00
Jelle Raaijmakers
be3a941f44
LibWeb: Add ChannelMergerNode interface
2024-11-25 17:16:06 +01:00
devgianlu
506e490793
LibWeb+LibCrypto: Remove OID constants scattered around
...
Now that `Certificate` has been moved, the OID constants are easily
reachable in `LibCrypto`.
2024-11-25 13:38:38 +01:00
devgianlu
49c388b891
LibTLS+LibWeb+LibCrypto: Move Certificate to LibCrypto
...
By moving `Certificate` to `LibCrypto` it is possible to reuse a bunch
of code from in `LibCrypto` itself. It also moves some constants
and pieces of code to a more appropriate place than `LibTLS`.
This also makes future work on WebCryptoAPI easier.
2024-11-25 13:38:38 +01:00
devgianlu
fcdcba51f5
LibTLS+LibWeb: Decouple EC parameters from TLS::SupportedGroup
...
This is in preparation of the next commits to split the changes.
2024-11-25 13:38:38 +01:00
Sam Atkins
bdabc9b70d
LibWeb/DOM: Update "inner invoke" to current spec
...
Two differences:
1. An extra step inserted to record timing info, which we don't yet
implement.
2. The last step in the loop breaks instead of returning the value
directly. (But this is functionally the same, as the following step
does return that value.)
(Also removed the duplicated part of the comment in step 11 née 10.)
So, there's no actual change in behavior.
2024-11-25 13:34:40 +01:00
stelar7
331f26a88b
LibWeb: Implement IDBFactory::cmp
2024-11-25 11:53:50 +01:00
stelar7
c43b93e6fa
LibWeb: Implement convert_a_value_to_a_key for IndexedDB
2024-11-25 11:53:50 +01:00
stelar7
34479e5664
LibWeb: Add a Key type for IndexedDB
2024-11-25 11:53:50 +01:00
stelar7
d26ac9c446
LibWeb: Implement code_unit_less_than
2024-11-25 11:53:50 +01:00
sideshowbarker
e2a7f844e6
LibWeb: Handle accessible-name computation for shadow roots and slots
...
This change adds handling for the “Determine Child Nodes” substep at
https://w3c.github.io/accname/#comp_name_from_content_find_child in the
“Accessible Name and Description Computation” spec. Specifically, it
adds handling for the “If the current node has an attached shadow root”
and “if the current node is a slot with assigned nodes” conditions.
Otherwise, without this change, AT users don’t hear the expected
accessible names in cases where the content for which an accessible name
being computed is in a shadow root or slot element.
2024-11-25 11:52:48 +01:00