Closed Bug 1107368 Opened 6 years ago Closed 4 years ago
Promise invariants to inhibit bad programming patterns
We've discussed some tweaks which are worth implementing, but aren't worth blocking the landing of bug 1097823. Specifically: * Having APIs return a non-addrefable temporary rather than an nsRefPtr<MediaPromise> * Adding the option to assert exclusivity (i.e. that there should only be at most one Then() invocation per promise). * Encouraging consumers to call SetMonitor (details TBD).
Comment on attachment 8552121 [details] [diff] [review] Part 1 - Implement exclusivity checking for MediaPromises. v1 Wrong bug, sorry.
Can we kick this bug out of media playback?
We have exclusivity checking now and the ship has probably sailed on return something non-addreffable. I think we can just WONTFIX it.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.