If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Remove navigator.requestWakeLock()

NEW
Unassigned

Status

()

Core
DOM
P3
normal
4 months ago
2 months ago

People

(Reporter: gsvelto, Unassigned)

Tracking

(Blocks: 1 bug, {dev-doc-needed, site-compat})

Trunk
dev-doc-needed, site-compat
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 months ago
+++ This bug was initially created as a clone of Bug #1306391 +++

navigator.requestWakeLock() was introduced in B2G to allow system code to grab various Android wakelocks. Since it's not used anymore it should be removed together with related code in the wakelocks implementation.
No longer depends on: 1306447
(Reporter)

Comment 1

4 months ago
Thanks Kris, sorry for the bug spam.
Keywords: meta

Updated

4 months ago
Priority: -- → P3
Adding ddn, just so I can check the docs for this.
Keywords: dev-doc-needed
Is this a proposal to remove the `navigator.requestWakeLock` API that is provided by the pref `dom.wakelock.enabled` in Fx? Because there is another bug open (https://bugzilla.mozilla.org/show_bug.cgi?id=1054113) to enable it for Firefox for Android. I don't know enough about how much code is shared between B2G and Fx.

Updated

2 months ago
Keywords: site-compat
(Reporter)

Comment 4

2 months ago
(In reply to Barret Rennie [:brennie] from comment #3)
> Is this a proposal to remove the `navigator.requestWakeLock` API that is
> provided by the pref `dom.wakelock.enabled` in Fx? Because there is another
> bug open (https://bugzilla.mozilla.org/show_bug.cgi?id=1054113) to enable it
> for Firefox for Android. I don't know enough about how much code is shared
> between B2G and Fx.

IIRC this API is non-standard so it shouldn't be enabled, I think it's safe if we close that bug as WONTFIX.
Sorry, I got this mixed up with the `navigator.getWakeLock` API from https://w3c.github.io/wake-lock/. Thanks for clearing things up, cheers!
You need to log in before you can comment on or make changes to this bug.