DescriptionVerify promise type before casting.
If a CDM calls the wrong Resolved() method to resolve a promise, the
promise is cast to the wrong type and causes a crash. This fixes the
problem by verifying that the promise is the correct type before
casting it.
BUG=408319
TEST=existing EME tests pass
Committed: https://crrev.com/ddb0fcf8e56749647a5b41ac16c5f3b26e6962e1
Cr-Commit-Position: refs/heads/master@{#292440}
Patch Set 1 #
Total comments: 6
Patch Set 2 : nits #Patch Set 3 : compiler issues #Patch Set 4 : compiler changes #2 #
Messages
Total messages: 19 (0 generated)
|