[wpt-sync] Sync PR 63749 - [iframe] Fix flakiness in navigation test
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox162 fixed)
| 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.htmlwas flaky for two reasons:
- When the initial
200pxiframe content finished layout before the
first rendering frame,ResizeObserverdid not observe the initial
150pxdefault height. Previously, this was only handled at the end
of the test fororigin=cross, causing failures inorigin=sameand
intermediate checks inorigin=cross.- In the first
loadevent, navigating immediately viapostMessage
without waiting for a rendering frame could commit the cross-origin
navigation and reset the height to150pxbeforeResizeObserver
captured the200pxheight.This patch waits for a rendering frame via
waitForAtLeastOneFrame()
before navigating and before finishing the test, and checks the
collectedResizeObserverheights at the end while allowing the leading
150pxheight to be omitted for bothsameandcrossorigins.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}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=109476
| Assignee | ||
Comment 2•1 month ago
|
||
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
- /css/css-sizing/responsive-iframe/responsive-iframe-cross-origin.sub.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-after-head.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-dynamic-append-to-doc.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-dynamic-append.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-dynamic-name-change.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-dynamic-remove.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-dynamic-write.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-request-resize.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/parsing/frame-sizing-computed.html [wpt.fyi]
- Property frame-sizing value 'auto':
FAIL - Property frame-sizing value 'content-width':
FAIL - Property frame-sizing value 'content-height':
FAIL - Property frame-sizing value 'content-inline-size':
FAIL - Property frame-sizing value 'content-block-size':
FAIL
- Property frame-sizing value 'auto':
- /css/css-sizing/responsive-iframe/parsing/frame-sizing-valid.html [wpt.fyi]
- e.style['frame-sizing'] = "auto" should set the property value:
FAIL - e.style['frame-sizing'] = "content-width" should set the property value:
FAIL - e.style['frame-sizing'] = "content-height" should set the property value:
FAIL - e.style['frame-sizing'] = "content-inline-size" should set the property value:
FAIL - e.style['frame-sizing'] = "content-block-size" should set the property value:
FAIL
- e.style['frame-sizing'] = "auto" should set the property value:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=same,allow=http,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=same, allow=http:
FAIL
- Allow origins check: container=parent, origin=same, allow=http:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=subdomain,allow=star,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=subdomain, allow=star:
FAIL
- Allow origins check: container=parent, origin=subdomain, allow=star:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=subdomain,allow=parent,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=subdomain, allow=parent:
FAIL
- Allow origins check: container=parent, origin=subdomain, allow=parent:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=same,allow=multiple,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=same, allow=multiple:
FAIL
- Allow origins check: container=parent, origin=same, allow=multiple:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=cross,allow=parent,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=cross, allow=parent:
FAIL
- Allow origins check: container=parent, origin=cross, allow=parent:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=cross,allow=star,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=cross, allow=star:
FAIL
- Allow origins check: container=parent, origin=cross, allow=star:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=same,allow=parent,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=same, allow=parent:
FAIL
- Allow origins check: container=parent, origin=same, allow=parent:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=same,allow=self,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=same, allow=self:
FAIL
- Allow origins check: container=parent, origin=same, allow=self:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=cross,allow=wildcard,expect=400 [wpt.fyi]
- Allow origins check: container=subdomain, origin=cross, allow=wildcard:
FAIL
- Allow origins check: container=subdomain, origin=cross, allow=wildcard:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=same,allow=wildcard,expect=400 [wpt.fyi]
- Allow origins check: container=subdomain, origin=same, allow=wildcard:
FAIL
- Allow origins check: container=subdomain, origin=same, allow=wildcard:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=same,allow=star,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=same, allow=star:
FAIL
- Allow origins check: container=parent, origin=same, allow=star:
- /css/css-sizing/responsive-iframe/responsive-iframe-dom-content-loaded.html [wpt.fyi]:
ERRORDOMContentLoadedtriggers resizing:TIMEOUT
- /css/css-sizing/responsive-iframe/responsive-iframe-icb.html [wpt.fyi]
- IFRAME content should use the initial ICB to measure the natural size:
FAIL
- IFRAME content should use the initial ICB to measure the natural size:
- /css/css-sizing/responsive-iframe/responsive-iframe-navigation-unsized.html?origin=cross [wpt.fyi]
- Responsive iframe clears size during navigation to non-responsive page:
FAIL
- Responsive iframe clears size during navigation to non-responsive page:
- /css/css-sizing/responsive-iframe/responsive-iframe-navigation-unsized.html?origin=same [wpt.fyi]
- Responsive iframe clears size during navigation to non-responsive page:
FAIL
- Responsive iframe clears size during navigation to non-responsive page:
- /css/css-sizing/responsive-iframe/responsive-iframe-navigation.html?origin=same [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)- Responsive iframe preserves size during navigation:
TIMEOUT(Chrome:PASS, Safari:TIMEOUT)
- Responsive iframe preserves size during navigation:
- /css/css-sizing/responsive-iframe/responsive-iframe-navigation.html?origin=cross [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)- Responsive iframe preserves size during navigation:
TIMEOUT(Chrome:PASS, Safari:TIMEOUT)
- Responsive iframe preserves size during navigation:
- /css/css-sizing/responsive-iframe/responsive-iframe-request-resize-error.html [wpt.fyi]
window.requestResize()from the parent frame throws DOM NotAllowedError:FAILwindow.requestResize()from iframe withoutresponsive-embedded-sizingmeta tag throws DOM NotAllowedError:FAIL
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-inline-size,300,200,vertical-rl [wpt.fyi]
- Measure target with value=content-inline-size and wm=vertical-rl:
FAIL
- Measure target with value=content-inline-size and wm=vertical-rl:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-block-size,400,150,vertical-rl [wpt.fyi]
- Measure target with value=content-block-size and wm=vertical-rl:
FAIL
- Measure target with value=content-block-size and wm=vertical-rl:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-block-size,300,200 [wpt.fyi]
- Measure target with value=content-block-size and wm=undefined:
FAIL
- Measure target with value=content-block-size and wm=undefined:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-height,300,200 [wpt.fyi]
- Measure target with value=content-height and wm=undefined:
FAIL
- Measure target with value=content-height and wm=undefined:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-inline-size,400,150 [wpt.fyi]
- Measure target with value=content-inline-size and wm=undefined:
FAIL
- Measure target with value=content-inline-size and wm=undefined:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-width,400,150 [wpt.fyi]
- Measure target with value=content-width and wm=undefined:
FAIL
- Measure target with value=content-width and wm=undefined:
Comment 4•25 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5b839620830a
https://hg.mozilla.org/mozilla-central/rev/228be801917a
Description
•