Skip to content

LibWeb: Merge pull requests from Ladybird - #27017

Open
jamierocks wants to merge 10 commits into
SerenityOS:masterfrom
jamierocks:wpt-tests
Open

LibWeb: Merge pull requests from Ladybird#27017
jamierocks wants to merge 10 commits into
SerenityOS:masterfrom
jamierocks:wpt-tests

Conversation

@jamierocks

@jamierocks jamierocks commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

This merges the following pull requests from Ladybird:

The main objective with this PR is to pull in the mechanisms required for importing WPT tests, and is an offspring of my original #26978 pull request - which I will need to return to.


* One downside of this commit is it changes many tests that have not been cherry-picked into Serenity (yet). So those tests will need to be amended when merging those commits. Not completely sure how I feel about that - so open to feedback.

awesomekling and others added 10 commits September 7, 2026 23:50
And here's the wild part: instead of cloning WPT tests, import the
relevant WPT tests that this fixes into our own test suite.

This works by adding a small Ladybird-specific callback in
resources/testharnessreport.js (which is what that file is meant for!)

Note that these run as text tests, and so they must signal the runner
when they are done. Tests using the "usual" WPT harness should just
work, but tests that do something more freestyle will need manual
signaling if they are to be imported.

I've also increased the test timeout here from 30 to 60 seconds,
to accommodate the larger WPT-style tests.

(cherry picked from commit ec0838b)
Also bump the test timeout when running ctest to 120 seconds,
to accommodate the slow GCC CI.

(cherry picked from commit be03002)
...when running in test mode. This cuts down on the time it takes to run
the imported WPT tests, and you can still get the full error by opening
tests in the browser.

(cherry picked from commit 0ebdac0)
The existing rebaseline script is a bit limiting in that it can only
rebaseline a single test at a time. When making sweeping changes, this
patch will let us rebaseline any number of tests at once.

(cherry picked from commit f56b33f)
This is superseded by the headless-browser --rebaseline flag.

(cherry picked from commit d33a87c)
This is a mixin in the IDL, so let's treat it as a mixin in our code and
let both SVGElement and MathMLElement reuse the implementations that we
wrote for HTMLElement.

(cherry picked from commit 5f84c2c)
There are two FIXMEs remaining that depend on a functional
PolicyContainer, which we ignore for now and always behave like a CSP is
set.

(cherry picked from commit 84fe8d6)
This closer matches the spec and is needed in the implementation of the
innerText setter.

(cherry picked from commit a1a740b)
@jamierocks
jamierocks marked this pull request as ready for review September 8, 2026 16:13
@github-actions github-actions Bot added the 馃憖 pr-needs-review PR needs review from a maintainer or community member label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

馃憖 pr-needs-review PR needs review from a maintainer or community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants