Closed Bug 2092812 Opened 16 days ago Closed 12 days ago

[wpt-sync] Sync PR 64626 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=309917

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64626 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64626
Details from upstream follow.

Diego De La Toba <d_delatoba@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=309917

WebKit export from bug: [<!---->macOS iOS]<!----> imported/<!---->w3c/<!---->web-<!---->platform-<!---->tests/<!---->css/<!---->css-<!---->viewport/<!---->zoom/<!---->iframe-<!---->zoom-<!---->nested.<!---->html is a flaky image diff

<pre>
[MacOS IOS] css/css-viewport/zoom/iframe-zoom-nested.html is a flaky image diff

This test is failing due to two timing issues:

  1. The test file registers its message listener inside the load handler. Each nested leaf.html calls top.postMessage("leaf_loaded") on its own
    load event, and these messages can arrive before the main window's load fires. When that happens, they're silently dropped and
    takeScreenshot() is never called, causing a timeout.
  2. The reference files have no waiting mechanism, so the test harness can capture the screenshot before the nested iframes have finished
    loading, causing flaky image failures.

Modified iframe-zoom-nested.html:
Moved the message listener registration to the top level so it's ready immediately.

Modified iframe-zoom-nested-expected.html and iframe-zoom-nested-ref.html:
Added reftest-wait and the same message-based waiting mechanism used by the test file.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=309917">https://bugs.webkit.org/show_bug.cgi?id=309917</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/312232@main">https://commits.webkit.org/312232@main</a>
</pre>

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

TIMEOUT: 1

Chrome

TIMEOUT: 1

Safari

TIMEOUT: 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.