NEW 280757
[iOS] requestFullscreen causes window.screen.orientation.onchange events on non-Safari WKWebView
https://bugs.webkit.org/show_bug.cgi?id=280757
Summary [iOS] requestFullscreen causes window.screen.orientation.onchange events on n...
Ali Juma
Reported 2024-10-02 08:06:58 PDT
Created attachment 472767 [details] Test page In a WKWebView (that has WKPreferences.elementFullscreenEnabled = YES), calling requestFullscreen can trigger spurious and incorrect window.screen.orientation.onchange events. Steps to reproduce (in plain-WKWebView or Chrome on iOS, but not in Safari): 1. Rotate iPad to landscape 2. Call requestFullscreen on some element Expected result: no orientation change events Actual result: We get a sequence of orientation change events: portrait-primary landscape-secondary portrait-primary landscape-secondary I've also attached a test page (from crbug.com/370696600) that demonstrates the bug. Make sure to start in landscape. The bug doesn't repro in portrait.
Attachments
Test page (683 bytes, text/html)
2024-10-02 08:06 PDT, Ali Juma
no flags
Radar WebKit Bug Importer
Comment 1 2024-10-03 17:11:49 PDT
Note You need to log in before you can comment on or make changes to this bug.