Skip to content

Commit

Permalink
FF124 reverted release of screen wakelock API (#32609)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee authored Mar 15, 2024
1 parent ef45a13 commit c67f7e6
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
44 changes: 44 additions & 0 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2059,6 +2059,50 @@ See [Firefox bug 1697647](https://bugzil.la/1697647) for more details.
</tbody>
</table>

### Screen Wake Lock API

The [Screen Wake Lock API](/en-US/docs/Web/API/Screen_Wake_Lock_API) allows a web application to request that the screen not be dimmed or locked while it is active.
This is useful for navigation and reading applications, and any application where the screen doesn't get regular tactile input while the application is in use (the default way to keep a screen awake).
The API is accessed through {{domxref("Navigator.wakeLock")}} in secure contexts, which returns a {{domxref("WakeLock")}}.
This can be used to request a {{domxref("WakeLockSentinel")}} that can be used to monitor the status of the wake lock, and release it manually.
See [Firefox bug 1589554](https://bugzil.la/1589554) for more details.

<table>
<thead>
<tr>
<th>Release channel</th>
<th>Version changed</th>
<th>Enabled by default?</th>
</tr>
</thead>
<tbody>
<tr>
<th>Nightly</th>
<td>122</td>
<td>Yes</td>
</tr>
<tr>
<th>Developer Edition</th>
<td>122</td>
<td>No</td>
</tr>
<tr>
<th>Beta</th>
<td>122</td>
<td>No</td>
</tr>
<tr>
<th>Release</th>
<td>122</td>
<td>No</td>
</tr>
<tr>
<th>Preference name</th>
<td colspan="2"><code>dom.screenwakelock.enabled</code></td>
</tr>
</tbody>
</table>

### Prioritized Task Scheduling API

The [Prioritized Task Scheduling API](/en-US/docs/Web/API/Prioritized_Task_Scheduling_API) provides a standardized way to prioritize all tasks belonging to an application, whether they defined in a website developer's code, or in third party libraries and frameworks.
Expand Down
2 changes: 0 additions & 2 deletions files/en-us/mozilla/firefox/releases/124/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ This article provides information about the changes in Firefox 124 that affect d

### APIs

- The [Screen Wake Lock API](/en-US/docs/Web/API/Screen_Wake_Lock_API) is now supported, allowing a web application to request that the screen not be dimmed or locked while it is active. This is useful for navigation and reading applications, and other applications where the screen doesn't get regular tactile input when in use, which would otherwise keep the screen awake. The API is accessed through {{domxref("Navigator.wakeLock")}} in secure contexts, which returns a {{domxref("WakeLock")}}. This can be used to request a {{domxref("WakeLockSentinel")}} that can be used to monitor the status of the wake lock, and release it manually.
([Firefox bug 1874849](https://bugzil.la/1874849)).
- [`AbortSignal.any()`](/en-US/docs/Web/API/AbortSignal/any_static) is now supported, allowing a composite signal to be created that can be used to abort an operation from multiple signal sources. ([Firefox bug 1830781](https://bugzil.la/1830781)).

#### DOM
Expand Down

0 comments on commit c67f7e6

Please sign in to comment.