Closed
Bug 1479841
Opened 7 years ago
Closed 7 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•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
| Assignee | ||
Comment 4•7 years ago
|
||
| Assignee | ||
Comment 5•7 years ago
|
||
| Assignee | ||
Comment 6•7 years ago
|
||
| Assignee | ||
Comment 7•7 years ago
|
||
| Reporter | ||
Comment 8•7 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•7 years ago
|
||
| Assignee | ||
Comment 10•7 years ago
|
||
| Assignee | ||
Comment 11•7 years ago
|
||
| Assignee | ||
Comment 12•7 years ago
|
||
| Assignee | ||
Comment 13•7 years ago
|
||
| Assignee | ||
Comment 14•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Attachment #9011022 -
Attachment is obsolete: true
| Assignee | ||
Updated•7 years ago
|
Attachment #9011021 -
Attachment is obsolete: true
| Assignee | ||
Updated•7 years ago
|
Attachment #9011020 -
Attachment is obsolete: true
| Assignee | ||
Updated•7 years ago
|
Attachment #9011019 -
Attachment is obsolete: true
| Reporter | ||
Comment 15•7 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•7 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•7 years ago
|
||
| Reporter | ||
Comment 18•7 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•7 years ago
|
Attachment #9011022 -
Attachment is obsolete: false
Updated•7 years ago
|
Attachment #9011021 -
Attachment is obsolete: false
Updated•7 years ago
|
Attachment #9011020 -
Attachment is obsolete: false
Updated•7 years ago
|
Attachment #9011019 -
Attachment is obsolete: false
| Assignee | ||
Updated•7 years ago
|
Attachment #9011019 -
Attachment is obsolete: true
| Assignee | ||
Updated•7 years ago
|
Attachment #9011020 -
Attachment is obsolete: true
| Assignee | ||
Updated•7 years ago
|
Attachment #9011021 -
Attachment is obsolete: true
| Assignee | ||
Updated•7 years ago
|
Attachment #9011022 -
Attachment is obsolete: true
Comment 19•7 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•7 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: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
| Reporter | ||
Updated•7 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
•