Bug 1057585 - Disable WebAudio APIs in prerendering; r=jst

This commit is contained in:
Roshan Vidyashankar 2014-12-21 11:53:32 -05:00
parent 454ef9cfac
commit 3fc5328ed1
3 changed files with 6 additions and 6 deletions

View File

@ -20,10 +20,10 @@ interface AudioBufferSourceNode : AudioNode {
attribute double loopStart;
attribute double loopEnd;
[Throws]
[Throws, UnsafeInPrerendering]
void start(optional double when = 0, optional double grainOffset = 0,
optional double grainDuration);
[Throws]
[Throws, UnsafeInPrerendering]
void stop(optional double when = 0);
attribute EventHandler onended;

View File

@ -45,9 +45,9 @@ interface AudioContext : EventTarget {
StereoPannerNode createStereoPanner();
[NewObject]
AnalyserNode createAnalyser();
[NewObject, Throws]
[NewObject, Throws, UnsafeInPrerendering]
MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement);
[NewObject, Throws]
[NewObject, Throws, UnsafeInPrerendering]
MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream);
[NewObject]
GainNode createGain();

View File

@ -26,9 +26,9 @@ interface OscillatorNode : AudioNode {
readonly attribute AudioParam frequency; // in Hertz
readonly attribute AudioParam detune; // in Cents
[Throws]
[Throws, UnsafeInPrerendering]
void start(optional double when = 0);
[Throws]
[Throws, UnsafeInPrerendering]
void stop(optional double when = 0);
void setPeriodicWave(PeriodicWave periodicWave);