Chromium Code Reviews
DescriptionWeb MIDI: stop sending messages when the document is going to be closed
When the page is going to be closed, loader() may return nullptr.
In MIDIAccess::sendMIDIData(), we refer the DocumentLoader without any
check, thus it results in a renderer crash though it rarely happens.
I had a report on a similar issue, but the specific code in the case was
already removed. This patch also fixes another potential problem that
may cause the same issue.
BUG=674005
Committed: https://crrev.com/be3f5b8ec3199a8c6fbba72cbc83776d6ae53efc
Cr-Commit-Position: refs/heads/master@{#438485}
Patch Set 1 #
Messages
Total messages: 12 (6 generated)
|
|||||||||||||||||||