Bug 309917

Summary: [macOS iOS] imported/w3c/web-platform-tests/css/css-viewport/zoom/iframe-zoom-nested.html is a flaky image diff
Product: WebKit Reporter: Diego De La Toba <d_delatoba>
Component: New BugsAssignee: Diego De La Toba <d_delatoba>
Status: NEW    
Severity: Normal CC: webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
images none

Diego De La Toba
Reported 2026-03-13 14:39:48 PDT
imported/w3c/web-platform-tests/css/css-viewport/zoom/iframe-zoom-nested.html is a flaky image diff. HISTORY: https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fcss%2Fcss-viewport%2Fzoom%2Fiframe-zoom-nested.html IMAGE DIFF: https://build.webkit.org/results/Apple-Tahoe-Release-AppleSilicon-WK2-Tests/309223%40main%20(2400)/imported/w3c/web-platform-tests/css/css-viewport/zoom/iframe-zoom-nested-diffs.html IMAGES: See attached. REPRODUCTION: Reproduced on macOS 26.2 Release ToT with the following: run-webkit-tests --no-build --no-retry --no-show-results --exit-after-n-failures=1 --expect-pass --iterations=299 --force -f --release imported/w3c/web-platform-tests/css/css-viewport/zoom/iframe-zoom-nested.html I am going to mark expectations as pass fail while this pends investigation.
Attachments
images (9.00 KB, application/zip)
2026-03-13 14:40 PDT, Diego De La Toba
no flags
Radar WebKit Bug Importer
Comment 1 2026-03-13 14:39:53 PDT
Diego De La Toba
Comment 2 2026-03-13 14:40:45 PDT
Diego De La Toba
Comment 3 2026-03-13 15:27:22 PDT
Test gardening pull request: https://github.com/WebKit/WebKit/pull/60591
EWS
Comment 4 2026-03-13 15:33:58 PDT
Test gardening commit 309238@main (3bbb3a4f3657): <https://commits.webkit.org/309238@main> Reviewed commits have been landed. Closing PR #60591 and removing active labels.
Diego De La Toba
Comment 5 2026-03-13 16:10:49 PDT
Looks like listener registration should be moved to the top level so it's ready immediately. Each nested leaf.html calls top.postMessage("leaf_loaded") on its own load event. These messages can arrive before the main window's load fires. If messages arrive before the listener exists, they're silently dropped and takeScreenshot() is never called, causing a timeout. The reference files also have no waiting mechanism at all so subsequently the test harness periodically captures the screenshot before the nested iframes have finished loading. This causes the flaky image failures.
Diego De La Toba
Comment 6 2026-03-13 16:17:39 PDT
Note You need to log in before you can comment on or make changes to this bug.