Bug 851603 - Enable Web Audio in Nightly; r=roc

--HG--
extra : rebase_source : b79d7f2cb0e6257eae2f65bd8637f718324b43f4
This commit is contained in:
Ehsan Akhgari 2013-03-16 01:35:22 -04:00
parent 5bc91d7db4
commit 19c480342c
2 changed files with 6 additions and 8 deletions

View File

@ -1221,3 +1221,9 @@ pref("dom.identity.enabled", false);
// Override the Gecko-default value of false for Firefox.
pref("plain_text.wrap_long_lines", true);
#ifndef RELEASE_BUILD
// Enable Web Audio for Firefox Desktop in Nightly and Aurora
pref("media.webaudio.enabled", true);
#endif

View File

@ -11,14 +11,6 @@
SimpleTest.waitForExplicitFinish();
addLoadEvent(function() {
ok(!window.AudioContext, "AudioContext should be hidden behind a pref");
var accessThrows = false;
try {
new AudioContext();
} catch (e) {
accessThrows = true;
}
ok(accessThrows, "AudioContext should be hidden behind a pref");
SpecialPowers.setBoolPref("media.webaudio.enabled", true);
var ac = new AudioContext();
ok(ac, "Create a AudioContext object");