Closed Bug 1138240 Opened 10 years ago Closed 10 years ago

[EME] Handle CDMs resolving promises more than once

Categories

(Core :: Audio/Video, defect)

37 Branch
x86_64
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox37 --- fixed
firefox38 --- fixed
firefox39 --- fixed

People

(Reporter: cpearce, Assigned: cpearce)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

The Adobe CDM is resolving promises more than once. We're not handling this properly (we assert in debug builds at least) which is causing the Adobe Demo page to fail.
Add more logging around promises, and ensure we ignore the CDM trying to resolve an already resolved promise.
Attachment #8571105 - Flags: review?(edwin)
Comment on attachment 8571105 [details] [diff] [review] Patch: Ignore a CDM trying to resolve an already resolved promise Review of attachment 8571105 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/media/eme/MediaKeys.cpp @@ +188,5 @@ > MediaKeys::RetrievePromise(PromiseId aId) > { > + if (!mPromises.Contains(aId)) { > + NS_WARNING("Tried to retrieve a non-existent promise"); > + return nullptr; It could be useful to log the promise ID even if it's a dupe.
Attachment #8571105 - Flags: review?(edwin) → review+
Flags: needinfo?(cpearce)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Attached patch Beta patch (deleted) — Splinter Review
Patch for beta branch as part of EME platform uplift.
Comment on attachment 8572389 [details] [diff] [review] Beta patch Requesting (retroactive for beta) approval for Beta and Aurora landing as part of EME platform uplift.
Flags: needinfo?(cpearce)
Attachment #8572389 - Flags: approval-mozilla-beta?
Attachment #8572389 - Flags: approval-mozilla-aurora?
Comment on attachment 8572389 [details] [diff] [review] Beta patch Approved for Beta and Aurora as part of EME platform uplift.
Attachment #8572389 - Flags: approval-mozilla-beta?
Attachment #8572389 - Flags: approval-mozilla-beta+
Attachment #8572389 - Flags: approval-mozilla-aurora?
Attachment #8572389 - Flags: approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: