| Index: Source/modules/webmidi/MIDIInput.cpp
|
| diff --git a/Source/modules/webmidi/MIDIInput.cpp b/Source/modules/webmidi/MIDIInput.cpp
|
| index efd14fdca91b61ffb1f725e07c7ec9fafa960fda..42054e87fc06136a2519497db9d46959bbe9eece 100644
|
| --- a/Source/modules/webmidi/MIDIInput.cpp
|
| +++ b/Source/modules/webmidi/MIDIInput.cpp
|
| @@ -57,10 +57,10 @@ void MIDIInput::didReceiveMIDIData(unsigned portIndex, const unsigned char* data
|
| if (!length)
|
| return;
|
|
|
| - // Drop SysEx message here when the client does not request it. Note that this is not a security check but an
|
| - // automatic filtering for clients that do not want SysEx message. Also note that SysEx message will never be sent
|
| - // unless the current process has an explicit permission to handle SysEx message.
|
| - if (data[0] == 0xf0 && !midiAccess()->sysExEnabled())
|
| + // Drop sysex message here when the client does not request it. Note that this is not a security check but an
|
| + // automatic filtering for clients that do not want sysex message. Also note that sysex message will never be sent
|
| + // unless the current process has an explicit permission to handle sysex message.
|
| + if (data[0] == 0xf0 && !midiAccess()->sysexEnabled())
|
| return;
|
| RefPtr<Uint8Array> array = Uint8Array::create(data, length);
|
| dispatchEvent(MIDIMessageEvent::create(timeStamp, array));
|
|
|