mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 851603 - Enable Web Audio in Nightly; r=roc
--HG-- extra : rebase_source : b79d7f2cb0e6257eae2f65bd8637f718324b43f4
This commit is contained in:
parent
5bc91d7db4
commit
19c480342c
@ -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…
Reference in New Issue
Block a user