wake lock: Always reject screen lock requests with NotAllowedError for hidden documents
Adjust to https://github.com/w3c/wake-lock/pull/234. Screen wake lock requests could be rejected with either AbortError or NotAllowedError depending on when the document became hidden. For consistency, always reject the promise with NotAllowedError. Bug: 257511 Change-Id: I00eb478af62a794692a8c439926ce89480cd0510 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856166 Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Commit-Queue: Reilly Grant <reillyg@chromium.org> Reviewed-by:Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#705162}
Showing
Please register or sign in to comment