Skip to content

Tests/LibWeb: Improve flaky iframe srcdoc crash test#8932

Closed
gmta wants to merge 1 commit intoLadybirdBrowser:masterfrom
gmta:tests-libweb-set-innerhtml-flake
Closed

Tests/LibWeb: Improve flaky iframe srcdoc crash test#8932
gmta wants to merge 1 commit intoLadybirdBrowser:masterfrom
gmta:tests-libweb-set-innerhtml-flake

Conversation

@gmta
Copy link
Copy Markdown
Collaborator

@gmta gmta commented Apr 15, 2026

This test was introduced in b64df59 but had a race condition where contentDocument.body would not yet be available. Switch to an async test that listens to the iframe's load event before continuing. Confirmed that this still crashes without the original fix.

Flakes on master seen here:

@gmta
Copy link
Copy Markdown
Collaborator Author

gmta commented Apr 16, 2026

Relevant comment by @kalenikaliaksandr :

#8852 (review)

we should figure out why contentDocument.body isn't available by the time the document becomes observable to the parent.

This test was introduced in b64df59 but
had a race condition where `contentDocument.body` would not yet be
available. Switch to an async test that listens to the iframe's `load`
event before continuing. Confirmed that this still crashes without the
original fix.
@gmta gmta force-pushed the tests-libweb-set-innerhtml-flake branch from 763fd42 to 1f3ae83 Compare April 16, 2026 15:43
@gmta
Copy link
Copy Markdown
Collaborator Author

gmta commented Apr 16, 2026

Closing this; I believe something closer to #8852 is going to be a better approach.

@gmta gmta closed this Apr 16, 2026
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.

2 participants