Intent to prototype: screen.orientation.lock() is turned on Nightly

49 views
Skip to first unread message

Makoto Kato

unread,
Feb 1, 2023, 4:11:36 AM2/1/23
to dev-pl...@mozilla.org
Hi.

screen.orientation.lock() is used on some sites such as YouTube to
lock the screen orientation to landscape/portrait. This API was turned
on Fennec (Former Firefox for Android). But when we moved to Fenix,
this became broken then disabled.

Cathy Lu (:calu) and I have re-implemented this API for
Fenix/GeckoView and Windows (tablet mode only due to Windows API
limitation), and fixed a lot of spec and compat issues. So I will turn
on this on Nightly for testing.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1767449
Standard: https://w3c.github.io/screen-orientation/
Standards Body: W3C
Preference: dom.screenorientation.allow-lock
DevTools: Devtools doesn't support screen orientation lock.
Platform coverage: Android / Windows (tablet mode only)
Other browsers: Supported in Blink (Android only) and WebKit Technical Preview
web-platform-tests: https://wpt.fyi/results/screen-orientation/

-- Makoto
Reply all
Reply to author
Forward
0 new messages