screen.orientation.lock does not lock
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: kbrosnan, Unassigned)
Details
Attachments
(1 file)
|
1.19 KB,
text/html
|
Details |
From github: https://github.com/mozilla-mobile/fenix/issues/16943.
screen,orientation.lock does not lock the screen orientation
Steps to reproduce
- Open simple web page attached
- Tap the Fullscreen button to enter full screen mode
- Tap the Lock button to lock the screen to landscape position
Expected behavior
If the screen is not landscape, the screen should rotate to a landscape-primary orientation and the Promise should resolve. Then the screen orientation should be locked to that orientation so that rotating the device does not alter the screen orientation.
This is the behavior on Chrome for Android (tested Chrome 86).
Actual behavior
If the screen is in a portrait orientation, then on pressing the Lock button, nothing happens. Upon rotating the device to the landscape orientation, the screen rotates to match and the promise is then resolved. The screen orientation is not locked, rotating the device back to a portrait behavior allows the screen to rotate back.
If the screen is already in a landscape orientation, then on pressing the Lock button, the promise is immediately resolved, The screen orientation is not locked, rotating the device back to a portrait behavior allows the screen to rotate back.
Device information
- Android device: Google Pixel 4 XL (Android 11) and Galaxy Tab E (Android 7.1.1)
- Fenix version: 82.1.3 and 83.1.0 and Nightly 121208
Change performed by the Move to Bugzilla add-on.
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
Looks like a problem with Gecko functionality, can you please take a look? Thanks!
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•4 years ago
|
||
Dup of GV bug. Fennec was implemented, GeckoView isn't.
Description
•