Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8f9fc27ff04c511bcb5c8a5c1392cf3bae40a504
https://github.com/WebKit/WebKit/commit/8f9fc27ff04c511bcb5c8a5c1392cf3bae40a504
Author: Phipson Lee <[email protected]>
Date: 2026-03-26 (Thu, 26 Mar 2026)
Changed paths:
M Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm
Log Message:
-----------
Window sometimes drifts during fullscreen animation on visionOS
https://bugs.webkit.org/show_bug.cgi?id=310553
rdar://171182633
Reviewed by Andy Estes.
In https://bugs.webkit.org/show_bug.cgi?id=306149 we previously introduced new
behavior
for Fullscreen Animation in visionOS such that rather than using 2 scene
resizes we limited
it to 1. The consequence of that was we needed to apply an XY animation for the
windows as
they transitioned in and out to avoid the windows from drifting as they faded
in and out.
>From further testing we noticed that this XY animation may sometimes not
>synchronize with
the scene resize animation, so the issue may still occur. The solution is to
remove this
workaround and instead do the following:
On entry: perform the scene resize with no animation at the end of the
animation once the
fullscreen window settles
On exit: perform the scene resize with no animation at the beginning of the
animation as
the fullscreen window fades out
In both cases, we adjust the origin point of the fullscreen window such that it
does
not shift during the resize.
We introduce a `_updateFullscreenWindowOrigin` helper function for this
purpose. It gets
called inside the scene resize animation block on exit such that it still
synchronizes
with when the scene resize occurs.
* Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
(-[WKFullScreenWindowController _updateFullscreenWindowOrigin]):
- Helper function to configure the origin point of the fullscreen window for
animated
scene resize
(-[WKFullScreenWindowController
_performSpatialFullScreenTransition:completionHandler:]):
- Removed the XY animation workaround in favor of the proposed above solution.
Canonical link: https://commits.webkit.org/310001@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications