Skip to content

Cherry-pick 4 ladybird PRs#25384

Merged
nico merged 6 commits intoSerenityOS:masterfrom
nico:bulk_sync_1731532734
Nov 14, 2024
Merged

Cherry-pick 4 ladybird PRs#25384
nico merged 6 commits intoSerenityOS:masterfrom
nico:bulk_sync_1731532734

Conversation

@nico
Copy link
Contributor

@nico nico commented Nov 13, 2024

gmta and others added 6 commits November 13, 2024 16:18
Move the pending promises list from AudioContext to BaseAudioContext and
deal with all remaining FIXMEs.

(cherry picked from commit 2df3488)
Fixes a crash seen on twitter.com, namely from the 'resume' function.

(cherry picked from commit 5d7a7a4)
Previously, the inclusive descendant, which is the node that
for_each_shadow_including_inclusive_descendant was called on, would not
have it's shadow root traversed if it had one.

This is because the shadow root traversal was in the `for` loop, which
begins with the node's first child. The fix here is to move the shadow
root traversal outside of the loop, and check if the current node is an
element instead.

(cherry picked from commit 6df4e5f)
The insertion steps for iframes were following an old version of the
spec, where it was checking if the iframe was "in a document tree",
which doesn't cross shadow root boundaries. The spec has since been
updated to check the shadow including root instead.

This is now needed for Cloudflare Turnstile iframe widgets to appear,
as they are now inserted into a shadow root.

(cherry picked from commit 4dd14d8)
(cherry picked from commit 213155a)
A recently imported WPT test has a subtest that effectively does the
following:

    const mql = window.matchMedia("");
    mql.removeListener(null);

(cherry picked from commit 3e5476c)
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Nov 13, 2024
@nico nico merged commit ba539d6 into SerenityOS:master Nov 14, 2024
@nico nico deleted the bulk_sync_1731532734 branch November 14, 2024 00:32
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants