Skip to content

Commit

Permalink
Bug 1868562 - WakeLock and WakeLockSentinel should have a pref guard;…
Browse files Browse the repository at this point in the history
… r=smaug

which should be exposed on Nightly only.

Differential Revision: https://phabricator.services.mozilla.com/D196354
  • Loading branch information
vinhill committed Dec 14, 2023
1 parent c6f003d commit bbf52d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dom/webidl/WakeLock.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* https://w3c.github.io/screen-wake-lock/
*/

[SecureContext, Exposed=(Window)]
[SecureContext, Exposed=(Window), Pref="dom.screenwakelock.enabled"]
interface WakeLock {
[Throws]
Promise<WakeLockSentinel> request(optional WakeLockType type = "screen");
Expand Down
2 changes: 1 addition & 1 deletion dom/webidl/WakeLockSentinel.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* https://w3c.github.io/screen-wake-lock/
*/

[SecureContext, Exposed=(Window)]
[SecureContext, Exposed=(Window), Pref="dom.screenwakelock.enabled"]
interface WakeLockSentinel : EventTarget {
readonly attribute boolean released;
readonly attribute WakeLockType type;
Expand Down

0 comments on commit bbf52d5

Please sign in to comment.