[Webkit-unassigned] [Bug 280757] New: [iOS] requestFullscreen causes window.screen.orientation.onchange events on non-Safari WKWebView
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 2 08:06:58 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=280757
Bug ID: 280757
Summary: [iOS] requestFullscreen causes
window.screen.orientation.onchange events on
non-Safari WKWebView
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ajuma at chromium.org
CC: bfulgham at webkit.org, jer.noble at apple.com,
simon.fraser at apple.com, wenson_hsieh at apple.com,
zalan at apple.com
Created attachment 472767
--> https://bugs.webkit.org/attachment.cgi?id=472767&action=review
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.
--
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/20241002/29a45770/attachment-0001.htm>
More information about the webkit-unassigned
mailing list