Closed
Bug 1479841
Opened 6 years ago
Closed 6 years ago
Start replacing uses of Pledge with MozPromise in MediaManager (cleanup)
Categories
(Core :: WebRTC: Audio/Video, enhancement, P2)
Core
WebRTC: Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: jib, Assigned: achronop)
References
Details
Attachments
(4 files, 4 obsolete files)
As mentioned in bug 934425 comment 44: > So... the reason EnumerateDevicesImpl() still returns a Pledge, and hasn't yet been converted to > MozPromise, is that EnumerateDevicesImpl() does quite a lot of work in the master process and > waits for an IPC response. Pledge was written to allow clean tear-down of the content process > even with outstanding IPC responses, and neither resolve nor reject in that case, by design. It should still be doable to convert this to use MozPromise, if we stash outstanding MozPromise requests and call Disconnect() on them in OnNavigation. We should write and land a test first, to make sure we don't accidentally alter this behavior. Filed as bug 1479840. We might also want to take advantage of MozPromise IPDL support bug 1313200 at the same time.
Assignee | ||
Comment 2•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0d1b44942f12773b5ea0a9669dc06243f0c179f9
Assignee | ||
Comment 3•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a15f91a0b4a21292431ed43532e6d3ccffc89d9a
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Reporter | ||
Comment 8•6 years ago
|
||
Comment on attachment 9010197 [details] Bug 1479841 - Use promise base ipdl api and remove unnecessary IPC response. r?jib Jan-Ivar Bruaroey [:jib] (needinfo? me) has approved the revision.
Attachment #9010197 -
Flags: review+
Assignee | ||
Comment 9•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ac5c74b24294b7073291743e575a808c0973137a
Assignee | ||
Comment 10•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d69d70308c39dc785756c48471d1bae65d2ade77
Assignee | ||
Comment 11•6 years ago
|
||
Assignee | ||
Comment 12•6 years ago
|
||
Assignee | ||
Comment 13•6 years ago
|
||
Assignee | ||
Comment 14•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Attachment #9011022 -
Attachment is obsolete: true
Assignee | ||
Updated•6 years ago
|
Attachment #9011021 -
Attachment is obsolete: true
Assignee | ||
Updated•6 years ago
|
Attachment #9011020 -
Attachment is obsolete: true
Assignee | ||
Updated•6 years ago
|
Attachment #9011019 -
Attachment is obsolete: true
Reporter | ||
Comment 15•6 years ago
|
||
Comment on attachment 9010198 [details] Bug 1479841 - Apply ipdl changes to MediaChild and use the promise to return the key. r?jib Jan-Ivar Bruaroey [:jib] (needinfo? me) has approved the revision.
Attachment #9010198 -
Flags: review+
Reporter | ||
Comment 16•6 years ago
|
||
Comment on attachment 9010199 [details] Bug 1479841 - Apply ipdl changes to MediaParent and pass back the key through the resolver. r?jib Jan-Ivar Bruaroey [:jib] (needinfo? me) has approved the revision.
Attachment #9010199 -
Flags: review+
Assignee | ||
Comment 17•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b276809f822f9f9e9611fb85582285a624305577
Reporter | ||
Comment 18•6 years ago
|
||
Comment on attachment 9010200 [details] Bug 1479841 - Use promises instead of pledges through out audio device enumeration code path. r?jib Jan-Ivar Bruaroey [:jib] (needinfo? me) has approved the revision.
Attachment #9010200 -
Flags: review+
Updated•6 years ago
|
Attachment #9011022 -
Attachment is obsolete: false
Updated•6 years ago
|
Attachment #9011021 -
Attachment is obsolete: false
Updated•6 years ago
|
Attachment #9011020 -
Attachment is obsolete: false
Updated•6 years ago
|
Attachment #9011019 -
Attachment is obsolete: false
Assignee | ||
Updated•6 years ago
|
Attachment #9011019 -
Attachment is obsolete: true
Assignee | ||
Updated•6 years ago
|
Attachment #9011020 -
Attachment is obsolete: true
Assignee | ||
Updated•6 years ago
|
Attachment #9011021 -
Attachment is obsolete: true
Assignee | ||
Updated•6 years ago
|
Attachment #9011022 -
Attachment is obsolete: true
Comment 19•6 years ago
|
||
Pushed by achronopoulos@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/79eec88b1315 Use promise base ipdl api and remove unnecessary IPC response. r=jib https://hg.mozilla.org/integration/autoland/rev/5ad68af3960a Apply ipdl changes to MediaChild and use the promise to return the key. r=jib https://hg.mozilla.org/integration/autoland/rev/eb7d4eac27b5 Apply ipdl changes to MediaParent and pass back the key through the resolver. r=jib https://hg.mozilla.org/integration/autoland/rev/69b1d1c5e010 Use promises instead of pledges through out audio device enumeration code path. r=jib
Comment 20•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/79eec88b1315 https://hg.mozilla.org/mozilla-central/rev/5ad68af3960a https://hg.mozilla.org/mozilla-central/rev/eb7d4eac27b5 https://hg.mozilla.org/mozilla-central/rev/69b1d1c5e010
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Reporter | ||
Updated•6 years ago
|
Summary: Replace all uses of Pledge with MozPromise in MediaManager (cleanup) → Start replacing uses of Pledge with MozPromise in MediaManager (cleanup)
You need to log in
before you can comment on or make changes to this bug.
Description
•