WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-10-03 17:11:49 PDT
<
rdar://problem/137243934
>
Frédéric Wang Nélar
Comment 2
2026-10-12 06:39:35 PDT
I can reproduce on ipad 17.7.11 with Chrome. I see "portrait-primary landscape-secondary portrait-primary landscape-secondary portrait-primary landscape-secondary". In Safari, I don't see any orientation change event.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug