Closed Bug 1312321 Opened 9 years ago Closed 9 years ago

StateObject::SetState should be passed by value

Categories

(Core :: Audio/Video: Playback, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(2 files)

http://searchfox.org/mozilla-central/rev/84075be5067b68dc6cb3b89f999645650e68c05b/dom/media/MediaDecoderStateMachine.cpp#254 |aArgs| might reference data members which might be modified by Exit(). Using pass-by-value will save this horror and need no death grip.
Assignee: nobody → jwwang
Blocks: 1295892
Priority: -- → P1
Attachment #8803790 - Flags: review?(jacheng)
Attachment #8803791 - Flags: review?(jacheng)
Attachment #8803791 - Flags: review?(jacheng) → review+
Comment on attachment 8803790 [details] Bug 1312321. Part 1 - make StateObject::SetState pass-by-value. https://reviewboard.mozilla.org/r/87944/#review86994 LGTM
Attachment #8803790 - Flags: review?(jacheng) → review+
Thanks for the review!
Pushed by jwwang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b7fb1a72dd5c Part 1 - make StateObject::SetState pass-by-value. r=JamesCheng https://hg.mozilla.org/integration/autoland/rev/bf7df2a398a4 Part 2 - make SetState() protected again. r=JamesCheng
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: