WebMIDI cannot receive data

I’m having trouble getting Brave’s WebMIDI object to receive MIDI message data on Windows 11, even though it seems to be able to send messages without issue.

I have enabled this flag: brave://flags/#use-winrt-midi-api

There was a similar thread several years ago but I don’t think that this is the same issue. It’s far more likely that Microsoft’s recent MIDI update broke support in Brave.

I do regret to report that after several hours of testing that went nowhere, I was horrified to realize that the exact same code worked just fine in Chrome.

You can reproduce this issue on my page at https://sb.kabaragoya.com/ right now. You won’t have the device but any WebMIDI accessible USB device on your machine will successfully not work.

@kabaragoya

Using a Brave Browser New Window:

  1. Visit https://www.trouble-some-website.com ← (generic website)
  2. Click the “tune” icon to the left of the https in the URL address field
  3. In the pop-down menu, click Site settings
  4. In the resulting Site Settings Details window, try > click on Delete data (might not exist?)
  5. Next, in the same Site Settings Details window, click on Reset permissions (definitely exists)
  6. Close the settings page.
  7. Reload the https://www.trouble-some-website.com webpage
  8. Click the “tune” icon
  9. Make sure that JavaScript is Enabled

Tune icon: Tune_button_left_offset_of_URL_address_field


In a Brave Browser New Window, go to: brave://settings/content/midiDevices and examine the settings.

You might need to toggle the situation. Switch choices. Restart browser. Switch choices again. Restart browser.

Same for brave://settings/content/usbDevices.


Thanks, I appreciate this.

I did go through these steps carefully (there was no Delete data but there was a Reset permissions) and the TL;DR is that something about either a) Brave’s WebMIDI implementation or b) how that implementation interacts with Windows 11 since the relatively recent MIDI subsystem update is seriously janky compared to doing the exact same thing on the exact same page in Chrome.

My testing suggests that once in a while, a message actually gets through! This is IMO way more messed up than if it didn’t work at all.

I’m not sure how to explain further. I could record a video showing the process in Brave and Chrome?

Brave Support needs to know clearly, one of the two:

  • Chrome does have the problem
  • Chrome does not have the problem

Apologies for being unclear. It works as expected in Chrome. That’s why I opened this ticket.

@kabaragoya thank you for the detailed report. I think seeing the recording of the behavior in both browsers would be very helpful if you don’t mind?