Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: de041ea9a3c3d4078c606f83b0f52dae426e5e4e
      
https://github.com/WebKit/WebKit/commit/de041ea9a3c3d4078c606f83b0f52dae426e5e4e
  Author: Brandon Stewart <[email protected]>
  Date:   2025-10-29 (Wed, 29 Oct 2025)

  Changed paths:
    A 
LayoutTests/http/tests/site-isolation/resources/screen-orientation-rotate-device.html
    A LayoutTests/http/tests/site-isolation/screen-orientation-api-expected.txt
    A LayoutTests/http/tests/site-isolation/screen-orientation-api.html
    A 
LayoutTests/platform/mac/http/tests/site-isolation/screen-orientation-api-expected.txt
    M Source/WebKit/Sources.txt
    M Source/WebKit/UIProcess/RemoteLayerTree/RemoteMonotonicTimeline.cpp
    M Source/WebKit/UIProcess/RemotePageProxy.cpp
    M Source/WebKit/UIProcess/RemotePageProxy.h
    A Source/WebKit/UIProcess/RemotePageScreenOrientationManagerProxy.cpp
    A Source/WebKit/UIProcess/RemotePageScreenOrientationManagerProxy.h
    M Source/WebKit/UIProcess/WebPageProxy.h
    M Source/WebKit/UIProcess/WebScreenOrientationManagerProxy.cpp
    M Source/WebKit/UIProcess/WebScreenOrientationManagerProxy.h
    M Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  [Site Isolation] Screen Orientation API
https://bugs.webkit.org/show_bug.cgi?id=300948
rdar://156027815

Reviewed by Sihui Liu.

Create test to verify screen orientation API in site isolation mode.

On iOS platform we test the readonly attributes along with on change events.

The on change event does not fire on the Mac as we seem to be always in 
landscape-primary mode.

The lock() and unlock() methods cannot be tested at this time due to underlying 
issues outside of site isolation.

* 
LayoutTests/http/tests/site-isolation/resources/screen-orientation-rotate-device.html:
 Added.
* LayoutTests/http/tests/site-isolation/screen-orientation-api-expected.txt: 
Added.
* LayoutTests/http/tests/site-isolation/screen-orientation-api.html: Added.
* 
LayoutTests/platform/mac/http/tests/site-isolation/screen-orientation-api-expected.txt:
 Added.
* Source/WebKit/Sources.txt:
* Source/WebKit/UIProcess/RemoteLayerTree/RemoteMonotonicTimeline.cpp:
* Source/WebKit/UIProcess/RemotePageProxy.cpp:
(WebKit::RemotePageProxy::injectPageIntoNewProcess):
(WebKit::RemotePageProxy::setCurrentOrientation):
* Source/WebKit/UIProcess/RemotePageProxy.h:
* Source/WebKit/UIProcess/RemotePageScreenOrientationManagerProxy.cpp: Added.
(WebKit::RemotePageScreenOrientationManagerProxy::create):
(WebKit::RemotePageScreenOrientationManagerProxy::RemotePageScreenOrientationManagerProxy):
(WebKit::RemotePageScreenOrientationManagerProxy::~RemotePageScreenOrientationManagerProxy):
(WebKit::RemotePageScreenOrientationManagerProxy::didReceiveMessage):
(WebKit::RemotePageScreenOrientationManagerProxy::didReceiveSyncMessage):
* Source/WebKit/UIProcess/RemotePageScreenOrientationManagerProxy.h: Copied 
from Source/WebKit/UIProcess/RemoteLayerTree/RemoteMonotonicTimeline.cpp.
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebScreenOrientationManagerProxy.cpp:
(WebKit::WebScreenOrientationManagerProxy::WebScreenOrientationManagerProxy):
(WebKit::WebScreenOrientationManagerProxy::~WebScreenOrientationManagerProxy):
(WebKit::WebScreenOrientationManagerProxy::setCurrentOrientation):
* Source/WebKit/UIProcess/WebScreenOrientationManagerProxy.h:
* Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::setDeviceOrientation):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

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



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

Reply via email to