Closed
Bug 814789
Opened 12 years ago
Closed 12 years ago
Tie the life-time of the AudioContext to the life-time of the document owning it
Categories
(Core :: Web Audio, defect)
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
So we need to this because of two reasons.
1. The spec says so (!)
2. Otherwise, the shutdown code that I'm adding for shutting down the audio thread pool will depend on when the AudioContext object gets gc'ed, which in practice means a multi-second pause during shutdown.
Assignee | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
Comment on attachment 684818 [details] [diff] [review]
Patch (v1)
nsPIDOMWindow inherits from nsIDOMWindow, so in the constructor you can just make "window" be of type nsCOMPtr<nsPIDOMWindow> and not have the extra QI.
r=me with that.
Do we do something with pausing audio when we go into bfcache, btw?
Attachment #684818 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #2)
> Comment on attachment 684818 [details] [diff] [review]
> Patch (v1)
>
> nsPIDOMWindow inherits from nsIDOMWindow, so in the constructor you can just
> make "window" be of type nsCOMPtr<nsPIDOMWindow> and not have the extra QI.
>
> r=me with that.
Will do.
> Do we do something with pausing audio when we go into bfcache, btw?
Filed bug 815492.
Assignee | ||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
This is failing to compile on tbox because AudioContext.h is not actually exported to mozilla/dom ?
Comment 6•12 years ago
|
||
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #5)
> This is failing to compile on tbox because AudioContext.h is not actually
> exported to mozilla/dom ?
Hmm, yeah, it seems like I have that file in my objdir for some reason... Will push a fix shortly.
Assignee | ||
Comment 8•12 years ago
|
||
The reason is that I have added that in one of my other patches on this branch, of course...
Assignee | ||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Assignee | ||
Comment 11•11 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
•