gecko-dev/dom/midi/tests/blank.html
nchevobbe 5d8ed083ca Bug 1778959 - Don't expose requestMIDIAccess on file scheme. r=bholley.
This is done by adding Navigator::HasMidiSupport that we reference in
the Navigator.webidl `Func` extented attribute for `requestMIDIAccess`.

A test case is added to browser_midi_permission_gated.js to ensure this
works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D157321
2022-09-30 22:07:19 +00:00

6 lines
67 B
HTML

<!DOCTYPE html>
<meta charset="utf8">
<html>
<body></body>
</html>