diff --git a/crates/web-sys/webidls/enabled/BoxObject.webidl b/crates/web-sys/webidls/enabled/BoxObject.webidl deleted file mode 100644 index 8bebd6c9e..000000000 --- a/crates/web-sys/webidls/enabled/BoxObject.webidl +++ /dev/null @@ -1,33 +0,0 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -[Func="IsChromeOrXBL"] -interface BoxObject { - readonly attribute Element? element; - - readonly attribute long x; - readonly attribute long y; - [Throws] - readonly attribute long screenX; - [Throws] - readonly attribute long screenY; - readonly attribute long width; - readonly attribute long height; - - nsISupports? getPropertyAsSupports(DOMString propertyName); - void setPropertyAsSupports(DOMString propertyName, nsISupports value); - [Throws] - DOMString? getProperty(DOMString propertyName); - void setProperty(DOMString propertyName, DOMString propertyValue); - void removeProperty(DOMString propertyName); - - // for stepping through content in the expanded dom with box-ordinal-group order - readonly attribute Element? parentBox; - readonly attribute Element? firstChild; - readonly attribute Element? lastChild; - readonly attribute Element? nextSibling; - readonly attribute Element? previousSibling; -}; diff --git a/crates/web-sys/webidls/enabled/CanvasRenderingContext2D.webidl b/crates/web-sys/webidls/enabled/CanvasRenderingContext2D.webidl index 13f61d4fe..7348f215d 100644 --- a/crates/web-sys/webidls/enabled/CanvasRenderingContext2D.webidl +++ b/crates/web-sys/webidls/enabled/CanvasRenderingContext2D.webidl @@ -40,21 +40,6 @@ interface CanvasRenderingContext2D { // associated with a canvas. readonly attribute HTMLCanvasElement? canvas; - // Mozilla-specific stuff - // FIXME Bug 768048 mozCurrentTransform/mozCurrentTransformInverse should return a WebIDL array. - [Throws] - attribute object mozCurrentTransform; // [ m11, m12, m21, m22, dx, dy ], i.e. row major - [Throws] - attribute object mozCurrentTransformInverse; - - [SetterThrows] - attribute DOMString mozTextStyle; - - // image smoothing mode -- if disabled, images won't be smoothed - // if scaled. - [Deprecated="PrefixedImageSmoothingEnabled"] - attribute boolean mozImageSmoothingEnabled; - // Show the caret if appropriate when drawing [Func="CanvasUtils::HasDrawWindowPrivilege"] const unsigned long DRAWWINDOW_DRAW_CARET = 0x01; @@ -140,7 +125,6 @@ CanvasRenderingContext2D implements CanvasTextDrawingStyles; CanvasRenderingContext2D implements CanvasPathMethods; CanvasRenderingContext2D implements CanvasHitRegions; - [NoInterfaceObject] interface CanvasState { // state diff --git a/crates/web-sys/webidls/enabled/ChromeNodeList.webidl b/crates/web-sys/webidls/enabled/ChromeNodeList.webidl deleted file mode 100644 index 3f062f2a3..000000000 --- a/crates/web-sys/webidls/enabled/ChromeNodeList.webidl +++ /dev/null @@ -1,13 +0,0 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -[Constructor, Func="IsChromeOrXBL"] -interface ChromeNodeList : NodeList { - [Throws] - void append(Node aNode); - [Throws] - void remove(Node aNode); -}; diff --git a/crates/web-sys/webidls/enabled/CommandEvent.webidl b/crates/web-sys/webidls/enabled/CommandEvent.webidl deleted file mode 100644 index 0ce0a4e0f..000000000 --- a/crates/web-sys/webidls/enabled/CommandEvent.webidl +++ /dev/null @@ -1,10 +0,0 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -[Func="IsChromeOrXBL"] -interface CommandEvent : Event { - readonly attribute DOMString? command; -}; diff --git a/crates/web-sys/webidls/enabled/DOMParser.webidl b/crates/web-sys/webidls/enabled/DOMParser.webidl index 9340acab3..61c55a0ff 100644 --- a/crates/web-sys/webidls/enabled/DOMParser.webidl +++ b/crates/web-sys/webidls/enabled/DOMParser.webidl @@ -19,23 +19,13 @@ enum SupportedType { "image/svg+xml" }; -// the latter is Mozilla-specific [Constructor] interface DOMParser { [NewObject, Throws] Document parseFromString(DOMString str, SupportedType type); - // Mozilla-specific stuff - [NewObject, Throws, ChromeOnly] - Document parseFromBuffer(sequence buf, SupportedType type); - [NewObject, Throws, ChromeOnly] - Document parseFromBuffer(Uint8Array buf, SupportedType type); - [NewObject, Throws, ChromeOnly] - Document parseFromStream(InputStream stream, DOMString? charset, - long contentLength, SupportedType type); // Can be used to allow a DOMParser to parse XUL/XBL no matter what // principal it's using for the document. [ChromeOnly] void forceEnableXULXBL(); }; - diff --git a/crates/web-sys/webidls/enabled/DataTransfer.webidl b/crates/web-sys/webidls/enabled/DataTransfer.webidl index 0fbec23ad..903f916b5 100644 --- a/crates/web-sys/webidls/enabled/DataTransfer.webidl +++ b/crates/web-sys/webidls/enabled/DataTransfer.webidl @@ -37,142 +37,3 @@ partial interface DataTransfer { [Throws, Pref="dom.input.dirpicker", NeedsSubjectPrincipal] Promise> getFiles(optional boolean recursiveFlag = false); }; - -// Mozilla specific stuff -partial interface DataTransfer { - /* - * Set the drag source. Usually you would not change this, but it will - * affect which node the drag and dragend events are fired at. The - * default target is the node that was dragged. - * - * @param element drag source to use - * @throws NO_MODIFICATION_ALLOWED_ERR if the item cannot be modified - */ - [Throws, UseCounter] - void addElement(Element element); - - /** - * The number of items being dragged. - */ - [UseCounter] - readonly attribute unsigned long mozItemCount; - - /** - * Sets the drag cursor state. Primarily used to control the cursor during - * tab drags, but could be expanded to other uses. XXX Currently implemented - * on Win32 only. - * - * Possible values: - * auto - use default system behavior. - * default - set the cursor to an arrow during the drag operation. - * - * Values other than 'default' are indentical to setting mozCursor to - * 'auto'. - */ - [UseCounter] - attribute DOMString mozCursor; - - /** - * Holds a list of the format types of the data that is stored for an item - * at the specified index. If the index is not in the range from 0 to - * itemCount - 1, an empty string list is returned. - */ - [Throws, NeedsCallerType, UseCounter] - DOMStringList mozTypesAt(unsigned long index); - - /** - * Remove the data associated with the given format for an item at the - * specified index. The index is in the range from zero to itemCount - 1. - * - * If the last format for the item is removed, the entire item is removed, - * reducing the itemCount by one. - * - * If format is empty, then the data associated with all formats is removed. - * If the format is not found, then this method has no effect. - * - * @param format the format to remove - * @throws NS_ERROR_DOM_INDEX_SIZE_ERR if index is greater or equal than itemCount - * @throws NO_MODIFICATION_ALLOWED_ERR if the item cannot be modified - */ - [Throws, NeedsSubjectPrincipal, UseCounter] - void mozClearDataAt(DOMString format, unsigned long index); - - /* - * A data transfer may store multiple items, each at a given zero-based - * index. setDataAt may only be called with an index argument less than - * itemCount in which case an existing item is modified, or equal to - * itemCount in which case a new item is added, and the itemCount is - * incremented by one. - * - * Data should be added in order of preference, with the most specific - * format added first and the least specific format added last. If data of - * the given format already exists, it is replaced in the same position as - * the old data. - * - * The data should be either a string, a primitive boolean or number type - * (which will be converted into a string) or an nsISupports. - * - * @param format the format to add - * @param data the data to add - * @throws NS_ERROR_NULL_POINTER if the data is null - * @throws NS_ERROR_DOM_INDEX_SIZE_ERR if index is greater than itemCount - * @throws NO_MODIFICATION_ALLOWED_ERR if the item cannot be modified - */ - [Throws, NeedsSubjectPrincipal, UseCounter] - void mozSetDataAt(DOMString format, any data, unsigned long index); - - /** - * Retrieve the data associated with the given format for an item at the - * specified index, or null if it does not exist. The index should be in the - * range from zero to itemCount - 1. - * - * @param format the format of the data to look up - * @returns the data of the given format, or null if it doesn't exist. - * @throws NS_ERROR_DOM_INDEX_SIZE_ERR if index is greater or equal than itemCount - */ - [Throws, NeedsSubjectPrincipal, UseCounter] - any mozGetDataAt(DOMString format, unsigned long index); - - /** - * Update the drag image. Arguments are the same as setDragImage. This is only - * valid within the parent chrome process. - */ - [ChromeOnly] - void updateDragImage(Element image, long x, long y); - - /** - * Will be true when the user has cancelled the drag (typically by pressing - * Escape) and when the drag has been cancelled unexpectedly. This will be - * false otherwise, including when the drop has been rejected by its target. - * This property is only relevant for the dragend event. - */ - [UseCounter] - readonly attribute boolean mozUserCancelled; - - /** - * The node that the mouse was pressed over to begin the drag. For external - * drags, or if the caller cannot access this node, this will be null. - */ - [UseCounter] - readonly attribute Node? mozSourceNode; - - /** - * The URI spec of the triggering principal. This may be different than - * sourceNode's principal when sourceNode is xul:browser and the drag is - * triggered in a browsing context inside it. - */ - [ChromeOnly] - readonly attribute DOMString mozTriggeringPrincipalURISpec; - - /** - * Copy the given DataTransfer for the given event. Used by testing code for - * creating emulated Drag and Drop events in the UI. - * - * NOTE: Don't expose a DataTransfer produced with this method to the web or - * use this for non-testing purposes. It can easily be used to get the - * DataTransfer into an invalid state, and is an unstable implementation - * detail of EventUtils.synthesizeDrag. - */ - [Throws, ChromeOnly] - DataTransfer mozCloneForEvent(DOMString event); -}; diff --git a/crates/web-sys/webidls/enabled/Document.webidl b/crates/web-sys/webidls/enabled/Document.webidl index 5266c3dff..124d8b324 100644 --- a/crates/web-sys/webidls/enabled/Document.webidl +++ b/crates/web-sys/webidls/enabled/Document.webidl @@ -185,13 +185,6 @@ partial interface Document { [Pref="dom.select_events.enabled"] attribute EventHandler onselectionchange; - /** - * True if this document is synthetic : stand alone image, video, audio file, - * etc. - */ -/*Non standard - [Func="IsChromeOrXBL"] readonly attribute boolean mozSyntheticDocument; -*/ /** * Returns the script element whose script is currently being processed. * @@ -361,85 +354,6 @@ partial interface Document { readonly attribute SVGSVGElement? rootElement; }; -// Mozilla extensions of various sorts -partial interface Document { - // XBL support. Wish we could make these [ChromeOnly], but - // that would likely break bindings running with the page principal. -/*Non standard - [Func="IsChromeOrXBL"] - NodeList? getAnonymousNodes(Element elt); - [Func="IsChromeOrXBL"] - Element? getAnonymousElementByAttribute(Element elt, DOMString attrName, - DOMString attrValue); - [Func="IsChromeOrXBL"] - Element? getBindingParent(Node node); - [Throws, Func="IsChromeOrXBL", NeedsSubjectPrincipal] - void loadBindingDocument(DOMString documentURL); -*/ - - // Touch bits - // XXXbz I can't find the sane spec for this stuff, so just cribbing - // from our xpidl for now. - [NewObject, Func="nsGenericHTMLElement::TouchEventsEnabled"] - Touch createTouch(optional Window? view = null, - optional EventTarget? target = null, - optional long identifier = 0, - optional long pageX = 0, - optional long pageY = 0, - optional long screenX = 0, - optional long screenY = 0, - optional long clientX = 0, - optional long clientY = 0, - optional long radiusX = 0, - optional long radiusY = 0, - optional float rotationAngle = 0, - optional float force = 0); - // XXXbz a hack to get around the fact that we don't support variadics as - // distinguishing arguments yet. Once this hack is removed. we can also - // remove the corresponding overload on nsIDocument, since Touch... and - // sequence look the same in the C++. - [NewObject, Func="nsGenericHTMLElement::TouchEventsEnabled"] - TouchList createTouchList(Touch touch, Touch... touches); - // XXXbz and another hack for the fact that we can't usefully have optional - // distinguishing arguments but need a working zero-arg form of - // createTouchList(). -/*TODO - [NewObject, Func="nsGenericHTMLElement::TouchEventsEnabled"] - TouchList createTouchList(); - [NewObject, Func="nsGenericHTMLElement::TouchEventsEnabled"] - TouchList createTouchList(sequence touches); -*/ - - [ChromeOnly] - attribute boolean styleSheetChangeEventsEnabled; - - [ChromeOnly, Throws] - void obsoleteSheet(URI sheetURI); - [ChromeOnly, Throws] - void obsoleteSheet(DOMString sheetURI); - - [ChromeOnly] readonly attribute nsIDocShell? docShell; - - [ChromeOnly] readonly attribute DOMString contentLanguage; - - [ChromeOnly] readonly attribute nsILoadGroup? documentLoadGroup; - - // Blocks the initial document parser until the given promise is settled. - [ChromeOnly, Throws] - Promise blockParsing(Promise promise, - optional BlockParsingOptions options); - - // like documentURI, except that for error pages, it returns the URI we were - // trying to load when we hit an error, rather than the error page's own URI. - [ChromeOnly] readonly attribute URI? mozDocumentURIIfNotForErrorPages; - - // A promise that is resolved, with this document itself, when we have both - // fired DOMContentLoaded and are ready to start layout. This is used for the - // "document_idle" webextension script injection point. - [ChromeOnly, Throws] - readonly attribute Promise documentReadyForIdle; -}; - dictionary BlockParsingOptions { /** * If true, blocks script-created parsers (created via document.open()) in @@ -507,16 +421,6 @@ partial interface Document { void notifyUserGestureActivation(); }; -// Extension to give chrome and XBL JS the ability to determine whether -// the document is sandboxed without permission to run scripts -// and whether inline scripts are blocked by the document's CSP. -/*Non standard -partial interface Document { - [Func="IsChromeOrXBL"] readonly attribute boolean hasScriptsBlockedBySandbox; - [Func="IsChromeOrXBL"] readonly attribute boolean inlineScriptAllowedByCSP; -}; -*/ - // For more information on Flash classification, see // toolkit/components/url-classifier/flash-block-lists.rst enum FlashClassification { diff --git a/crates/web-sys/webidls/enabled/Element.webidl b/crates/web-sys/webidls/enabled/Element.webidl index f374c92d3..2a6ba021f 100644 --- a/crates/web-sys/webidls/enabled/Element.webidl +++ b/crates/web-sys/webidls/enabled/Element.webidl @@ -225,15 +225,6 @@ partial interface Element { readonly attribute long clientLeft; readonly attribute long clientWidth; readonly attribute long clientHeight; - - // Mozilla specific stuff - /* The minimum/maximum offset that the element can be scrolled to - (i.e., the value that scrollLeft/scrollTop would be clamped to if they were - set to arbitrarily large values. */ - [ChromeOnly] readonly attribute long scrollTopMin; - readonly attribute long scrollTopMax; - [ChromeOnly] readonly attribute long scrollLeftMin; - readonly attribute long scrollLeftMax; }; // http://domparsing.spec.whatwg.org/#extensions-to-the-element-interface diff --git a/crates/web-sys/webidls/enabled/Event.webidl b/crates/web-sys/webidls/enabled/Event.webidl index f66e084d8..26277c8ff 100644 --- a/crates/web-sys/webidls/enabled/Event.webidl +++ b/crates/web-sys/webidls/enabled/Event.webidl @@ -58,31 +58,6 @@ interface Event { attribute boolean cancelBubble; }; -// Mozilla specific legacy stuff. -partial interface Event { - const long ALT_MASK = 0x00000001; - const long CONTROL_MASK = 0x00000002; - const long SHIFT_MASK = 0x00000004; - const long META_MASK = 0x00000008; - - /** The original target of the event, before any retargetings. */ - readonly attribute EventTarget? originalTarget; - /** - * The explicit original target of the event. If the event was retargeted - * for some reason other than an anonymous boundary crossing, this will be set - * to the target before the retargeting occurs. For example, mouse events - * are retargeted to their parent node when they happen over text nodes (bug - * 185889), and in that case .target will show the parent and - * .explicitOriginalTarget will show the text node. - * .explicitOriginalTarget differs from .originalTarget in that it will never - * contain anonymous content. - */ - readonly attribute EventTarget? explicitOriginalTarget; - [ChromeOnly] readonly attribute EventTarget? composedTarget; - [ChromeOnly] readonly attribute boolean multipleActionsPrevented; - [ChromeOnly] readonly attribute boolean isSynthesized; -}; - dictionary EventInit { boolean bubbles = false; boolean cancelable = false; diff --git a/crates/web-sys/webidls/enabled/EventHandler.webidl b/crates/web-sys/webidls/enabled/EventHandler.webidl index bbddbd50b..b92348ec7 100644 --- a/crates/web-sys/webidls/enabled/EventHandler.webidl +++ b/crates/web-sys/webidls/enabled/EventHandler.webidl @@ -116,11 +116,6 @@ interface GlobalEventHandlers { [Pref="dom.w3c_pointer_events.enabled"] attribute EventHandler onlostpointercapture; - // Mozilla-specific handlers. Unprefixed handlers live in - // Document rather than here. - attribute EventHandler onmozfullscreenchange; - attribute EventHandler onmozfullscreenerror; - // CSS-Animation and CSS-Transition handlers. attribute EventHandler onanimationcancel; attribute EventHandler onanimationend; diff --git a/crates/web-sys/webidls/enabled/EventTarget.webidl b/crates/web-sys/webidls/enabled/EventTarget.webidl index 2860168ba..9c8df094d 100644 --- a/crates/web-sys/webidls/enabled/EventTarget.webidl +++ b/crates/web-sys/webidls/enabled/EventTarget.webidl @@ -13,11 +13,6 @@ dictionary EventListenerOptions { boolean capture = false; - /* Setting to true make the listener be added to the system group. */ -/*Non standard - [Func="ThreadSafeIsChromeOrXBL"] - boolean mozSystemGroup = false; -*/ }; dictionary AddEventListenerOptions : EventListenerOptions { diff --git a/crates/web-sys/webidls/enabled/HTMLCanvasElement.webidl b/crates/web-sys/webidls/enabled/HTMLCanvasElement.webidl index 8b2cba740..c61045ad5 100644 --- a/crates/web-sys/webidls/enabled/HTMLCanvasElement.webidl +++ b/crates/web-sys/webidls/enabled/HTMLCanvasElement.webidl @@ -33,23 +33,6 @@ interface HTMLCanvasElement : HTMLElement { optional any encoderOptions); }; -// Mozilla specific bits -partial interface HTMLCanvasElement { - [Pure, SetterThrows] - attribute boolean mozOpaque; - [Throws, NeedsSubjectPrincipal] - File mozGetAsFile(DOMString name, optional DOMString? type = null); - // A Mozilla-only extension to get a canvas context backed by double-buffered - // shared memory. Only privileged callers can call this. - [ChromeOnly, Throws] - nsISupports? MozGetIPCContext(DOMString contextId); - - attribute PrintCallback? mozPrintCallback; - - [Throws, Pref="canvas.capturestream.enabled", NeedsSubjectPrincipal] - CanvasCaptureMediaStream captureStream(optional double frameRate); -}; - // For OffscreenCanvas // Reference: https://wiki.whatwg.org/wiki/OffscreenCanvas partial interface HTMLCanvasElement { diff --git a/crates/web-sys/webidls/enabled/HTMLInputElement.webidl b/crates/web-sys/webidls/enabled/HTMLInputElement.webidl index a5cade68b..02b5b87d7 100644 --- a/crates/web-sys/webidls/enabled/HTMLInputElement.webidl +++ b/crates/web-sys/webidls/enabled/HTMLInputElement.webidl @@ -193,20 +193,6 @@ partial interface HTMLInputElement { AutocompleteInfo? getAutocompleteInfo(); }; -[NoInterfaceObject] -interface MozEditableElement { - [Pure, ChromeOnly] - readonly attribute nsIEditor? editor; - -/*Non standard - // This is similar to set .value on nsIDOMInput/TextAreaElements, but handling - // of the value change is closer to the normal user input, so 'change' event - // for example will be dispatched when focusing out the element. - [Func="IsChromeOrXBL", NeedsSubjectPrincipal] - void setUserInput(DOMString input); -*/ -}; - HTMLInputElement implements MozEditableElement; /*Non standard @@ -264,31 +250,6 @@ partial interface HTMLInputElement { [Pref="dom.forms.datetime", ChromeOnly, BinaryName="getMaximumAsDouble"] double getMaximum(); - -/*Non standard - [Pref="dom.forms.datetime", Func="IsChromeOrXBL"] - void openDateTimePicker(optional DateTimeValue initialValue); - - [Pref="dom.forms.datetime", Func="IsChromeOrXBL"] - void updateDateTimePicker(optional DateTimeValue value); - - [Pref="dom.forms.datetime", Func="IsChromeOrXBL"] - void closeDateTimePicker(); - - [Pref="dom.forms.datetime", Func="IsChromeOrXBL"] - void setFocusState(boolean aIsFocused); - - [Pref="dom.forms.datetime", Func="IsChromeOrXBL"] - void updateValidityState(); - - [Pref="dom.forms.datetime", Func="IsChromeOrXBL", - BinaryName="getStepAsDouble"] - double getStep(); - - [Pref="dom.forms.datetime", Func="IsChromeOrXBL", - BinaryName="getStepBaseAsDouble"] - double getStepBase(); -*/ }; partial interface HTMLInputElement { diff --git a/crates/web-sys/webidls/enabled/HTMLMediaElement.webidl b/crates/web-sys/webidls/enabled/HTMLMediaElement.webidl index 3a2257afc..8ad32d0bd 100644 --- a/crates/web-sys/webidls/enabled/HTMLMediaElement.webidl +++ b/crates/web-sys/webidls/enabled/HTMLMediaElement.webidl @@ -98,55 +98,6 @@ interface HTMLMediaElement : HTMLElement { optional DOMString language = ""); }; -// Mozilla extensions: -partial interface HTMLMediaElement { - [Func="HasDebuggerOrTabsPrivilege"] - readonly attribute MediaSource? mozMediaSourceObject; - [Func="HasDebuggerOrTabsPrivilege"] - readonly attribute DOMString mozDebugReaderData; - [Func="HasDebuggerOrTabsPrivilege", NewObject] - Promise mozRequestDebugInfo(); - - [Func="HasDebuggerOrTabsPrivilege", NewObject] - static void mozEnableDebugLog(); - [Func="HasDebuggerOrTabsPrivilege", NewObject] - Promise mozRequestDebugLog(); - - [Pref="media.test.dumpDebugInfo"] - Promise mozDumpDebugInfo(); - - attribute MediaStream? srcObject; - - attribute boolean mozPreservesPitch; - -/*Non standard - // NB: for internal use with the video controls: - [Func="IsChromeOrXBL"] attribute boolean mozAllowCasting; - [Func="IsChromeOrXBL"] attribute boolean mozIsCasting; -*/ - - // Mozilla extension: stream capture - [Throws] - MediaStream mozCaptureStream(); - [Throws] - MediaStream mozCaptureStreamUntilEnded(); - readonly attribute boolean mozAudioCaptured; - - // Mozilla extension: return embedded metadata from the stream as a - // JSObject with key:value pairs for each tag. This can be used by - // player interfaces to display the song title, artist, etc. - [Throws] - object? mozGetMetadata(); - - // Mozilla extension: provides access to the fragment end time if - // the media element has a fragment URI for the currentSrc, otherwise - // it is equal to the media duration. - readonly attribute double mozFragmentEnd; - - [ChromeOnly] - void reportCanPlayTelemetry(); -}; - // Encrypted Media Extensions partial interface HTMLMediaElement { readonly attribute MediaKeys? mediaKeys; @@ -160,16 +111,6 @@ partial interface HTMLMediaElement { attribute EventHandler onwaitingforkey; }; -// This is just for testing -partial interface HTMLMediaElement { - [Pref="media.useAudioChannelService.testing"] - readonly attribute double computedVolume; - [Pref="media.useAudioChannelService.testing"] - readonly attribute boolean computedMuted; - [Pref="media.useAudioChannelService.testing"] - readonly attribute unsigned long computedSuspended; -}; - /* * HTMLMediaElement::seekToNextFrame() is a Mozilla experimental feature. * diff --git a/crates/web-sys/webidls/enabled/HTMLMenuElement.webidl b/crates/web-sys/webidls/enabled/HTMLMenuElement.webidl index fbcff9da2..5f1f13081 100644 --- a/crates/web-sys/webidls/enabled/HTMLMenuElement.webidl +++ b/crates/web-sys/webidls/enabled/HTMLMenuElement.webidl @@ -30,33 +30,3 @@ partial interface HTMLMenuElement { [CEReactions, SetterThrows] attribute boolean compact; }; - -// Mozilla specific stuff -partial interface HTMLMenuElement { - /** - * Creates and dispatches a trusted event named "show". - * The event is not cancelable and does not bubble. - * See http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#context-menus - */ - [ChromeOnly] - void sendShowEvent(); - - /** - * Creates a native menu builder. The builder type is dependent on menu type. - * Currently, it returns the @mozilla.org/content/html-menu-builder;1 - * component. Toolbar menus are not yet supported (the method returns null). - */ - [ChromeOnly] - MenuBuilder? createBuilder(); - - /* - * Builds a menu by iterating over menu children. - * See http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#building-menus-and-toolbars - * The caller can use a native builder by calling createBuilder() or provide - * a custom builder that implements the nsIMenuBuilder interface. - * A custom builder can be used for example to build native context menus - * that are not defined using . - */ - [ChromeOnly] - void build(MenuBuilder aBuilder); -}; diff --git a/crates/web-sys/webidls/enabled/HTMLTableCellElement.webidl b/crates/web-sys/webidls/enabled/HTMLTableCellElement.webidl index aff94914f..ffb04d72a 100644 --- a/crates/web-sys/webidls/enabled/HTMLTableCellElement.webidl +++ b/crates/web-sys/webidls/enabled/HTMLTableCellElement.webidl @@ -21,12 +21,6 @@ interface HTMLTableCellElement : HTMLElement { [CEReactions, SetterThrows] attribute DOMString headers; readonly attribute long cellIndex; - - // Mozilla-specific extensions - [CEReactions, SetterThrows] - attribute DOMString abbr; - [CEReactions, SetterThrows] - attribute DOMString scope; }; partial interface HTMLTableCellElement { diff --git a/crates/web-sys/webidls/enabled/HTMLVideoElement.webidl b/crates/web-sys/webidls/enabled/HTMLVideoElement.webidl index a447e1358..f7e05f54d 100644 --- a/crates/web-sys/webidls/enabled/HTMLVideoElement.webidl +++ b/crates/web-sys/webidls/enabled/HTMLVideoElement.webidl @@ -23,40 +23,6 @@ interface HTMLVideoElement : HTMLMediaElement { attribute DOMString poster; }; -partial interface HTMLVideoElement { - // A count of the number of video frames that have demuxed from the media - // resource. If we were playing perfectly, we'd be able to paint this many - // frames. - readonly attribute unsigned long mozParsedFrames; - - // A count of the number of frames that have been decoded. We may drop - // frames if the decode is taking too much time. - readonly attribute unsigned long mozDecodedFrames; - - // A count of the number of frames that have been presented to the rendering - // pipeline. We may drop frames if they arrive late at the renderer. - readonly attribute unsigned long mozPresentedFrames; - - // Number of presented frames which were painted on screen. - readonly attribute unsigned long mozPaintedFrames; - - // Time which the last painted video frame was late by, in seconds. - readonly attribute double mozFrameDelay; - - // True if the video has an audio track available. - readonly attribute boolean mozHasAudio; - -/*Non standard - // Attributes for builtin video controls to lock screen orientation. - // True if video controls should lock orientation when fullscreen. - [Pref="media.videocontrols.lock-video-orientation", Func="IsChromeOrXBL"] - readonly attribute boolean mozOrientationLockEnabled; - // True if screen orientation is locked by video controls. - [Pref="media.videocontrols.lock-video-orientation", Func="IsChromeOrXBL"] - attribute boolean mozIsOrientationLocked; -*/ -}; - // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#idl-def-HTMLVideoElement partial interface HTMLVideoElement { [Func="mozilla::dom::MediaSource::Enabled", NewObject] diff --git a/crates/web-sys/webidls/enabled/MediaTrackSettings.webidl b/crates/web-sys/webidls/enabled/MediaTrackSettings.webidl index 977e0f01d..8c4de6a11 100644 --- a/crates/web-sys/webidls/enabled/MediaTrackSettings.webidl +++ b/crates/web-sys/webidls/enabled/MediaTrackSettings.webidl @@ -17,21 +17,4 @@ dictionary MediaTrackSettings { boolean noiseSuppression; boolean autoGainControl; long channelCount; - - // Mozilla-specific extensions: - - // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints - // OBE by http://w3c.github.io/mediacapture-screen-share - - DOMString mediaSource; - - // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 - // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 - - long long browserWindow; - boolean scrollWithPage; - long viewportOffsetX; - long viewportOffsetY; - long viewportWidth; - long viewportHeight; }; diff --git a/crates/web-sys/webidls/enabled/MediaTrackSupportedConstraints.webidl b/crates/web-sys/webidls/enabled/MediaTrackSupportedConstraints.webidl index ac2d4b837..6cc109f84 100644 --- a/crates/web-sys/webidls/enabled/MediaTrackSupportedConstraints.webidl +++ b/crates/web-sys/webidls/enabled/MediaTrackSupportedConstraints.webidl @@ -23,21 +23,4 @@ dictionary MediaTrackSupportedConstraints { boolean channelCount = true; boolean deviceId = true; boolean groupId; // to be supported - - // Mozilla-specific extensions: - - // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints - // OBE by http://w3c.github.io/mediacapture-screen-share - - boolean mediaSource = true; - - // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 - // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 - - boolean browserWindow = true; - boolean scrollWithPage = true; - boolean viewportOffsetX = true; - boolean viewportOffsetY = true; - boolean viewportWidth = true; - boolean viewportHeight = true; }; diff --git a/crates/web-sys/webidls/enabled/MenuBoxObject.webidl b/crates/web-sys/webidls/enabled/MenuBoxObject.webidl deleted file mode 100644 index 449cadc59..000000000 --- a/crates/web-sys/webidls/enabled/MenuBoxObject.webidl +++ /dev/null @@ -1,19 +0,0 @@ - -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -[Func="IsChromeOrXBL"] -interface MenuBoxObject : BoxObject { - - void openMenu(boolean openFlag); - - attribute Element? activeChild; - - boolean handleKeyPress(KeyboardEvent keyEvent); - - readonly attribute boolean openedWithKey; - -}; diff --git a/crates/web-sys/webidls/enabled/Navigator.webidl b/crates/web-sys/webidls/enabled/Navigator.webidl index 6546609e4..1661ffec5 100644 --- a/crates/web-sys/webidls/enabled/Navigator.webidl +++ b/crates/web-sys/webidls/enabled/Navigator.webidl @@ -158,58 +158,6 @@ partial interface Navigator { readonly attribute MediaCapabilities mediaCapabilities; }; -// Mozilla-specific extensions - -// Chrome-only interface for Vibration API permission handling. -partial interface Navigator { - /* Set permission state to device vibration. - * @param permitted permission state (true for allowing vibration) - * @param persistent make the permission session-persistent - */ - [ChromeOnly] - void setVibrationPermission(boolean permitted, - optional boolean persistent = true); -}; - -callback interface MozIdleObserver { - // Time is in seconds and is read only when idle observers are added - // and removed. - readonly attribute unsigned long time; - void onidle(); - void onactive(); -}; - -partial interface Navigator { - [Throws, Constant, Cached, NeedsCallerType] - readonly attribute DOMString oscpu; - // WebKit/Blink support this; Trident/Presto do not. - readonly attribute DOMString vendor; - // WebKit/Blink supports this (hardcoded ""); Trident/Presto do not. - readonly attribute DOMString vendorSub; - // WebKit/Blink supports this (hardcoded "20030107"); Trident/Presto don't - readonly attribute DOMString productSub; - // WebKit/Blink/Trident/Presto support this. - readonly attribute boolean cookieEnabled; - [Throws, Constant, Cached, NeedsCallerType] - readonly attribute DOMString buildID; - - // WebKit/Blink/Trident/Presto support this. - [Affects=Nothing, DependsOn=Nothing] - boolean javaEnabled(); - - /** - * Navigator requests to add an idle observer to the existing window. - */ - [Throws, ChromeOnly] - void addIdleObserver(MozIdleObserver aIdleObserver); - - /** - * Navigator requests to remove an idle observer from the existing window. - */ - [Throws, ChromeOnly] - void removeIdleObserver(MozIdleObserver aIdleObserver); -}; - // NetworkInformation partial interface Navigator { [Throws, Pref="dom.netinfo.enabled"] diff --git a/crates/web-sys/webidls/enabled/Node.webidl b/crates/web-sys/webidls/enabled/Node.webidl index 3aed1f93e..7b7a14e68 100644 --- a/crates/web-sys/webidls/enabled/Node.webidl +++ b/crates/web-sys/webidls/enabled/Node.webidl @@ -101,122 +101,6 @@ interface Node : EventTarget { DOMString? lookupNamespaceURI(DOMString? prefix); [Pure] boolean isDefaultNamespace(DOMString? namespace); - - // Mozilla-specific stuff - [ChromeOnly] - readonly attribute Principal nodePrincipal; - [ChromeOnly] - readonly attribute URI? baseURIObject; - [ChromeOnly] - DOMString generateXPath(); - - /** - * This method provides a fast-path for the Fluent localization system to - * bypass the slowdowns in performance during initial document translation. - * The slowdowns are specific to XBL+Stylo. - * To learn more, see bug 1441037. - * - * The API is designed to fit into the DOMLocalization flow with minimal - * overhead, which dictates much of its signature. - * It takes the following steps: - * - * 1) The API can be called at any point on any DOM element and it - * synchronously scans the element subtree for all children with - * `data-l10n-id` attribute set. - * - * 2) Next, the API collects all of the l10n attributes - * (l10n-id, l10n-args and l10n-attrs), and passes them to the - * callback function together with three `Element` properties: - * `name` - name of the element as lowercase - * `namespaceURI` - namespace URI - * `type` - the type prop of the element (used for input sanitization) - * - * 3) The callback function is responsible for (asynchronously) collecting - * the translations for all l10n id+args pairs, sanitizing them and then - * return them back to this API. - * - * 4) The API takes the list of elements collected in step (1) and their - * translations and applies all of the translation values onto - * the elements. - * - * 5) The API returns a list with empty slots for all translated elements - * and references to elements that could not be translated. - * - * 6) The JS handles the translations of remaining elements. - * - * - * Through the whole cycle, the API uses the same list of elements and - * corresponding translations. It means that after step (1), the element - * at index 1 will match the l10nData at index 1, translations at index 1 - * and in the final return list, the element will be also stored at index 1 - * or the slot will be empty if the translations was applied on the C++ side. - * - * Note: There are several reasons why the JS callback may pass undefined for - * a given element including missing translation, or the need to - * translate the element using DOM Overlays. - * - * - * Example of use from JS: - * - * async function translateFragment(frag) { - * let untranslatedElements = await frag.localize( - * async cb(l10nItems) => { // 1 - * let trans = await getTranslations(l10nItems); // 2 - * return trans; - * } - * ); - * - * annotateMissingTranslations(untranslatedElements); // 3 - * } - * - * [1] l10nItems == [ - * { - * l10nId: "key1", - * l10nArgs: null, - * l10nAttrs: null, - * name: "button" - * namespaceURI: "..." - * type: null - * }, - * { - * l10nId: "key2", - * l10nArgs: {unreadCount: 5}, - * l10nAttrs: null, - * name: "label" - * namespaceURI: "..." - * type: null - * }, - * { - * l10nId: "key3", - * l10nArgs: null, - * l10nAttrs: "title", - * name: "window" - * namespaceURI: "..." - * type: null - * }, - * ] - * [2] trans == [ - * {value: "Key 1", attributes: {accesskey: "K"} }, - * undefined, - * {value: null, attributes: {title: "Unread emails: 5"} }, - * ] - * [3] untranslatedElements == [ - * , - *