LibWeb: Use 'FIXME' extended attribute where possible

This improves the debuggability of many live web pages :^)
This commit is contained in:
Shannon Booth 2024-05-19 22:15:54 +12:00 committed by Andreas Kling
commit 4fe0cbcf85
Notes: sideshowbarker 2024-07-17 18:06:52 +09:00
55 changed files with 184 additions and 187 deletions

View file

@ -13,10 +13,10 @@ interface AudioContext : BaseAudioContext {
Promise<undefined> resume ();
Promise<undefined> suspend ();
Promise<undefined> close ();
// FIXME: MediaElementAudioSourceNode createMediaElementSource (HTMLMediaElement mediaElement);
// FIXME: MediaStreamAudioSourceNode createMediaStreamSource (MediaStream mediaStream);
// FIXME: MediaStreamTrackAudioSourceNode createMediaStreamTrackSource (MediaStreamTrack mediaStreamTrack);
// FIXME: MediaStreamAudioDestinationNode createMediaStreamDestination ();
[FIXME] MediaElementAudioSourceNode createMediaElementSource (HTMLMediaElement mediaElement);
[FIXME] MediaStreamAudioSourceNode createMediaStreamSource (MediaStream mediaStream);
[FIXME] MediaStreamTrackAudioSourceNode createMediaStreamTrackSource (MediaStreamTrack mediaStreamTrack);
[FIXME] MediaStreamAudioDestinationNode createMediaStreamDestination ();
};
dictionary AudioContextOptions {

View file

@ -38,8 +38,8 @@ interface AudioNode : EventTarget {
undefined disconnect(AudioParam destinationParam);
undefined disconnect(AudioParam destinationParam, unsigned long output);
readonly attribute BaseAudioContext context;
// FIXME: readonly attribute unsigned long numberOfInputs;
// FIXME: readonly attribute unsigned long numberOfOutputs;
[FIXME] readonly attribute unsigned long numberOfInputs;
[FIXME] readonly attribute unsigned long numberOfOutputs;
// FIXME: attribute unsigned long channelCount;
// FIXME: attribute ChannelCountMode channelCountMode;
// FIXME: attribute ChannelInterpretation channelInterpretation;

View file

@ -16,30 +16,30 @@ interface BaseAudioContext : EventTarget {
// FIXME: readonly attribute AudioDestinationNode destination;
readonly attribute float sampleRate;
readonly attribute double currentTime;
// FIXME: readonly attribute AudioListener listener;
[FIXME] readonly attribute AudioListener listener;
readonly attribute AudioContextState state;
// FIXME: [SameObject, SecureContext]
// readonly attribute AudioWorklet audioWorklet;
[FIXME] readonly attribute AudioWorklet audioWorklet;
attribute EventHandler onstatechange;
// FIXME: AnalyserNode createAnalyser ();
// FIXME: BiquadFilterNode createBiquadFilter ();
// FIXME: AudioBuffer createBuffer (unsigned long numberOfChannels, unsigned long length, float sampleRate);
// FIXME: AudioBufferSourceNode createBufferSource ();
// FIXME: ChannelMergerNode createChannelMerger (optional unsigned long numberOfInputs = 6);
// FIXME: ChannelSplitterNode createChannelSplitter (optional unsigned long numberOfOutputs = 6);
// FIXME: ConstantSourceNode createConstantSource ();
// FIXME: ConvolverNode createConvolver ();
// FIXME: DelayNode createDelay (optional double maxDelayTime = 1.0);
[FIXME] AnalyserNode createAnalyser ();
[FIXME] BiquadFilterNode createBiquadFilter ();
[FIXME] AudioBuffer createBuffer (unsigned long numberOfChannels, unsigned long length, float sampleRate);
[FIXME] AudioBufferSourceNode createBufferSource ();
[FIXME] ChannelMergerNode createChannelMerger (optional unsigned long numberOfInputs = 6);
[FIXME] ChannelSplitterNode createChannelSplitter (optional unsigned long numberOfOutputs = 6);
[FIXME] ConstantSourceNode createConstantSource ();
[FIXME] ConvolverNode createConvolver ();
[FIXME] DelayNode createDelay (optional double maxDelayTime = 1.0);
DynamicsCompressorNode createDynamicsCompressor();
// FIXME: GainNode createGain ();
// FIXME: IIRFilterNode createIIRFilter (sequence<double> feedforward, sequence<double> feedback);
[FIXME] GainNode createGain ();
[FIXME] IIRFilterNode createIIRFilter (sequence<double> feedforward, sequence<double> feedback);
OscillatorNode createOscillator();
// FIXME: PannerNode createPanner ();
// FIXME: PeriodicWave createPeriodicWave (sequence<float> real, sequence<float> imag, optional PeriodicWaveConstraints constraints = {});
// FIXME: ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0, optional unsigned long numberOfInputChannels = 2, optional unsigned long numberOfOutputChannels = 2);
// FIXME: StereoPannerNode createStereoPanner ();
// FIXME: WaveShaperNode createWaveShaper ();
[FIXME] PannerNode createPanner ();
[FIXME] PeriodicWave createPeriodicWave (sequence<float> real, sequence<float> imag, optional PeriodicWaveConstraints constraints = {});
[FIXME] ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0, optional unsigned long numberOfInputChannels = 2, optional unsigned long numberOfOutputChannels = 2);
[FIXME] StereoPannerNode createStereoPanner ();
[FIXME] WaveShaperNode createWaveShaper ();
// FIXME: Promise<AudioBuffer> decodeAudioData (ArrayBuffer audioData, optional DecodeSuccessCallback? successCallback, optional DecodeErrorCallback? errorCallback);
[FIXME] Promise<AudioBuffer> decodeAudioData (ArrayBuffer audioData, optional DecodeSuccessCallback? successCallback, optional DecodeErrorCallback? errorCallback);
};

View file

@ -24,6 +24,6 @@ interface OscillatorNode : AudioScheduledSourceNode {
constructor(BaseAudioContext context, optional OscillatorOptions options = {});
attribute OscillatorType type;
readonly attribute AudioParam frequency;
// FIXME: readonly attribute AudioParam detune;
// FIXME: undefined setPeriodicWave(PeriodicWave periodicWave);
[FIXME] readonly attribute AudioParam detune;
[FIXME] undefined setPeriodicWave(PeriodicWave periodicWave);
};