Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9c753399ec16f9e4f071ed93d75f3c5bcd7d69b7
      
https://github.com/WebKit/WebKit/commit/9c753399ec16f9e4f071ed93d75f3c5bcd7d69b7
  Author: Kiet Ho <[email protected]>
  Date:   2026-05-25 (Mon, 25 May 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M 
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-tall-iframe-rendering.sub.html
    M 
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-tall-iframe.sub-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-tall-iframe.sub.html
    M 
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/cross-origin-tall-subframe.sub.html
    M LayoutTests/platform/glib/TestExpectations
    M LayoutTests/platform/ios-site-isolation/TestExpectations
    M LayoutTests/platform/mac-site-isolation/TestExpectations

  Log Message:
  -----------
  [intersection-observer] 
imported/w3c/web-platform-tests/intersection-observer/cross-origin-tall-iframe-{,rendering}.sub.html
 are flaky
rdar://177595782
https://bugs.webkit.org/show_bug.cgi?id=315262

Reviewed by Simon Fraser.

These tests load 4 nested iframes but didn't wait for them to fully load before 
testing:

1) 
imported/w3c/web-platform-tests/intersection-observer/cross-origin-tall-iframe.sub.html:
It sends a message to the leaf iframe, then waits for a reply. If the message is
sent before the iframe is loaded, the message never gets delivered, and the test
keeps waiting until it times out.

2) 
imported/w3c/web-platform-tests/intersection-observer/cross-origin-tall-iframe-rendering.sub.html
This reftest doesn't wait until all iframes are loaded before taking a 
screenshot.

Fix this by making the leaf iframe emit a message to the top frame (the test 
page)
when it's loaded, and making the tests wait for this message before doing 
anything.
Additionally, install the message listener BEFORE setting the iframe src, to 
ensure
the iframe doesn't finish loading before the listener is installed.

* LayoutTests/TestExpectations:
* 
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-tall-iframe-rendering.sub.html:
* 
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-tall-iframe.sub-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/cross-origin-tall-iframe.sub.html:
* 
LayoutTests/imported/w3c/web-platform-tests/intersection-observer/resources/cross-origin-tall-subframe.sub.html:
* LayoutTests/platform/glib/TestExpectations:

* LayoutTests/platform/ios-site-isolation/TestExpectations:
* LayoutTests/platform/mac-site-isolation/TestExpectations:
    * Mark 
imported/w3c/web-platform-tests/intersection-observer/cross-origin-tall-iframe.sub.html
      as failed in Site Isolation mode - Intersection Observer x Site Isolation 
isn't working yet.

Canonical link: https://commits.webkit.org/313852@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to