Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Idle Detection API #311

derekaug started this conversation in Ideas
Discussion options

Are there any current or future plans on using the experimental Idle Detection API? Didn't see any mention of it in the docs and was mostly just curious. Could be nice to have this with fallbacks to the other events used to determine if the user is idle.

You must be logged in to vote

Replies: 2 comments

Comment options

Definitely. I will keep you posted on the progress.

You must be logged in to vote
0 replies
Comment options

Im going to let this API mature a bit before I make a decision on it. The immediate problems I'm seeing with the specification is that it requires permission from the user. That kind of defeats the purpose when used as a security mechanism. We can use this discussion as an RFC for this. I guess the first questions are:

  1. What should happen if the user denies permission to the Idle Detection API? Should we fall back to the timer based idle detection or just bail out and no op? I think if a user is prompted for permission and you ignore their answer and track their activity anyway might make them lose trust. I personally think don't ask, don't tell is better. If idle security is a requirement for your app then prompting the user is just adding unnecessary friction.

  2. We can definitely make this an optional configuration, Im just wondering what the benefits are over the current implementation. I know that its native implementation is probably more performant, but I don't think performance is an issue since we have the ability to move the timers to a separate thread via web workers.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /