Chromium Code Reviews
DescriptionDestroy the CDM asynchronously
CDM destruction can potentially take a long time, so do this
asynchronously.
When the CDM is destroyed, any unfulfilled promises are rejected.
If this happens during blink garbage collection (nothing refers to the
EME blink objects anymore), blink doesn't like creating new objects
(rejection results in a DOMException being created). So post a task
to delete the CDM asynchronously, which will reject the unfulfilled
promises later (after gc is done).
BUG=597355
TEST=existing EME tests still pass
Committed: https://crrev.com/23f24a3c67f11e066f65820298c73d438f88da29
Cr-Commit-Position: refs/heads/master@{#386130}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 12 (5 generated)
|
|||||||||||||||||||