W3C home > Mailing lists > Public > public-device-apis-log@w3.org > August 2021

Re: [screen-wake-lock] Be able to query if there are any screen wake-lock object active for the current page (#273)

From: Marcos Cáceres via GitHub <sysbot+gh@w3.org>
Date: Fri, 06 Aug 2021 06:24:29 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-894033099-1628231067-sysbot+gh@w3.org>
> I don't see how query() would be a fingerprinting vector if it only returns whether there is a wake lock active for the current page.

Sorry, you are right. I misunderstood the initial request as querying the system's wake lock state for the document, rather than "has the API been used to hold a wake lock and is it holding one now because of it?"

My current feeling is that I think we should leave it to user land code to coordinate that and not expose this. Somewhat annoying, but the the page itself could effectively do its own reference counting; so long as the spec guarantees to always notify of "release", even when the document gets restored from bfcache or similar. 

GitHub Notification of comment by marcoscaceres
Please view or discuss this issue at https://github.com/w3c/screen-wake-lock/issues/273#issuecomment-894033099 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 6 August 2021 06:24:30 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:59 UTC