mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 851603 - Enable Web Audio in Nightly; r=roc
--HG-- extra : rebase_source : b79d7f2cb0e6257eae2f65bd8637f718324b43f4
This commit is contained in:
parent
4724712dda
commit
1a949b69c5
@ -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
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user