Closed Bug 888183 Opened 11 years ago Closed 11 years ago

Web Audio mochitests fail - AudioContext is not defined

Categories

(Core :: Web Audio, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 885583

People

(Reporter: jwwang, Unassigned)

References

Details

(Whiteboard: [blocking-webaudio-])

Attachments

(3 files)

Attached file mochitest_fail.log (deleted) —
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"
Blocks: 886168
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
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(); // ... });
Attachment #768820 - Flags: review?(ehsan)
Attached file Success log with the patch. (deleted) —
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.)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Yeah, I did that in bug 885583.
Resolution: WONTFIX → DUPLICATE
Attachment #768820 - Flags: review?(ehsan)
Whiteboard: [blocking-webaudio-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: