Closed
Bug 888183
Opened 11 years ago
Closed 11 years ago
Web Audio mochitests fail - AudioContext is not defined
Categories
(Core :: Web Audio, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 885583
People
(Reporter: jwwang, Unassigned)
References
Details
(Whiteboard: [blocking-webaudio-])
Attachments
(3 files)
(deleted),
text/x-log
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
text/x-log
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 (Beta/Release)
Build ID: 20130329030832
Steps to reproduce:
run Web Audio mochitests on an emulator
(./test.sh mochitest --emulator arm --test-path content/media/webaudio/test/)
Actual results:
Some test cases fail with "uncaught exception - ReferenceError: AudioContext is not defined at http://mochi.test:8888/tests/content/media/webaudio/test/webaudio.js:155"
Reporter | ||
Updated•11 years ago
|
Reporter | ||
Comment 1•11 years ago
|
||
It looks like a timing issue in which it fails to create an AudioContext object immediately after calling SpecialPowers.setBoolPref("media.webaudio.enabled", true);. Adding some delay might help like:
SpecialPowers.setBoolPref("media.webaudio.enabled", true);
addLoadEvent(function() {
var ac = new AudioContext();
// ...
});
Reporter | ||
Comment 2•11 years ago
|
||
Attachment #768820 -
Flags: review?(ehsan)
Reporter | ||
Comment 3•11 years ago
|
||
Reporter | ||
Comment 4•11 years ago
|
||
It looks like the issue is gone because Web Audio is enabled by default in the recent revision. (SpecialPowers.clearUserPref("media.webaudio.enabled"); is removed.)
Reporter | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Updated•11 years ago
|
Attachment #768820 -
Flags: review?(ehsan)
Updated•11 years ago
|
Whiteboard: [blocking-webaudio-]
You need to log in
before you can comment on or make changes to this bug.
Description
•