[Webkit-unassigned] [Bug 257695] ScreenOrientation lock api support

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 5 04:28:41 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=257695

--- Comment #5 from Daniel Rossi <electroteque at gmail.com> ---
I did more research. Safari IOS 16.5 Ipad has Multi-task support. The three dots at the top. That is why screen lock is complaining and returning an error in html fullscreen. So won't work in Safari with html fullscreen enabled. 

At least the api with the flag enabled does get detected tries to work and returns a promise. It would be the screen.orientation.lock method. 

   const screenLockApi = screen.lockOrientation
        || screen.mozLockOrientation
        || screen.msLockOrientation
        || screen.orientation && screen.orientation.lock && screen.orientation.lock.bind(screen.orientation);

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230605/b591f0eb/attachment-0001.htm>


More information about the webkit-unassigned mailing list