Closed Bug 1767899 Opened 4 years ago Closed 3 years ago

Use EventTargetCapability to protect members in TrackBuffersManager

Categories

(Core :: Audio/Video: Playback, task, P3)

task

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: bryce, Assigned: bryce)

References

Details

Attachments

(2 files)

This follows on from bug 1767897. Assuming we have something like EventTargetAsserter, we can clarify and better enforce thread usage in TrackBuffersManager.

Bug 1724106 is a good example of why we'd want to do this. TrackBuffersManager is complicated and it would not hurt to have better documented threading expectations or further guard rails.

Summary: Use EventTargetAsserter to protect members in TrackBuffersManager → Use EventTargetCapability to protect members in TrackBuffersManager
Attachment #9275114 - Attachment description: WIP: Bug 1767899 - Guard some members that expect to be accessed on event target in TrackBuffersManager. → Bug 1767899 - Guard some members that expect to be accessed on event target in TrackBuffersManager.
Pushed by bvandyk@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9bd60f359de2 Guard some members that expect to be accessed on event target in TrackBuffersManager. r=media-playback-reviewers,alwu

Backed out changeset 9bd60f359de2 (Bug 1767899) for causing build bustages on EventTargetCapability.h.
Backout link
Push with failures
Failure Log

Flags: needinfo?(brycebugemail)

Looks like I'm missing an explicit keyword for some of the code that landed in bug 1767897 and is now being used. I'm currently inactive, so if anyone else wants to fix that up, feel free. Otherwise I'll hold NI in case I get time to fix this up.

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:bryce, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.

Flags: needinfo?(brycebugemail)
Flags: needinfo?(alwu)
Flags: needinfo?(alwu)
Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0dfc0a554224 Guard some members that expect to be accessed on event target in TrackBuffersManager. r=media-playback-reviewers,alwu https://hg.mozilla.org/integration/autoland/rev/ee981764696b add `explicit` on EventTargetCapability ctor to fix build error. r=media-playback-reviewers,padenot
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
Flags: needinfo?(brycebugemail)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: