Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9338c51731f8745cb7817901be2fcc8f86e580c5
https://github.com/WebKit/WebKit/commit/9338c51731f8745cb7817901be2fcc8f86e580c5
Author: Ryan Fuller <[email protected]>
Date: 2025-06-24 (Tue, 24 Jun 2025)
Changed paths:
M Source/WebKit/UIProcess/API/APIFullscreenClient.h
M Source/WebKit/UIProcess/API/Cocoa/_WKFullscreenDelegate.h
M Source/WebKit/UIProcess/Cocoa/FullscreenClient.h
M Source/WebKit/UIProcess/Cocoa/FullscreenClient.mm
M Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm
Log Message:
-----------
[visionOS] Add delegate method to prevent docking from element fullscreen.
rdar://145799817
https://bugs.webkit.org/show_bug.cgi?id=294702
Reviewed by Alex Christensen.
Safari on visionOS would like to prevent docking from element fullscreen when
the
browser is in a certain state (spatial browsing).
To accomplish this, add a new delegate method to FullscreenClient that gives the
client the option to preventDocking (only for LinearMediaPlayer).
WKFullScreenViewController checks this method, and if configured to prevent,
removes
the environment picker button / prevents it being added.
* Source/WebKit/UIProcess/API/APIFullscreenClient.h:
(API::FullscreenClient::preventDocking):
* Source/WebKit/UIProcess/API/Cocoa/_WKFullscreenDelegate.h:
* Source/WebKit/UIProcess/Cocoa/FullscreenClient.h:
* Source/WebKit/UIProcess/Cocoa/FullscreenClient.mm:
(WebKit::FullscreenClient::setDelegate):
(WebKit::FullscreenClient::preventDocking):
* Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm:
(-[WKFullScreenViewController
configureEnvironmentPickerOrFullscreenVideoButtonView]):
Canonical link: https://commits.webkit.org/296597@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes