The MozWakeLock interface of the Wake Lock API tracks a wake lock set on any resource set on the device.
The MozWakeLock.topic read-only property returns a DOMString with the name of the resource locked.
The MozWakeLock.unlock() method releases the lock on the resource. If several locks have been taken on the resource, each of them needs to be released individually.