Support manifest orientation outside fullscreen mode
Reported by
zackarg...@pinterest.com,
Feb 15 2018
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Steps to reproduce the problem: 1. Go to pinterest.com in Chrome on Android 2. Rotate phone with Auto-rotate enabled on device 3. The layout rotates What is the expected behavior? 1. Go to pinterest.com in Chrome on Android 2. Rotate phone with Auto-rotate enabled on device 3. The layout does not rotate (browser respects {orientation: 'portrait'}) What went wrong? Vendors should have the option to lock the screen orientation so that the user has the best experience possible. Did this work before? No Does this work in other browsers? No The current behavior is to ignore the manifests orientation unless the site is launched in fullscreen mode. This is a feature request to start supporting the orientation lock in regular browser mode. Chrome version: 64.0.3282.140 Channel: n/a OS Version: OS X 10.13.3 Flash Version: This is a feature request, not a bug. I imagine it has been discussed in the past, but could not find any information about why the orientation is not respected outside of fullscreen mode.
,
Feb 15 2018
,
Feb 15 2018
Huh. Can you confirm whether the window.screen.lockOrientation() API works for you in non-fullscreen mode? I suspect it's just that we haven't plumbed through the orientation information from the manifest through to affect the current page, as opposed to a policy decision. (Somebody let me know if they're aware of a policy decision around this though!)
,
Feb 16 2018
The issue seems to be a feature request. Hence, marking it as untriaged for further inputs from dev team. Thanks...!!
,
Feb 16 2018
Looks like screen.orientation.lock is the Chrome specific version. It does not work when not in fullscreen mode. According to the spec: "The user agent MAY require a document and its associated browsing context to meet one or more security conditions in order to be able to lock the screen orientation. For example, a user agent might require a document's top-level browsing context to be fullscreen (see Interaction with FullScreen API) in order to allow an orientation lock." So fullscreen is not a requirement by the spec itself for locking orientation. Ideally the site would not have to call screen.orientation.lock, but the manifest entry would be respected by default. |
|||
►
Sign in to add a comment |
|||
Comment 1 by e...@chromium.org
, Feb 15 2018Labels: -Type-Bug Type-Feature