Closed
Bug 811369
Opened 13 years ago
Closed 13 years ago
Prevent AudioBuffer from double-dropping JS objects
Categories
(Core :: Web Audio, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
1.05 KB,
patch
|
bzbarsky
:
review-
|
Details | Diff | Splinter Review |
There is a scenario where AudioBuffer can double-drop its JS objects, if Unlink gets called first and then the destructor gets called. We need to protect against this.
Assignee | ||
Comment 1•13 years ago
|
||
Comment 2•13 years ago
|
||
This is a bit tricky because we only get the double-drop if it is Unlinked when it is preserved. If it is Unlinked when it isn't preserved, then we still need to drop in the destructor, so I think checking mContext isn't enough. :(
Comment 3•13 years ago
|
||
This is why I didn't comment on it when I noticed it, because we're probably affected by this in any wrapper cached class that has other JS pointers, and there's no good way to fix it in the class itself.
![]() |
||
Comment 4•13 years ago
|
||
Comment on attachment 681120 [details] [diff] [review]
Patch (v1)
Yeah, this isn't right on its own. :(
Attachment #681120 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 5•13 years ago
|
||
So, what needs to be done here? (Also, Boris, did you mean to r+ the patch?)
![]() |
||
Comment 6•13 years ago
|
||
Comment on attachment 681120 [details] [diff] [review]
Patch (v1)
Er, no. I did not.
What needs to be done depends on what happens in bug 811206.
Attachment #681120 -
Flags: review+ → review-
No longer depends on: 811206
Depends on: 811206
Comment 7•13 years ago
|
||
Double dropping should be okay now that bug 811206 has landed.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Assignee | ||
Comment 8•12 years ago
|
||
Mass moving Web Audio bugs to the Web Audio component. Filter on duckityduck.
Component: Video/Audio → Web Audio
You need to log in
before you can comment on or make changes to this bug.
Description
•