Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 37f93a1e7c8fe6d8eda41ca7542e34e0bb3645ec
      
https://github.com/WebKit/WebKit/commit/37f93a1e7c8fe6d8eda41ca7542e34e0bb3645ec
  Author: Zak Ridouh <[email protected]>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M Source/WebCore/dom/Document.h
    M Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation-1.mm

  Log Message:
  -----------
  [Site Isolation][iOS] The orientationchange event does not fire in cross-site 
iframes
<https://bugs.webkit.org/show_bug.cgi?id=325619>
<rdar://problem/188676383>

Reviewed by Charlie Wolfe and Ryosuke Niwa.

Device orientation changes reach every process, but the handler only notified 
the main frame, which isn't in a
cross-site iframe's process, so orientationchange never fired there. Notify 
every document in the page instead.

Test:
Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation-1.mm

* Source/WebCore/dom/Document.h:
* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::setDeviceOrientation):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation-1.mm:
(TestWebKitAPI::TEST(SiteIsolation, 
CrossSiteIFrameReceivesOrientationChangeEvent)):

Canonical link: 
https://flagged.apple.com:443/proxy?t2=DO6W3E0gy8&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzIyNDgxQG1haW4=&emid=da62ae19-48c9-4b43-a1d8-4e9b7e3b3312&c=11



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

Reply via email to