Contact Email
Specification
Chrome Status Entry
https://chromestatus.com/feature/5144443101118464
Summary
Android tablets can and sometimes do lie about handling an application’s request to lock orientation. For example, in response to an application request to lock the orientation to landscape while in portrait mode, the tablet might report success after (a) doing nothing, (b) letterboxing while remaining in portrait, or (c) correctly rotating the display. This makes the behavior of the ScreenOrientation::lock() API on tablets hard for sites to rely on; a successfully resolved Promise doesn’t always mean what the spec says it means.
Further, these behaviors are becoming more common among tablets. We expect this trend to continue.
To address this, we plan to make ScreenOrientation::lock() for all non-phone form-factors reject the resulting Promise with a `NotSupportedError` without attempting to lock orientation.
Foldables will behave according to Chrome’s belief about the current device shape, though Chrome’s detection of this continues to be somewhat flaky. Other form-factors, e.g. “automotive”, don’t really make sense with this API anyway.
Blink Components
Blink>ScreenOrientation
Tracking Bug
https://launch.corp.google.com/launch/4383592
https://b.corp.google.com/issues/384736274
On 2/28/25 12:31 PM, 'Frank Liberato' via blink-dev wrote:
Contact Email
Specification
Chrome Status Entry
https://chromestatus.com/feature/5144443101118464
Summary
Android tablets can and sometimes do lie about handling an application’s request to lock orientation. For example, in response to an application request to lock the orientation to landscape while in portrait mode, the tablet might report success after (a) doing nothing, (b) letterboxing while remaining in portrait, or (c) correctly rotating the display. This makes the behavior of the ScreenOrientation::lock() API on tablets hard for sites to rely on; a successfully resolved Promise doesn’t always mean what the spec says it means.
Further, these behaviors are becoming more common among tablets. We expect this trend to continue.
To address this, we plan to make ScreenOrientation::lock() for all non-phone form-factors reject the resulting Promise with a `NotSupportedError` without attempting to lock orientation.
Foldables will behave according to Chrome’s belief about the current device shape, though Chrome’s detection of this continues to be somewhat flaky. Other form-factors, e.g. “automotive”, don’t really make sense with this API anyway.
Blink Components
Blink>ScreenOrientation
Tracking Bug
https://launch.corp.google.com/launch/4383592
https://b.corp.google.com/issues/384736274
Estimated Milestone M136 --
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/87a37476-72e4-4aad-824d-ce3e00616a01n%40chromium.org.