From c1d709c17c043fdcfab612b896e409ebc3b5e975 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Wed, 5 Jan 2022 12:38:48 +1100 Subject: [PATCH] FF97 Add experimental feature for ScreenOrientation.lock() (#11705) --- .../firefox/experimental_features/index.md | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/files/en-us/mozilla/firefox/experimental_features/index.md b/files/en-us/mozilla/firefox/experimental_features/index.md index 50f5588de8c7445..fd21ad5f4d39517 100644 --- a/files/en-us/mozilla/firefox/experimental_features/index.md +++ b/files/en-us/mozilla/firefox/experimental_features/index.md @@ -1438,6 +1438,52 @@ This feature is enabled on Android in all builds, but behind a preference on Des +### Screen Orientation API + +#### ScreenOrientation.lock() + +The {{domxref("ScreenOrientation.lock()")}} method allows a device to be locked to a particular orientation, if supported by the device and allowed by browser pre-lock requirements. +Typically locking the orientation is only allowed on mobile devices when the document is being displayed full screen. +See {{bug(1697647)}} for more details. + +Note that since locking the screen orientation isn't typically supported on desktop systems, you will need to use Firefox for Android Nightly build and enable the preference in `about:config`. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Release channelVersion changedEnabled by default?
Nightly97No
Developer Edition97No
Beta97No
Release97No.
Preference namedom.screenorientation.allow-lock
+ ## Security and privacy ### Block plain text requests from Flash on encrypted pages