Bug 295810

Summary: [ macOS Debug ] fast/dynamic/disappearing-content-on-size-change-crash.html is a constant timeout, extend() requires a Range to be added to the Selection
Product: WebKit Reporter: Bryan Medina <bmedina2>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bfulgham, csaavedra, simon.fraser, webkit-bot-watchers-bugzilla, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Bryan Medina
Reported 2025-07-11 14:35:00 PDT
fast/dynamic/disappearing-content-on-size-change-crash.html is a constant timeout on all of macOS Debug HISTORY: https://results.webkit.org/?suite=layout-tests&test=fast%2Fdynamic%2Fdisappearing-content-on-size-change-crash.html TEXT DIFF: --- /Volumes/Data/worker/Apple-Sequoia-Debug-AppleSilicon-WK1-Tests/build/layout-test-results/fast/dynamic/disappearing-content-on-size-change-crash-expected.txt +++ /Volumes/Data/worker/Apple-Sequoia-Debug-AppleSilicon-WK1-Tests/build/layout-test-results/fast/dynamic/disappearing-content-on-size-change-crash-actual.txt @@ -1,2 +1,3 @@ - -This test passes if it doesn't crash. +CONSOLE MESSAGE: Unhandled Promise Rejection: InvalidStateError: extend() requires a Range to be added to the Selection +FAIL: Timed out waiting for notifyDone to be called +testRunner?.dumpAsText(); testRunner?.waitUntilDone(); (async () => { const styleSheet = document.styleSheets[0]; styleSheet.disabled = true; styleSheet.insertRule(`:where(*) { display: table-cell; }`); const audio = document.createElement('audio'); document.documentElement.append(audio); audio.controls = true; audio.focus({ preventScroll: true }); await new Promise((resolve) => setTimeout(resolve)); styleSheet.insertRule(`audio { content: linear-gradient(red, blue rem(562pt, 7.86dvmin)) }`, styleSheet.length); document.execCommand('SelectAll'); styleSheet.disabled = false; getSelection().extend(document.documentElement); document.designMode = 'on'; document.execCommand('FontSize', false, '6'); // The following is just to reduce noise in the output. await new Promise(resolve => requestAnimationFrame(resolve)); styleSheet.disabled = true; testRunner?.notifyDone(); })(); This test passes if it doesn't crash. TEXT DIFF URL: https://build.webkit.org/results/Apple-Sequoia-Debug-AppleSilicon-WK1-Tests/297277@main%20(2633)/fast/dynamic/disappearing-content-on-size-change-crash-diff.txt
Attachments
Radar WebKit Bug Importer
Comment 1 2025-07-11 14:35:25 PDT
Bryan Medina
Comment 2 2025-07-11 14:43:08 PDT
I was able to reproduce the timeout at macOS Sequoia on apple silicon Debug ToT running as follows: run-webkit-tests fast/dynamic/disappearing-content-on-size-change-crash.html --iterations=10 -f -1
Bryan Medina
Comment 3 2025-07-11 14:49:04 PDT
It looks like this test has been constantly timing out since it has been introduced.
EWS
Comment 4 2025-07-11 14:52:18 PDT
Test gardening commit 297284@main (6506544ee403): <https://commits.webkit.org/297284@main> Reviewed commits have been landed. Closing PR #47915 and removing active labels.
Claudio Saavedra
Comment 5 2025-12-13 00:42:21 PST
This is also timing out on Debug glib platforms so I am moving the expectation to the main TestExpectation file.
Note You need to log in before you can comment on or make changes to this bug.