Timothy Flynn
213683956c
LibCrypto: Return StringView from ASN1 enum-to-string factories
...
We were implicitly including ByteString.h here, which will become a
compile error in an upcoming commit. Let's just return StringView.
2025-08-13 09:56:13 -04:00
Jelle Raaijmakers
7078769ba3
LibWeb: Don't indicate focus for all form associated elements
...
This was a misinterpretation of the spec; we should only indicate focus
if the form associated element supports keyboard input, for which
FormAssociatedTextControlElement is a much better match.
2025-08-13 09:44:38 -04:00
Nico Weber
7a01912af3
LibWeb/IDB: Fix typo in diagnostic
2025-08-13 14:21:56 +01:00
rmg-x
d489e46448
RequestServer: Clarify comment for removing Content-Type header
...
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
This comment assumed that the reader knew how curl behaved with empty
header values.
2025-08-13 06:30:56 -04:00
rmg-x
d1db27dc42
RequestServer: Remove unused include of AK/Badge.h
2025-08-13 06:30:56 -04:00
Aliaksandr Kalenik
4d223462a5
LibWeb: Fix cyclic percentage resolution in calculate_min_content_width
...
Brings back some code removed in 652a457
, but this time with explanation
from https://www.w3.org/TR/css-sizing-3 spec.
2025-08-13 10:14:37 +01:00
Sam Atkins
911274a84d
LibWeb/CSS: Implement ElementCSSInlineStyle.attributeStyleMap
...
Again, this isn't yet very usable, but it does appease some tests.
2025-08-13 09:47:50 +01:00
Sam Atkins
215d8b8076
LibWeb/CSS: Implement CSSStyleRule.styleMap
...
StylePropertyMap is just a stub, so this doesn't yet accomplish much.
2025-08-13 09:47:50 +01:00
Sam Atkins
3bb54ffd59
LibWeb/CSS: Stub out StylePropertyMap
2025-08-13 09:47:50 +01:00
Sam Atkins
c768cc7208
LibWeb/CSS: Implement Element.computedStyleMap()
...
Currently the map doesn't return any values, so it's not very useful,
but this does make a few tests pass just by existing. :^)
2025-08-13 09:47:50 +01:00
Sam Atkins
1620fc5bf6
LibWeb/CSS: Stub out StylePropertyMapReadOnly
...
Nothing yet produces this, and the useful parts of get() and get_all()
will have to wait until type reification is implemented.
2025-08-13 09:47:50 +01:00
Sam Atkins
05884f1d91
LibWeb/CSS: Implement is_a_valid_css_property()
...
Also mark these functions as inline instead of static, to fix a compiler
error about them being unused.
2025-08-13 09:47:50 +01:00
Sam Atkins
882288bf86
LibWeb/CSS: Stub out CSSStyleValue
2025-08-13 09:47:50 +01:00
Sam Atkins
b447dc63c4
IDLGenerators: Include JS::Array in constructor implementations
...
Will be required by CSSStyleValue.
2025-08-13 09:47:50 +01:00
Sam Atkins
7ec374c74c
Tests: Import tests for CSS typed OM
...
This is everything except some failing ref-tests, and
`css/css-typed-om/the-stylepropertymap/properties/*` because importing
a test for every property feels excessive.
2025-08-13 09:47:50 +01:00
Sam Atkins
00cadf41d8
LibWeb/CSS: Update UA stylesheet to use :heading
...
Corresponds to part of
65dc095e44
2025-08-13 09:47:28 +01:00
Sam Atkins
503d41d02d
LibWeb/CSS: Implement the :heading
/:heading()
pseudo-class
...
Corresponds to part of
65dc095e44
2025-08-13 09:47:28 +01:00
Sam Atkins
e7890429aa
LibWeb/CSS: Add support for pseudo-classes taking <an+b>#
2025-08-13 09:47:28 +01:00
Sam Atkins
fbae3b824a
LibWeb/CSS: Move An+B matching code into ANPlusBPattern::matches()
...
Not everything we want to match is an "nth element".
Also moved its serialization function's implementation out of the header
while I was at it.
2025-08-13 09:47:28 +01:00
Sam Atkins
a59c15481f
LibWeb/CSS: Prepare pseudo-classes for multiple An+B patterns
...
The upcoming `:heading()` pseudo-class takes multiple comma-separated
An+Bs. Also rename this field as the `:nth-[last-]child()`
pseudo-classes are only a subset of the users.
2025-08-13 09:47:28 +01:00
Lukas Schmidt
c2fc4b25cd
LibWeb: Implement HTMLElement.draggable()
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
2025-08-12 17:15:06 +01:00
Sam Atkins
615034433b
LibWeb/HTML: Add missing if to <details>
attribute_changed() logic
2025-08-12 15:53:51 +02:00
Sam Atkins
a28b2b4ca1
WebContent: Correct StyleValue.h include
...
Regressed in c57975c9fd
, oops!
2025-08-12 09:41:47 -04:00
Callum Law
ed6cac89b9
LibWeb: Discard inaccuracies when interpolating rotate
2025-08-12 14:35:02 +01:00
Jelle Raaijmakers
d6761ab251
CI: Remove Microphone access step for macOS
...
This no longer seems to be necessary.
2025-08-12 14:31:41 +02:00
Kenneth Myhra
0dc2fb3781
LibWeb: Update Fetch's compute the redirect-taint concept
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
2025-08-12 07:08:33 -04:00
Kenneth Myhra
e9246c15d9
LibWeb: Pass top-level navigation initiator origin to Fetch's Request
2025-08-12 07:08:33 -04:00
dependabot[bot]
60ca15c0de
CI: Bump actions/checkout from 4 to 5
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 07:05:19 -04:00
Jelle Raaijmakers
a64cee528c
CI: Update to Xcode 16.4
...
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
Our current macOS runners have Xcode 16.4 installed.
2025-08-11 18:25:34 +02:00
Callum Law
778da0175e
LibWeb: Clamp and censor top-level calc results
...
We now clamp the values returned from calc into the allowed range (where
we know it) and censor any `NaN`s to `0` both when we resolve and when
we serialize.
Gains us 76 WPT passes.
2025-08-11 17:10:04 +01:00
Callum Law
bc2ca96f50
LibWeb: Make signature of CSS::{Percentage,Number}::to_string consistent
...
By making this consistent with the other numeric data type classes we
can simplify cases where we are dealing with variants containing these
types.
2025-08-11 17:10:04 +01:00
Callum Law
3fe3adadc4
LibWeb: Remove unnecessary includes in Percentage.h
2025-08-11 17:10:04 +01:00
Callum Law
f15153ea86
LibWeb: Move formatter for Percentage
into Percentage.h
2025-08-11 17:10:04 +01:00
Callum Law
90948405fc
LibWeb: Return an intermediate struct from CSV::resolve_value
...
Returning this struct will allow us to modify the underlying value of
the `CalculationResult` without requiring us to go through the process
of constructing a whole new `CalculationResult` to return.
2025-08-11 17:10:04 +01:00
Callum Law
6025805f19
LibWeb/Meta: Compute the accepted value range for CalculationContexts
...
This currently only applies to property-level calculation contexts, more
work to be done to generate accepted ranges for other calculation
contexts (e.g. within transformation functions, color functions, etc)
2025-08-11 17:10:04 +01:00
Callum Law
2af7016a77
LibWeb: Rename ValueType::OpenTypeTag to ValueType::OpentypeTag
...
This is the correct capitalization in line with what it is called in the
spec "opentype-tag".
2025-08-11 17:10:04 +01:00
Callum Law
861bcbd9ad
AK: Format floats with precision in scientific notation where applicable
2025-08-11 17:10:04 +01:00
Callum Law
1474da31c7
AK: Reduce duplication between put_f32_or_f64 and put_f64_with_precision
...
We were handling the special cases of NaN and Infinity in basically the
same way across both functions - we can reduce code duplication by
moving this to before we branch.
This is also required as we will be moving the logic to encode in
scientific notation above the branch in a later commit and the
`convert_floating_point_to_decimal_exponential_form` method doesn't work
with non-finite values.
2025-08-11 17:10:04 +01:00
Callum Law
1a9dd70792
LibWeb: Serialize NumberStyleValue with 6 decimal places of precision
2025-08-11 17:10:04 +01:00
Callum Law
7182a537f3
LibWeb: Reduce inaccuracies when creating rotation matrices
...
When converting rotate transform functions `sin` and `cos` can sometimes
be inaccurate. To avoid these inaccuracies we:
- Mod the angle to minimise inaccuracies in the first place.
- Discard tiny (smaller than epsilon) values returned by `sin` and
`cos` as inaccuracies.
This is in line with other browsers (e.g. Gecko and WebKit).
2025-08-11 17:10:04 +01:00
Callum Law
719ab5735e
LibWeb: Avoid addition to infinity when rounding calc'd z-index
2025-08-11 17:10:04 +01:00
Timothy Flynn
f03c432b52
AK: Use simdutf for searching strings for a single code unit
...
In the following synthetic benchmark, the simdutf version is 4x faster:
BENCHMARK_CASE(find)
{
auto string = u"😀 Foo😀 Bar"sv;
for (size_t i = 0; i < 100'000'000; ++i)
(void)string.find_code_unit_offset('a');
}
2025-08-11 16:55:37 +02:00
Andreas Kling
bd7599ccfc
LibCore: Remove macro-generated EventReceiver::try_create(...) factories
...
We can just use the infallible factory everywhere instead.
2025-08-11 16:55:25 +02:00
Andreas Kling
aec1f6aa7e
LibCore: Remove unused CustomEvent
2025-08-11 16:55:25 +02:00
Andreas Kling
c47e253c60
LibCore: Remove unused "visible for timer purposes" concept
...
This was a long-unused leftover from SerenityOS.
2025-08-11 16:55:25 +02:00
Andreas Kling
0037df88d5
LibCore: Remove unused ChildEvent
2025-08-11 16:55:25 +02:00
Andreas Kling
75091016d7
LibCore: Remove parent/child concept from EventReceiver
...
This ownership model is no longer used.
2025-08-11 16:55:25 +02:00
Andreas Kling
134fd8e413
LibCore: Don't have Promise inherit from EventReceiver
...
This was only used for parenting promises to each other, but we can do
that with a simple vector of children.
2025-08-11 16:55:25 +02:00
Andreas Kling
dfe776b722
WebDriver: Stop using the ancient Core::EventReceiver parent/child API
...
Before this change, clients were kept alive by making them children of
the TCPServer object. This ownership model is going away (and this was
the only remaining use of it!) so let's just put the clients in a hash
table instead.
2025-08-11 16:55:25 +02:00
Andreas Kling
045eaa1576
LibLine: Remove unnecessary use of EventReceiver parent/child API
2025-08-11 16:55:25 +02:00