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

> 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