stelar7
7b9d5f9fdc
LibWeb/EME: Implement get_supported_configuration
2025-08-27 09:58:00 +02:00
stelar7
ca66a4933e
LibWeb/EME: Implement get_supported_configuration_and_consent
2025-08-27 09:58:00 +02:00
stelar7
8f2886733c
LibWeb/EME: Implement get_supported_capabilities_for_audio_video_type
2025-08-27 09:58:00 +02:00
stelar7
d65f599f92
LibWeb/EME: Add EncryptedMedia allowed allowed feature flag
2025-08-27 09:58:00 +02:00
stelar7
b1c1e33bae
LibWeb/EME: Implement MediaKeySystemAccess
2025-08-27 09:58:00 +02:00
stelar7
cc50b30399
LibWeb/EME: Implement a KeySystem
2025-08-27 09:58:00 +02:00
stelar7
7f2b431810
Meta/IDL: Ensure unique variable name when iterating dictionary members
2025-08-27 09:58:00 +02:00
stelar7
69c6b6df91
Meta/IDL: Correctly generate variable names when value contains a dot
2025-08-27 09:58:00 +02:00
zac
4070f5a7e0
LibWeb: Prevent hit testing from transforming position more than once
...
The transform of each paintable was being applied multiple times due to
the recursive nature of the hit testing methods. Previously it used
combined_css_transform to transform the position, and then it would pass
that position to children, which would then apply combined_css_transform
again, and so on.
PaintableBoxes are also not hit tested anymore when having a stacking
context. A similar check is done in PaintableWithLines, but it was
missing from PaintableBox. Without this check some elements can get
returned multiple times from a hit test.
StackingContexts with zero opacity will now also get hit tested, as it
should have been before.
2025-08-27 09:14:33 +02:00
dependabot[bot]
2569ef0f40
CI: Bump actions/setup-java from 4 to 5
...
Bumps [actions/setup-java](https://github.com/actions/setup-java ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-java/releases )
- [Commits](https://github.com/actions/setup-java/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-java
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-27 08:48:21 +02:00
Viktor Szépe
1c01e183b7
Everywhere: Fix even more typos
2025-08-27 08:48:01 +02:00
Aliaksandr Kalenik
77f6edaf71
LibWeb: Support decoding SVG favicons
...
Adds a path that checks if blob contains SVG image before reaching for
image decoder.
Fixes logged image decoding errors on https://chatgpt.com/
2025-08-27 08:41:01 +02:00
Jelle Raaijmakers
f9888b0641
Tests: Report view's test path instead of URL in test-web
...
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
When a test is active in a test-web view, show the relative path to the
test instead of the view's URL. This gives a better starting point for
debugging than whatever the last loaded URL happened to be.
If no test is active, we still show the view's URL.
2025-08-26 19:37:16 -04:00
Ali Mohammad Pur
bf3fa13773
wasm: Don't use a new AbstractMachine to instantiate modules
...
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Bad rebase conflict resolution broke code, grug sad.
2025-08-26 19:06:59 +02:00
Jelle Raaijmakers
84c4eb7aa9
LibWeb: Always update computed properties for finished animations
...
If an animation got to its finished state before its target's computed
properties could be updated, we would end up with invalid styles. Do not
skip finished animations, but prevent effect invalidation on timeline
updates if the animation is already finished.
This fixes the CI flake on WPT test
`css/css-transitions/inherit-height-transition.html`.
2025-08-26 18:47:57 +02:00
Jelle Raaijmakers
13cba5ecb4
LibWeb: Make KeyframeEffect final
2025-08-26 18:47:57 +02:00
Jelle Raaijmakers
af552856c8
LibWeb: Remove unused TemporaryExecutionContext from Animation
...
We don't need a temporary execution context to create a promise.
2025-08-26 18:47:57 +02:00
Jelle Raaijmakers
55255586e8
LibWeb: Remove unused include from Animation.cpp
2025-08-26 18:47:57 +02:00
Luke Wilde
e2c935475f
LibWeb/Fetch: Enable callbacks in the abort signal algorithm callback
...
If the request has a body, the abort will interact with promises, which
requires callbacks to be enabled.
Fixes crashing on Atlassian products.
2025-08-26 16:29:35 +02:00
Tim Ledbetter
4acd517d8f
LibWeb: Propagate use element width and height to the referenced element
2025-08-26 16:02:57 +02:00
Luke Wilde
847589404b
LibWeb: Set filename of module scripts to full URL instead of basename
...
Atlassian login gets the base URL for its module scripts by throwing an
error and pulling out the current script's URL from error.stack with
regex.
Since we only returned a basename for module scripts, it would fail to
match and try and use `/` as a base URL (because it does
[matched_string] + "/"), which is not a valid base URL.
2025-08-26 15:46:45 +02:00
Ali Mohammad Pur
22448b0c35
LibWasm: Move the interpreter IP out of the configuration object
...
This, along with moving the sources and destination out of the config
object, makes it so we don't have to double-deref to get to them on each
instruction, leading to a ~15% perf improvement on dispatch.
2025-08-26 15:20:33 +02:00
Ali Mohammad Pur
3e62cae2ad
AK: Add Variant::unsafe_get()
...
This performs no validation and no verifications on release.
only useful when you've already verified the type by external means.
2025-08-26 15:20:33 +02:00
Ali Mohammad Pur
d8ea9e67f8
LibWasm: Access registers directly without bounds checks
...
The register array is guaranteed to be large enough for all registers
used in the program, so get rid of the bounds checks.
2025-08-26 15:20:33 +02:00
Ali Mohammad Pur
f7bdc596b4
LibWasm: Avoid allocations for the label stack as much as possible
...
Namely, find an upper bound at validation time so we can allocate the
space when entering the frame.
Also drop labels at once instead of popping them off one at a time now
that we're using a Vector.
2025-08-26 15:20:33 +02:00
Ali Mohammad Pur
191499696b
wasm: Make it possible to provide exported functions using js
...
This can be done by passing
`--export-js <module>.<fn>[(<arg>:type, ...)][:type]=<source>`,
which uses a js function `(arg...) => source` to resolve the requested
import `module::fn`.
All literal wasm value types (i<n> and v128) are supported as both
parameter and return types.
2025-08-26 15:20:33 +02:00
Ali Mohammad Pur
6732e1cdc3
LibWasm: Don't clobber registers on (most) calls
...
This still passes the values on the stack, but registers are now allowed
to cross a call boundary.
This is a very significant (>50%) improvement on the small call
microbenchmarks on my machine.
2025-08-26 15:20:33 +02:00
Kenneth Myhra
4963dea504
LibWeb/XHR: Remove outdated FIXME about Streams not integrated in XHR
...
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Streams were integrated into XHR::send() in: https://github.com/SerenityOS/serenity/pull/24132
2025-08-26 07:18:49 -04:00
Kenneth Myhra
5d94119f4c
LibWeb/XHR: Add missing spec comment for step 12 in XHR::send()
2025-08-26 07:18:49 -04:00
Kenneth Myhra
e6a3307955
LibWeb/XHR: Remove outdated FIXMEs about propagating errors
...
The methods these FIXMEs refer to is no longer fallible.
2025-08-26 07:18:49 -04:00
Kenneth Myhra
2b832fdc31
LibWeb/XHR: MUST handle_{errors,response_end_of_body} in async context
...
These cannot throw in an async context and we no longer care about minor
OOM errors so let's MUST these.
2025-08-26 07:18:49 -04:00
rmg-x
ac755d0916
Tests/LibWeb: Reset zoom on web view before running tests
...
This prevents test failures when running locally if the user set a
default zoom level other than 1.0
2025-08-26 06:31:22 -04:00
rmg-x
9b0157523d
Base+UI: Implement user interface for defaultZoomLevelFactor setting
2025-08-26 06:31:22 -04:00
rmg-x
333164ecf9
LibWebView: Add defaultZoomLevelFactor setting and necessary plumbing
2025-08-26 06:31:22 -04:00
Idan Horowitz
73266c8498
LibWeb: Add missing cookie-age-limit steps to CookieStore::set()
2025-08-26 06:28:10 -04:00
Idan Horowitz
e059c9d5a3
WebContent: Add missing step in WebDriver cookie serialization
2025-08-26 06:28:10 -04:00
Idan Horowitz
e3a5d117a6
LibWeb: Mark CookieChangeEvent's changed and deleted as CachedAttribute
...
This makes them actually conform to the [SameObject] extended attribute.
2025-08-26 06:28:10 -04:00
Idan Horowitz
4c49ce5fe5
LibWeb: Add support for caching IDL attribute values
...
This lets us properly implement for [SameObject] for generated
constructs like FrozenArray<T>.
2025-08-26 06:28:10 -04:00
Callum Law
912ffc3f84
LibWeb: Remove unnecessary ComputedProperties::maybe_null_property
...
We know that all (longhand) properties have a value so this is
unnecessary.
2025-08-26 12:17:55 +02:00
Callum Law
6bccc7c242
LibWeb: Don't allocate space for shorthands in ComputedProperties
...
Only longhands have computed values so allocating space for shorthands
is just wasted memory
2025-08-26 12:17:55 +02:00
Callum Law
9f5696e9c5
LibWeb: Avoid getting shorthand property from ComputedProperties
...
ComputedProperties only includes longhands so we shouldn't try to get
shorthands - this will be asserted in a later commit.
2025-08-26 12:17:55 +02:00
Callum Law
1ba64a1d7e
LibWeb: Remove StyleComputer as friend of ComputedProperties
...
Everything we need to do with ComputedProperties in StyleComputer can be
done via the public APIs
2025-08-26 12:17:55 +02:00
Callum Law
ed947940d7
LibWeb: Simplify conversion of percentage line-height to absolute length
...
We can take advantage of the fact that we already do this in
`compute_line_height`.
2025-08-26 12:17:55 +02:00
Callum Law
1a3da3d825
LibWeb: Don't store separate computed value for font_size
...
The StyleValue stored in m_property_values is already in it's computed
form and it's trivial to pull the underlying value out so there is no
need to store this separately.
Also removes unnecessary handling of percentage values in
`absolutize_values` - this is already handled within `compute_font`.
2025-08-26 12:17:55 +02:00
Callum Law
8682a97933
LibWeb: Only include longhands when dumping resolved style
...
Shorthands will always be null so are not useful
2025-08-26 12:17:55 +02:00
Callum Law
487d0abd7c
LibWeb: Only consider longhands when recomputing inherited style
...
Only longhands have computed values so checking shorthand values is
unnecessary
2025-08-26 12:17:55 +02:00
Callum Law
c635a43c18
LibWeb: Only consider longhand properties when computing invalidation
...
We only store computed values for longhand properties so checking
shorthand properties is unnecessary
2025-08-26 12:17:55 +02:00
Callum Law
fba4187c8f
LibWeb: Add a constant for the number of longhand properties
...
We use this in multiple places (and will in more places in the future)
so it's worth having as a constant from a clarity point of view
2025-08-26 12:17:55 +02:00
Callum Law
58431603ca
LibWeb: Remove unused Element::resolved_css_values
2025-08-26 12:17:55 +02:00
Callum Law
5431f1534a
LibWeb: Remove unnecessary check on ComputedProperties array size
...
This is a constant length array - this check will always be false
2025-08-26 12:17:55 +02:00