Skip to content

Commit

Permalink
FF97 Add experimental feature for ScreenOrientation.lock() (#11705)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee authored Jan 5, 2022
1 parent 320a2b8 commit c1d709c
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,52 @@ This feature is enabled on Android in all builds, but behind a preference on Des
</tbody>
</table>

### 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`.

<table>
<thead>
<tr>
<th>Release channel</th>
<th>Version changed</th>
<th>Enabled by default?</th>
</tr>
</thead>
<tbody>
<tr>
<th>Nightly</th>
<td>97</td>
<td>No</td>
</tr>
<tr>
<th>Developer Edition</th>
<td>97</td>
<td>No</td>
</tr>
<tr>
<th>Beta</th>
<td>97</td>
<td>No</td>
</tr>
<tr>
<th>Release</th>
<td>97</td>
<td>No.</td>
</tr>
<tr>
<th>Preference name</th>
<td colspan="2"><code>dom.screenorientation.allow-lock</code></td>
</tr>
</tbody>
</table>

## Security and privacy

### Block plain text requests from Flash on encrypted pages
Expand Down

0 comments on commit c1d709c

Please sign in to comment.