mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1057585 - Disable WebAudio APIs in prerendering; r=jst
This commit is contained in:
parent
454ef9cfac
commit
3fc5328ed1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user