diff options
Diffstat (limited to 'dom/midi/tests/file_midi_permission_gated.html')
-rw-r--r-- | dom/midi/tests/file_midi_permission_gated.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/midi/tests/file_midi_permission_gated.html b/dom/midi/tests/file_midi_permission_gated.html new file mode 100644 index 0000000000..8e3ed4d625 --- /dev/null +++ b/dom/midi/tests/file_midi_permission_gated.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> +<head> +<script> + window.addEventListener("message", async (evt) => { + try { + await navigator.requestMIDIAccess({sysex: evt.data}); + parent.postMessage("succeeded", "*"); + } catch (ex) { + parent.postMessage("failed", "*"); + } + }); +</script> +<body></body> +</html> |