Bug 296199

Summary: fast/events/onunload-not-on-body.html is a flakey text failure
Product: WebKit Reporter: Bryan Medina <bmedina2>
Component: Page LoadingAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, d_delatoba, rniwa, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Bryan Medina
Reported 2025-07-18 11:39:34 PDT
fast/events/onunload-not-on-body.html is a flakey text failure observed on iOS. HISTORY: https://results.webkit.org/?suite=layout-tests&test=fast%2Fevents%2Fonunload-not-on-body.html TEXT DIFF: --- /Volumes/Data/worker/Apple-iPadOS-18-Simulator-Debug-WK2-Tests/build/layout-test-results/fast/events/onunload-not-on-body-expected.txt +++ /Volumes/Data/worker/Apple-iPadOS-18-Simulator-Debug-WK2-Tests/build/layout-test-results/fast/events/onunload-not-on-body-actual.txt @@ -1,3 +1,3 @@ -frame "<!--frame3-->" - has 1 onunload handler(s) +frame "<!--frame4-->" - has 1 onunload handler(s) CONSOLE MESSAGE: Use of window.alert is not allowed while unloading a page. you should only see one unload alert appear. TEXT DIFF URL: https://build.webkit.org/results/Apple-iPadOS-18-Simulator-Debug-WK2-Tests/297545@main%20(1345)/fast/events/onunload-not-on-body-diff.txt
Attachments
Radar WebKit Bug Importer
Comment 1 2025-07-18 11:39:50 PDT
Bryan Medina
Comment 2 2025-07-18 11:54:30 PDT
I was able to reproduce this text failure locally on my device using macOS Sequoia Release ToT with the following command: run-webkit-tests fast/events/onunload-not-on-body.html --ios-simulator --iterations=50
EWS
Comment 3 2025-07-18 12:00:50 PDT
Test gardening commit 297609@main (4159c17922f9): <https://commits.webkit.org/297609@main> Reviewed commits have been landed. Closing PR #48258 and removing active labels.
Ryosuke Niwa
Comment 4 2026-03-09 16:17:54 PDT
*** Bug 307385 has been marked as a duplicate of this bug. ***
Ryosuke Niwa
Comment 5 2026-03-09 19:27:40 PDT
This is a race between <object> in the 2nd frame loading vs. 3rd outer iframe loading.
Ryosuke Niwa
Comment 6 2026-03-09 19:35:15 PDT
EWS
Comment 7 2026-03-09 23:11:59 PDT
Committed 308959@main (a0a371a941a6): <https://commits.webkit.org/308959@main> Reviewed commits have been landed. Closing PR #60241 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.