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

This commit is contained in:
Roshan Vidyashankar 2014-12-21 11:53:32 -05:00
Родитель 454ef9cfac
Коммит 3fc5328ed1
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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();

Просмотреть файл

@ -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);