Closed Bug 1769009 Opened 3 years ago Closed 3 years ago

Reloading a page doesn't refresh the list of Web MIDI devices

Categories

(Core :: DOM: Device Interfaces, defect)

Unspecified
All
defect

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: gsvelto, Assigned: gsvelto)

References

Details

Attachments

(1 file)

This is a rather major issue given we don't support hotplug and very easy to reproduce. Here's my STR:

  1. Force-enabled Web MIDI support via prefs or changing the code in MIDIPermissionRequest.cpp
  2. Plug a MIDI device
  3. Browse to https://www.midimonitor.com/
  4. Click on the "Devices" button, your device will show up
  5. Unplug the MIDI device
  6. Reload the page
  7. Click on the "Devices" button again, your device still shows up
Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
Pushed by gsvelto@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/69f265c469f6 Refresh the list of MIDI devices both when navigating to a new page and away from an old one r=padenot

Backed out changeset 69f265c469f6 (Bug 1769009) for causing mochitest failures on test_midi_device_explicit_open_close.html.
Backout link
Push with failures <--> 12
Failure Log

Flags: needinfo?(gsvelto)

Refreshing the test MIDI devices list is causing spurious statechange events on the MIDIAccess object which are causing other tests to fail. I need to change the test implementation to refresh the list in a more controllable way to prevent those.

Flags: needinfo?(gsvelto)

I've altered the test, try is looking good, I'll land again.

Pushed by gsvelto@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f282648916d5 Refresh the list of MIDI devices both when navigating to a new page and away from an old one r=padenot
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: