Closed Bug 1475209 Opened 7 years ago Closed 7 years ago

Get rid of EnumDevResolver in MediaDevices.cpp by using a promise/mozpromise/pledge solution directly.

Categories

(Core :: WebRTC: Audio/Video, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: achronop, Assigned: jib)

References

Details

Attachments

(1 file)

This is coming from the review of Bug 1152401. The way that EnumDevResolver converts to nsIVariant and back is redundant. A better way would be to replace MediaManager::EnumerateDevices to return a Pledge and handle success or reject events in the same place. MozPromise is not appropriate, as MediaManager::EnumerateDevices includes IPC.
Rank: 25
Priority: -- → P3
See Also: → 1152401
Please don't use Pledge anymore... Should be using MozPromise.
And if it can't be used over IPC, then add IPC supports :)
Summary: Change MediaManager::EnumerateDevices to return a Pledge. → Get rid of EnumDevResolver in MediaDevices.cpp by using a promise/mozpromise/pledge solution directly.
See Also: → 1479841
No longer blocks: 1492479
Assignee: nobody → jib
Attachment #9015285 - Attachment description: Bug 1475209 - Have MediaManager::EnumerateDevices() return a promise. r?achronop → Bug 1475209 - Have MediaManager::EnumerateDevices() return a promise. r?achronop!,jya!
Pushed by jbruaroey@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a616c269bbcc Have MediaManager::EnumerateDevices() return a promise. r=achronop,jya
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: