Skip to content

Should Web MIDI be affected by Document visibility state? #282

Description

@mjwilson-google

There was a question raised if Web MIDI should pause updates when the visibility state of the document changes to "hidden" similar to what other APIs do, such as the Gamepad API (https://w3c.github.io/gamepad/#handling-visibility-change).

Some things to consider:

  • The Web MIDI API is gated behind a permission prompt, whereas other similar APIs may not be.
  • There are legitimate uses for running Web MIDI in a "hidden" document, such as playing a musical instrument while looking at the sheet music in a different tab or application.
  • There are identified cases of websites using Web MIDI solely to fingerprint users.

Currently the spec says nothing about visibility state.

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

    Agenda+https://speced.github.io/spec-maintenance/about/Needs DiscussionThe issue needs more discussion before it can be fixed.category: enhancementhttps://www.w3.org/policies/process/#class-3

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions