Closed Bug 2082869 Opened 1 month ago Closed 25 days ago

[wpt-sync] Sync PR 63749 - [iframe] Fix flakiness in navigation test

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Koji Ishii <kojii@chromium.org> wrote:

[iframe] Fix flakiness in navigation test

responsive-iframe-navigation.html was flaky for two reasons:

  1. When the initial 200px iframe content finished layout before the
    first rendering frame, ResizeObserver did not observe the initial
    150px default height. Previously, this was only handled at the end
    of the test for origin=cross, causing failures in origin=same and
    intermediate checks in origin=cross.
  2. In the first load event, navigating immediately via postMessage
    without waiting for a rendering frame could commit the cross-origin
    navigation and reset the height to 150px before ResizeObserver
    captured the 200px height.

This patch waits for a rendering frame via waitForAtLeastOneFrame()
before navigating and before finishing the test, and checks the
collected ResizeObserver heights at the end while allowing the leading
150px height to be omitted for both same and cross origins.

Fixed: 572584968
Change-Id: I8b81e117d66e63ffde8caeb18ee37356720d50ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8587115
Commit-Queue: Kent Tamura \<tkent@chromium.org>
Auto-Submit: Koji Ishii \<kojii@chromium.org>
Reviewed-by: Kent Tamura \<tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1720139}

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 57 tests and 1 subtests

Status Summary

Firefox

OK : 38
PASS : 15[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 22[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 32[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 41[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 2[GitHub] 3[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR : 2[GitHub] 3[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 2
PASS : 2

Safari

TIMEOUT: 2
ERROR : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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