mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 05:21:24 +00:00
web-sys: Remove a bunch of mozilla extensions from our webidl
This commit is contained in:
@ -43,6 +43,3 @@ interface AnalyserNode : AudioNode {
|
||||
attribute double smoothingTimeConstant;
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
AnalyserNode implements AudioNodePassThrough;
|
||||
|
7
crates/web-sys/webidls/enabled/Attr.webidl
vendored
7
crates/web-sys/webidls/enabled/Attr.webidl
vendored
@ -24,10 +24,3 @@ interface Attr : Node {
|
||||
|
||||
readonly attribute boolean specified;
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
|
||||
partial interface Attr {
|
||||
[GetterThrows]
|
||||
readonly attribute Element? ownerElement;
|
||||
};
|
||||
|
@ -36,6 +36,3 @@ interface AudioBufferSourceNode : AudioScheduledSourceNode {
|
||||
void start(optional double when = 0, optional double grainOffset = 0,
|
||||
optional double grainDuration);
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
AudioBufferSourceNode implements AudioNodePassThrough;
|
||||
|
12
crates/web-sys/webidls/enabled/AudioNode.webidl
vendored
12
crates/web-sys/webidls/enabled/AudioNode.webidl
vendored
@ -62,15 +62,3 @@ interface AudioNode : EventTarget {
|
||||
attribute ChannelInterpretation channelInterpretation;
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
partial interface AudioNode {
|
||||
[ChromeOnly]
|
||||
readonly attribute unsigned long id;
|
||||
};
|
||||
[NoInterfaceObject]
|
||||
interface AudioNodePassThrough {
|
||||
[ChromeOnly]
|
||||
attribute boolean passThrough;
|
||||
};
|
||||
|
||||
|
10
crates/web-sys/webidls/enabled/AudioParam.webidl
vendored
10
crates/web-sys/webidls/enabled/AudioParam.webidl
vendored
@ -40,13 +40,3 @@ interface AudioParam {
|
||||
AudioParam cancelScheduledValues(double startTime);
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
partial interface AudioParam {
|
||||
// The ID of the AudioNode this AudioParam belongs to.
|
||||
[ChromeOnly]
|
||||
readonly attribute unsigned long parentNodeId;
|
||||
// The name of the AudioParam
|
||||
[ChromeOnly]
|
||||
readonly attribute DOMString name;
|
||||
};
|
||||
|
@ -44,7 +44,3 @@ interface BiquadFilterNode : AudioNode {
|
||||
Float32Array phaseResponse);
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
BiquadFilterNode implements AudioNodePassThrough;
|
||||
|
||||
|
@ -24,7 +24,3 @@ interface ConvolverNode : AudioNode {
|
||||
attribute boolean normalize;
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
ConvolverNode implements AudioNodePassThrough;
|
||||
|
||||
|
@ -22,7 +22,3 @@ interface DelayNode : AudioNode {
|
||||
readonly attribute AudioParam delayTime;
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
DelayNode implements AudioNodePassThrough;
|
||||
|
||||
|
@ -44,14 +44,3 @@ dictionary DeviceMotionEventInit : EventInit {
|
||||
DeviceRotationRateInit rotationRate;
|
||||
double? interval = null;
|
||||
};
|
||||
|
||||
// Mozilla extensions.
|
||||
partial interface DeviceMotionEvent {
|
||||
void initDeviceMotionEvent(DOMString type,
|
||||
optional boolean canBubble = false,
|
||||
optional boolean cancelable = false,
|
||||
optional DeviceAccelerationInit acceleration,
|
||||
optional DeviceAccelerationInit accelerationIncludingGravity,
|
||||
optional DeviceRotationRateInit rotationRate,
|
||||
optional double? interval = null);
|
||||
};
|
||||
|
@ -30,7 +30,3 @@ interface DynamicsCompressorNode : AudioNode {
|
||||
readonly attribute AudioParam release; // in Seconds
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
DynamicsCompressorNode implements AudioNodePassThrough;
|
||||
|
||||
|
@ -143,8 +143,6 @@ interface Element : Node {
|
||||
[ChromeOnly]
|
||||
void setCaptureAlways(optional boolean retargetToElement = false);
|
||||
|
||||
// Mozilla extensions
|
||||
|
||||
// Obsolete methods.
|
||||
Attr? getAttributeNode(DOMString name);
|
||||
[CEReactions, Throws]
|
||||
|
@ -39,27 +39,3 @@ interface EventTarget {
|
||||
[Throws, NeedsCallerType]
|
||||
boolean dispatchEvent(Event event);
|
||||
};
|
||||
|
||||
// Mozilla extensions for use by JS-implemented event targets to
|
||||
// implement on* properties.
|
||||
partial interface EventTarget {
|
||||
// The use of [TreatNonCallableAsNull] here is a bit of a hack: it just makes
|
||||
// the codegen check whether the type involved is either
|
||||
// [TreatNonCallableAsNull] or [TreatNonObjectAsNull] and if it is handle it
|
||||
// accordingly. In particular, it will NOT actually treat a non-null
|
||||
// non-callable object as null here.
|
||||
[ChromeOnly, Throws]
|
||||
void setEventHandler(DOMString type,
|
||||
[TreatNonCallableAsNull] EventHandler handler);
|
||||
|
||||
[ChromeOnly]
|
||||
EventHandler getEventHandler(DOMString type);
|
||||
};
|
||||
|
||||
// Mozilla extension to make firing events on event targets from
|
||||
// chrome easier. This returns the window which can be used to create
|
||||
// events to fire at this EventTarget, or null if there isn't one.
|
||||
partial interface EventTarget {
|
||||
[ChromeOnly, Exposed=(Window,System), BinaryName="ownerGlobalForBindings"]
|
||||
readonly attribute WindowProxy? ownerGlobal;
|
||||
};
|
||||
|
25
crates/web-sys/webidls/enabled/File.webidl
vendored
25
crates/web-sys/webidls/enabled/File.webidl
vendored
@ -29,28 +29,3 @@ dictionary ChromeFilePropertyBag : FilePropertyBag {
|
||||
DOMString name = "";
|
||||
boolean existenceCheck = true;
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
partial interface File {
|
||||
[BinaryName="relativePath", Func="mozilla::dom::DOMPrefs::WebkitBlinkDirectoryPickerEnabled"]
|
||||
readonly attribute USVString webkitRelativePath;
|
||||
|
||||
[GetterThrows, ChromeOnly, NeedsCallerType]
|
||||
readonly attribute DOMString mozFullPath;
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
// These 2 methods can be used only in these conditions:
|
||||
// - the main-thread
|
||||
// - parent process OR file process OR, only for testing, with pref
|
||||
// `dom.file.createInChild' set to true.
|
||||
[Exposed=(Window)]
|
||||
partial interface File {
|
||||
[ChromeOnly, Throws, NeedsCallerType]
|
||||
static Promise<File> createFromNsIFile(nsIFile file,
|
||||
optional ChromeFilePropertyBag options);
|
||||
|
||||
[ChromeOnly, Throws, NeedsCallerType]
|
||||
static Promise<File> createFromFileName(USVString fileName,
|
||||
optional ChromeFilePropertyBag options);
|
||||
};
|
||||
|
@ -21,7 +21,3 @@ interface GainNode : AudioNode {
|
||||
readonly attribute AudioParam gain;
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
GainNode implements AudioNodePassThrough;
|
||||
|
||||
|
@ -68,16 +68,6 @@ partial interface HTMLImageElement {
|
||||
readonly attribute DOMString currentSrc;
|
||||
};
|
||||
|
||||
// Mozilla extensions.
|
||||
partial interface HTMLImageElement {
|
||||
[CEReactions, SetterThrows]
|
||||
attribute DOMString lowsrc;
|
||||
|
||||
// These attributes are offsets from the closest view (to mimic
|
||||
// NS4's "offset-from-layer" behavior).
|
||||
readonly attribute long x;
|
||||
readonly attribute long y;
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface MozImageLoadingContent {
|
||||
|
@ -147,52 +147,6 @@ partial interface HTMLInputElement {
|
||||
attribute DOMString useMap;
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
|
||||
partial interface HTMLInputElement {
|
||||
[GetterThrows, ChromeOnly]
|
||||
readonly attribute XULControllers controllers;
|
||||
// Binaryname because we have a FragmentOrElement function named "TextLength()".
|
||||
[NeedsCallerType, BinaryName="inputTextLength"]
|
||||
readonly attribute long textLength;
|
||||
|
||||
[Throws, ChromeOnly]
|
||||
sequence<DOMString> mozGetFileNameArray();
|
||||
|
||||
[ChromeOnly, Throws]
|
||||
void mozSetFileNameArray(sequence<DOMString> fileNames);
|
||||
|
||||
[ChromeOnly]
|
||||
void mozSetFileArray(sequence<File> files);
|
||||
|
||||
// This method is meant to use for testing only.
|
||||
[ChromeOnly, Throws]
|
||||
void mozSetDirectory(DOMString directoryPath);
|
||||
|
||||
// This method is meant to use for testing only.
|
||||
[ChromeOnly]
|
||||
void mozSetDndFilesAndDirectories(sequence<(File or Directory)> list);
|
||||
|
||||
// Number controls (<input type=number>) have an anonymous text control
|
||||
// (<input type=text>) in the anonymous shadow tree that they contain. On
|
||||
// such an anonymous text control this property provides access to the
|
||||
// number control that owns the text control. This is useful, for example,
|
||||
// in code that looks at the currently focused element to make decisions
|
||||
// about which IME to bring up. Such code needs to be able to check for any
|
||||
// owning number control since it probably wants to bring up a number pad
|
||||
// instead of the standard keyboard, even when the anonymous text control has
|
||||
// focus.
|
||||
[ChromeOnly]
|
||||
readonly attribute HTMLInputElement? ownerNumberControl;
|
||||
|
||||
boolean mozIsTextField(boolean aExcludePassword);
|
||||
|
||||
[ChromeOnly]
|
||||
// This function will return null if @autocomplete is not defined for the
|
||||
// current @type
|
||||
AutocompleteInfo? getAutocompleteInfo();
|
||||
};
|
||||
|
||||
HTMLInputElement implements MozEditableElement;
|
||||
|
||||
/*Non standard
|
||||
|
@ -81,16 +81,4 @@ interface HTMLTextAreaElement : HTMLElement {
|
||||
void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
||||
};
|
||||
|
||||
partial interface HTMLTextAreaElement {
|
||||
// Chrome-only Mozilla extensions
|
||||
|
||||
[Throws, ChromeOnly]
|
||||
readonly attribute XULControllers controllers;
|
||||
};
|
||||
|
||||
HTMLTextAreaElement implements MozEditableElement;
|
||||
|
||||
partial interface HTMLTextAreaElement {
|
||||
[ChromeOnly]
|
||||
attribute DOMString previewValue;
|
||||
};
|
||||
|
@ -19,6 +19,3 @@ Constructor(BaseAudioContext context, IIRFilterOptions options)]
|
||||
interface IIRFilterNode : AudioNode {
|
||||
void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse);
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
IIRFilterNode implements AudioNodePassThrough;
|
||||
|
@ -66,6 +66,3 @@ dictionary KeyboardEventInit : EventModifierInit
|
||||
unsigned long keyCode = 0;
|
||||
unsigned long which = 0;
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
KeyboardEvent implements KeyEvent;
|
||||
|
@ -19,7 +19,3 @@ dictionary MediaElementAudioSourceOptions {
|
||||
interface MediaElementAudioSourceNode : AudioNode {
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
MediaElementAudioSourceNode implements AudioNodePassThrough;
|
||||
|
||||
|
@ -19,7 +19,3 @@ dictionary MediaStreamAudioSourceOptions {
|
||||
interface MediaStreamAudioSourceNode : AudioNode {
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
MediaStreamAudioSourceNode implements AudioNodePassThrough;
|
||||
|
||||
|
40
crates/web-sys/webidls/enabled/MouseEvent.webidl
vendored
40
crates/web-sys/webidls/enabled/MouseEvent.webidl
vendored
@ -73,43 +73,3 @@ dictionary MouseEventInit : EventModifierInit {
|
||||
long movementX = 0;
|
||||
long movementY = 0;
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
partial interface MouseEvent
|
||||
{
|
||||
// Finger or touch pressure event value
|
||||
// ranges between 0.0 and 1.0
|
||||
readonly attribute float mozPressure;
|
||||
|
||||
const unsigned short MOZ_SOURCE_UNKNOWN = 0;
|
||||
const unsigned short MOZ_SOURCE_MOUSE = 1;
|
||||
const unsigned short MOZ_SOURCE_PEN = 2;
|
||||
const unsigned short MOZ_SOURCE_ERASER = 3;
|
||||
const unsigned short MOZ_SOURCE_CURSOR = 4;
|
||||
const unsigned short MOZ_SOURCE_TOUCH = 5;
|
||||
const unsigned short MOZ_SOURCE_KEYBOARD = 6;
|
||||
|
||||
readonly attribute unsigned short mozInputSource;
|
||||
|
||||
void initNSMouseEvent(DOMString typeArg,
|
||||
optional boolean canBubbleArg = false,
|
||||
optional boolean cancelableArg = false,
|
||||
optional Window? viewArg = null,
|
||||
optional long detailArg = 0,
|
||||
optional long screenXArg = 0,
|
||||
optional long screenYArg = 0,
|
||||
optional long clientXArg = 0,
|
||||
optional long clientYArg = 0,
|
||||
optional boolean ctrlKeyArg = false,
|
||||
optional boolean altKeyArg = false,
|
||||
optional boolean shiftKeyArg = false,
|
||||
optional boolean metaKeyArg = false,
|
||||
optional short buttonArg = 0,
|
||||
optional EventTarget? relatedTargetArg = null,
|
||||
optional float pressure = 0,
|
||||
optional unsigned short inputSourceArg = 0);
|
||||
[ChromeOnly]
|
||||
readonly attribute boolean hitCluster; // True when touch occurs in a cluster of links
|
||||
|
||||
};
|
||||
|
||||
|
@ -60,64 +60,3 @@ interface OfflineResourceList : EventTarget {
|
||||
[UseCounter]
|
||||
attribute EventHandler onobsolete;
|
||||
};
|
||||
|
||||
// Mozilla extensions.
|
||||
partial interface OfflineResourceList {
|
||||
/**
|
||||
* Get the list of dynamically-managed entries.
|
||||
*/
|
||||
[Throws]
|
||||
readonly attribute DOMStringList mozItems;
|
||||
|
||||
/**
|
||||
* Check that an entry exists in the list of dynamically-managed entries.
|
||||
*
|
||||
* @param uri
|
||||
* The resource to check.
|
||||
*/
|
||||
[Throws]
|
||||
boolean mozHasItem(DOMString uri);
|
||||
|
||||
/**
|
||||
* Get the number of dynamically-managed entries.
|
||||
* @status DEPRECATED
|
||||
* Clients should use the "items" attribute.
|
||||
*/
|
||||
[Throws]
|
||||
readonly attribute unsigned long mozLength;
|
||||
|
||||
/**
|
||||
* Get the URI of a dynamically-managed entry.
|
||||
* @status DEPRECATED
|
||||
* Clients should use the "items" attribute.
|
||||
*/
|
||||
[Throws]
|
||||
getter DOMString mozItem(unsigned long index);
|
||||
|
||||
/**
|
||||
* We need a "length" to actually be valid Web IDL, given that we have an
|
||||
* indexed getter.
|
||||
*/
|
||||
readonly attribute unsigned long length;
|
||||
|
||||
/**
|
||||
* Add an item to the list of dynamically-managed entries. The resource
|
||||
* will be fetched into the application cache.
|
||||
*
|
||||
* @param uri
|
||||
* The resource to add.
|
||||
*/
|
||||
[Throws]
|
||||
void mozAdd(DOMString uri);
|
||||
|
||||
/**
|
||||
* Remove an item from the list of dynamically-managed entries. If this
|
||||
* was the last reference to a URI in the application cache, the cache
|
||||
* entry will be removed.
|
||||
*
|
||||
* @param uri
|
||||
* The resource to remove.
|
||||
*/
|
||||
[Throws]
|
||||
void mozRemove(DOMString uri);
|
||||
};
|
||||
|
@ -37,6 +37,3 @@ interface OscillatorNode : AudioScheduledSourceNode {
|
||||
|
||||
void setPeriodicWave(PeriodicWave periodicWave);
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
OscillatorNode implements AudioNodePassThrough;
|
||||
|
@ -73,7 +73,3 @@ interface PannerNode : AudioNode {
|
||||
attribute double coneOuterGain;
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
PannerNode implements AudioNodePassThrough;
|
||||
|
||||
|
@ -39,11 +39,3 @@ interface RTCDataChannel : EventTarget
|
||||
[Throws]
|
||||
void send(ArrayBufferView data);
|
||||
};
|
||||
|
||||
// Mozilla extensions.
|
||||
partial interface RTCDataChannel
|
||||
{
|
||||
readonly attribute DOMString protocol;
|
||||
readonly attribute boolean ordered;
|
||||
readonly attribute unsigned short id;
|
||||
};
|
||||
|
@ -18,7 +18,3 @@ interface ScriptProcessorNode : AudioNode {
|
||||
readonly attribute long bufferSize;
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
ScriptProcessorNode implements AudioNodePassThrough;
|
||||
|
||||
|
@ -19,7 +19,3 @@ dictionary StereoPannerOptions : AudioNodeOptions {
|
||||
interface StereoPannerNode : AudioNode {
|
||||
readonly attribute AudioParam pan;
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
StereoPannerNode implements AudioNodePassThrough;
|
||||
|
||||
|
@ -40,9 +40,3 @@ interface TextTrack : EventTarget {
|
||||
|
||||
attribute EventHandler oncuechange;
|
||||
};
|
||||
|
||||
// Mozilla Extensions
|
||||
partial interface TextTrack {
|
||||
[ChromeOnly]
|
||||
readonly attribute TextTrackList? textTrackList;
|
||||
};
|
||||
|
@ -16,9 +16,3 @@ interface TextTrackList : EventTarget {
|
||||
attribute EventHandler onaddtrack;
|
||||
attribute EventHandler onremovetrack;
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
partial interface TextTrackList {
|
||||
[ChromeOnly]
|
||||
readonly attribute HTMLMediaElement? mediaElement;
|
||||
};
|
||||
|
16
crates/web-sys/webidls/enabled/VTTCue.webidl
vendored
16
crates/web-sys/webidls/enabled/VTTCue.webidl
vendored
@ -55,19 +55,3 @@ interface VTTCue : TextTrackCue {
|
||||
attribute DOMString text;
|
||||
DocumentFragment getCueAsHTML();
|
||||
};
|
||||
|
||||
// Mozilla extensions.
|
||||
partial interface VTTCue {
|
||||
[ChromeOnly]
|
||||
attribute HTMLDivElement? displayState;
|
||||
[ChromeOnly]
|
||||
readonly attribute boolean hasBeenReset;
|
||||
[ChromeOnly]
|
||||
readonly attribute double computedLine;
|
||||
[ChromeOnly]
|
||||
readonly attribute double computedPosition;
|
||||
[ChromeOnly]
|
||||
readonly attribute PositionAlignSetting computedPositionAlign;
|
||||
[ChromeOnly]
|
||||
readonly attribute boolean getActive;
|
||||
};
|
||||
|
@ -30,7 +30,3 @@ interface WaveShaperNode : AudioNode {
|
||||
attribute OverSampleType oversample;
|
||||
|
||||
};
|
||||
|
||||
// Mozilla extension
|
||||
WaveShaperNode implements AudioNodePassThrough;
|
||||
|
||||
|
8
crates/web-sys/webidls/enabled/Window.webidl
vendored
8
crates/web-sys/webidls/enabled/Window.webidl
vendored
@ -243,14 +243,6 @@ partial interface Window {
|
||||
};
|
||||
//#endif
|
||||
|
||||
//#ifdef HAVE_SIDEBAR
|
||||
// Mozilla extension
|
||||
partial interface Window {
|
||||
[Replaceable, Throws, UseCounter]
|
||||
readonly attribute (External or WindowProxy) sidebar;
|
||||
};
|
||||
//#endif
|
||||
|
||||
callback PromiseDocumentFlushedCallback = any ();
|
||||
|
||||
partial interface Window {
|
||||
|
@ -65,18 +65,3 @@ partial interface WindowOrWorkerGlobalScope {
|
||||
[Throws, Func="mozilla::dom::DOMPrefs::DOMCachesEnabled", SameObject]
|
||||
readonly attribute CacheStorage caches;
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
partial interface WindowOrWorkerGlobalScope {
|
||||
// Extensions to ImageBitmap bits.
|
||||
// Bug 1141979 - [FoxEye] Extend ImageBitmap with interfaces to access its
|
||||
// underlying image data
|
||||
//
|
||||
// Note:
|
||||
// Overloaded functions cannot have different "extended attributes",
|
||||
// so I cannot add preference on the extended version of createImageBitmap().
|
||||
// To work around, I will then check the preference at run time and throw if
|
||||
// the preference is set to be false.
|
||||
[Throws]
|
||||
Promise<ImageBitmap> createImageBitmap(ImageBitmapSource aImage, long aOffset, long aLength, ImageBitmapFormat aFormat, ImagePixelLayout aLayout);
|
||||
};
|
||||
|
@ -34,16 +34,3 @@ WorkerGlobalScope implements WindowOrWorkerGlobalScope;
|
||||
|
||||
// Not implemented yet: bug 1072107.
|
||||
// WorkerGlobalScope implements FontFaceSource;
|
||||
|
||||
// Mozilla extensions
|
||||
partial interface WorkerGlobalScope {
|
||||
|
||||
void dump(optional DOMString str);
|
||||
|
||||
// XXXbz no spec for this yet, because the webperf WG is a bit dysfunctional
|
||||
[Constant, Cached]
|
||||
readonly attribute Performance performance;
|
||||
|
||||
[Func="WorkerGlobalScope::IsInAutomation", Throws]
|
||||
object getJSTestingFunctions();
|
||||
};
|
||||
|
@ -10,8 +10,3 @@
|
||||
[Exposed=Worklet]
|
||||
interface WorkletGlobalScope {
|
||||
};
|
||||
|
||||
// Mozilla extensions
|
||||
partial interface WorkletGlobalScope {
|
||||
void dump(optional DOMString str);
|
||||
};
|
||||
|
Reference in New Issue
Block a user