Skip to content

Make the IdleDetector API an opt-in screen-lock signal, never the default path #6

Description

@dmythro

Why

The IdleDetector API is Chromium-only, needs a permission prompt and a user gesture, and Firefox never shipped it. As the default path it makes behaviour differ per browser.

Proposal

  • Make the event-based detector the only default.
  • Keep the IdleDetector API as an opt-in enhancement (screenLock: true) that adds a locked / unlocked signal when available, and is silently absent otherwise.
  • Document that it never replaces server-side expiry.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions