diff options
Diffstat (limited to 'src')
39 files changed, 7 insertions, 1117 deletions
diff --git a/src/components/script/dom/webidls/DOMParser.webidl b/src/components/script/dom/webidls/DOMParser.webidl index 2bfbd43a28b..2de7170bed3 100644 --- a/src/components/script/dom/webidls/DOMParser.webidl +++ b/src/components/script/dom/webidls/DOMParser.webidl @@ -6,10 +6,6 @@ * http://domparsing.spec.whatwg.org/#the-domparser-interface */ -/*interface Principal; -interface URI; -interface InputStream;*/ - enum SupportedType { "text/html", "text/xml", @@ -18,30 +14,8 @@ enum SupportedType { "image/svg+xml" }; -// the latter is Mozilla-specific -/*[Constructor, - Constructor(Principal? prin, optional URI? documentURI = null, - optional URI? baseURI = null)]*/ [Constructor] interface DOMParser { [Creator, Throws] Document parseFromString(DOMString str, SupportedType type); - - /* // Mozilla-specific stuff - // Throws if the passed-in length is greater than the actual sequence length - [Creator, Throws, ChromeOnly] - Document parseFromBuffer(sequence<octet> buf, unsigned long bufLen, - SupportedType type); - // Throws if the passed-in length is greater than the actual typed array length - [Creator, Throws, ChromeOnly] - Document parseFromBuffer(Uint8Array buf, unsigned long bufLen, - SupportedType type); - [Creator, Throws, ChromeOnly] - Document parseFromStream(InputStream stream, DOMString? charset, - long contentLength, SupportedType type); - [Throws, ChromeOnly] - void init(optional Principal? principal = null, - optional URI? documentURI = null, - optional URI? baseURI = null);*/ }; - diff --git a/src/components/script/dom/webidls/DocumentType.webidl b/src/components/script/dom/webidls/DocumentType.webidl index 9a2e9cc4042..1d9b9c81da0 100644 --- a/src/components/script/dom/webidls/DocumentType.webidl +++ b/src/components/script/dom/webidls/DocumentType.webidl @@ -14,9 +14,6 @@ interface DocumentType : Node { readonly attribute DOMString name; readonly attribute DOMString publicId; readonly attribute DOMString systemId; - - // Mozilla extension - //readonly attribute DOMString? internalSubset; }; //DocumentType implements ChildNode; diff --git a/src/components/script/dom/webidls/Element.webidl b/src/components/script/dom/webidls/Element.webidl index 840e654ce99..c0f2ff5535c 100644 --- a/src/components/script/dom/webidls/Element.webidl +++ b/src/components/script/dom/webidls/Element.webidl @@ -55,29 +55,6 @@ interface Element : Node { HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName); HTMLCollection getElementsByClassName(DOMString classNames); - /** - * The ratio of font-size-inflated text font size to computed font - * size for this element. This will query the element for its primary frame, - * and then use this to get font size inflation information about the frame. - * This will be 1.0 if font size inflation is not enabled, and -1.0 if an - * error occurred during the retrieval of the font size inflation. - * - * @note The font size inflation ratio that is returned is actually the - * font size inflation data for the element's _primary frame_, not the - * element itself, but for most purposes, this should be sufficient. - */ - /*[ChromeOnly] - readonly attribute float fontSizeInflation;*/ - - // Mozilla specific stuff - - /*[SetterThrows,LenientThis] - attribute EventHandler onmouseenter; - [SetterThrows,LenientThis] - attribute EventHandler onmouseleave; - [SetterThrows] - attribute EventHandler onwheel;*/ - // Selectors API /** * Returns whether this element would be selected by the given selector @@ -88,49 +65,6 @@ interface Element : Node { [Throws] boolean mozMatchesSelector(DOMString selector); - // Proprietary extensions - /** - * Set this during a mousedown event to grab and retarget all mouse events - * to this element until the mouse button is released or releaseCapture is - * called. If retargetToElement is true, then all events are targetted at - * this element. If false, events can also fire at descendants of this - * element. - * - */ - void setCapture(optional boolean retargetToElement = false); - - /** - * If this element has captured the mouse, release the capture. If another - * element has captured the mouse, this method has no effect. - */ - void releaseCapture(); - - // Mozilla extensions - /** - * Requests that this element be made the full-screen element, as per the DOM - * full-screen api. - * - * @see <https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI> - */ - void mozRequestFullScreen(); - - /** - * Requests that this element be made the pointer-locked element, as per the DOM - * pointer lock api. - * - * @see <http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html> - */ - void mozRequestPointerLock(); - - // Obsolete methods. - /*Attr? getAttributeNode(DOMString name); - [Throws] - Attr? setAttributeNode(Attr newAttr); - [Throws] - Attr? removeAttributeNode(Attr oldAttr); - Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName); - [Throws] - Attr? setAttributeNodeNS(Attr newAttr);*/ }; // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface @@ -150,23 +84,8 @@ partial interface Element { readonly attribute long clientLeft; readonly attribute long clientWidth; readonly attribute long clientHeight; - - // Mozilla specific stuff - /* The 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. */ - /*readonly attribute long scrollTopMax; - readonly attribute long scrollLeftMax;*/ }; -// http://dvcs.w3.org/hg/undomanager/raw-file/tip/undomanager.html -/*partial interface Element { - [Pref="dom.undo_manager.enabled"] - readonly attribute UndoManager? undoManager; - [SetterThrows,Pref="dom.undo_manager.enabled"] - attribute boolean undoScope; - };*/ - // http://domparsing.spec.whatwg.org/#extensions-to-the-element-interface partial interface Element { [Throws,TreatNullAs=EmptyString] diff --git a/src/components/script/dom/webidls/Event.webidl b/src/components/script/dom/webidls/Event.webidl index f60fee5d785..d33093d76e9 100644 --- a/src/components/script/dom/webidls/Event.webidl +++ b/src/components/script/dom/webidls/Event.webidl @@ -37,54 +37,6 @@ interface Event { void initEvent(DOMString type, boolean bubbles, boolean cancelable); }; -/*// Mozilla specific legacy stuff. -partial interface Event { - const long MOUSEDOWN = 0x00000001; - const long MOUSEUP = 0x00000002; - const long MOUSEOVER = 0x00000004; - const long MOUSEOUT = 0x00000008; - const long MOUSEMOVE = 0x00000010; - const long MOUSEDRAG = 0x00000020; - const long CLICK = 0x00000040; - const long DBLCLICK = 0x00000080; - const long KEYDOWN = 0x00000100; - const long KEYUP = 0x00000200; - const long KEYPRESS = 0x00000400; - const long DRAGDROP = 0x00000800; - const long FOCUS = 0x00001000; - const long BLUR = 0x00002000; - const long SELECT = 0x00004000; - const long CHANGE = 0x00008000; - const long RESET = 0x00010000; - const long SUBMIT = 0x00020000; - const long SCROLL = 0x00040000; - const long LOAD = 0x00080000; - const long UNLOAD = 0x00100000; - const long XFER_DONE = 0x00200000; - const long ABORT = 0x00400000; - const long ERROR = 0x00800000; - const long LOCATE = 0x01000000; - const long MOVE = 0x02000000; - const long RESIZE = 0x04000000; - const long FORWARD = 0x08000000; - const long HELP = 0x10000000; - const long BACK = 0x20000000; - const long TEXT = 0x40000000; - - const long ALT_MASK = 0x00000001; - const long CONTROL_MASK = 0x00000002; - const long SHIFT_MASK = 0x00000004; - const long META_MASK = 0x00000008; - - readonly attribute EventTarget? originalTarget; - readonly attribute EventTarget? explicitOriginalTarget; - [ChromeOnly] readonly attribute boolean multipleActionsPrevented; - - void preventBubble(); - void preventCapture(); - boolean getPreventDefault(); - };*/ - dictionary EventInit { boolean bubbles = false; boolean cancelable = false; diff --git a/src/components/script/dom/webidls/HTMLAppletElement.webidl b/src/components/script/dom/webidls/HTMLAppletElement.webidl index 9b0f06dab87..21313ae630f 100644 --- a/src/components/script/dom/webidls/HTMLAppletElement.webidl +++ b/src/components/script/dom/webidls/HTMLAppletElement.webidl @@ -37,7 +37,3 @@ interface HTMLAppletElement : HTMLElement { [Pure, SetterThrows] attribute DOMString width; }; - -//HTMLAppletElement implements MozImageLoadingContent; -//HTMLAppletElement implements MozFrameLoaderOwner; -//HTMLAppletElement implements MozObjectLoadingContent; diff --git a/src/components/script/dom/webidls/HTMLAudioElement.webidl b/src/components/script/dom/webidls/HTMLAudioElement.webidl index 90084eb52eb..ad2acd8ed03 100644 --- a/src/components/script/dom/webidls/HTMLAudioElement.webidl +++ b/src/components/script/dom/webidls/HTMLAudioElement.webidl @@ -11,27 +11,5 @@ * and create derivative works of this document. */ -// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/ - [NamedConstructor=Audio(optional DOMString src)] interface HTMLAudioElement : HTMLMediaElement {}; - -partial interface HTMLAudioElement -{ -/* - // Setup the audio stream for writing - [Pref="media.audio_data.enabled", Throws] - void mozSetup(unsigned long channels, unsigned long rate); - - // Write audio to the audio stream - [Pref="media.audio_data.enabled", Throws] - unsigned long mozWriteAudio(Float32Array data); - [Pref="media.audio_data.enabled", Throws] - unsigned long mozWriteAudio(sequence<unrestricted float> data); - - // Get the current offset (measured in samples since the start) of the audio - // stream created using mozWriteAudio(). - [Pref="media.audio_data.enabled", Throws] - unsigned long long mozCurrentSampleOffset(); -*/ -}; diff --git a/src/components/script/dom/webidls/HTMLButtonElement.webidl b/src/components/script/dom/webidls/HTMLButtonElement.webidl index 0ca51a1e618..2b7e18d6312 100644 --- a/src/components/script/dom/webidls/HTMLButtonElement.webidl +++ b/src/components/script/dom/webidls/HTMLButtonElement.webidl @@ -10,9 +10,6 @@ * and create derivative works of this document. */ -// FIXME: servo#707 -//interface HTMLFormElement; - // http://www.whatwg.org/specs/web-apps/current-work/#the-button-element interface HTMLButtonElement : HTMLElement { [SetterThrows, Pure] @@ -37,15 +34,10 @@ interface HTMLButtonElement : HTMLElement { attribute DOMString type; [SetterThrows, Pure] attribute DOMString value; -// Not yet implemented: -// attribute HTMLMenuElement? menu; readonly attribute boolean willValidate; readonly attribute ValidityState validity; readonly attribute DOMString validationMessage; boolean checkValidity(); void setCustomValidity(DOMString error); - -// Not yet implemented: -// readonly attribute NodeList labels; }; diff --git a/src/components/script/dom/webidls/HTMLCanvasElement.webidl b/src/components/script/dom/webidls/HTMLCanvasElement.webidl index d2413381daa..adddbb18436 100644 --- a/src/components/script/dom/webidls/HTMLCanvasElement.webidl +++ b/src/components/script/dom/webidls/HTMLCanvasElement.webidl @@ -10,46 +10,9 @@ * and create derivative works of this document. */ -// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/HTMLCanvasElement.webidl - -/* -interface Blob; -interface FileCallback; -interface nsIInputStreamCallback; -interface nsISupports; -interface PrintCallback; -interface Variant; -*/ - interface HTMLCanvasElement : HTMLElement { [Pure, SetterThrows] attribute unsigned long width; [Pure, SetterThrows] attribute unsigned long height; -/* - [Throws] - nsISupports? getContext(DOMString contextId, optional any contextOptions = null); - - [Throws] - DOMString toDataURL(optional DOMString type = "", - optional any encoderOptions); - [Throws] - void toBlob(FileCallback _callback, - optional DOMString type = "", - optional any encoderOptions); -*/ -}; -/* -// Mozilla specific bits -partial interface HTMLCanvasElement { - [Pure, SetterThrows] - attribute boolean mozOpaque; - [Throws] - File mozGetAsFile(DOMString name, optional DOMString? type = null); - [ChromeOnly, Throws] - nsISupports? MozGetIPCContext(DOMString contextId); - [ChromeOnly] - void mozFetchAsStream(nsIInputStreamCallback callback, optional DOMString? type = null); - attribute PrintCallback? mozPrintCallback; }; -*/ diff --git a/src/components/script/dom/webidls/HTMLCollection.webidl b/src/components/script/dom/webidls/HTMLCollection.webidl index 1e56c3c01af..2c1fc60e04a 100644 --- a/src/components/script/dom/webidls/HTMLCollection.webidl +++ b/src/components/script/dom/webidls/HTMLCollection.webidl @@ -3,11 +3,8 @@ * 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/. * - * The origin of this IDL file is - * http://www.w3.org/TR/2012/WD-dom-20120105/ - * - * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C - * liability, trademark and document use rules apply. + * The origin of this IDL file is: + * http://dom.spec.whatwg.org/#interface-htmlcollection */ interface HTMLCollection { diff --git a/src/components/script/dom/webidls/HTMLElement.webidl b/src/components/script/dom/webidls/HTMLElement.webidl index deaeb10a67c..e0ce18aaff9 100644 --- a/src/components/script/dom/webidls/HTMLElement.webidl +++ b/src/components/script/dom/webidls/HTMLElement.webidl @@ -16,22 +16,8 @@ interface HTMLElement : Element { // metadata attributes attribute DOMString title; attribute DOMString lang; - // attribute boolean translate; [SetterThrows, Pure] attribute DOMString dir; - /*[Constant] - readonly attribute DOMStringMap dataset;*/ - - // microdata - /*[SetterThrows, Pure] - attribute boolean itemScope; - [PutForwards=value,Constant] readonly attribute DOMSettableTokenList itemType; - [SetterThrows, Pure] - attribute DOMString itemId; - [PutForwards=value,Constant] readonly attribute DOMSettableTokenList itemRef; - [PutForwards=value,Constant] readonly attribute DOMSettableTokenList itemProp;*/ - /*[Constant] - readonly attribute HTMLPropertiesCollection properties;*/ [Throws] attribute any itemValue; @@ -51,40 +37,16 @@ interface HTMLElement : Element { readonly attribute DOMString accessKeyLabel; [SetterThrows, Pure] attribute boolean draggable; - //[PutForwards=value] readonly attribute DOMSettableTokenList dropzone; [SetterThrows, Pure] attribute DOMString contentEditable; [Pure] readonly attribute boolean isContentEditable; - /*[Pure] - readonly attribute HTMLMenuElement? contextMenu;*/ - //[SetterThrows] - // attribute HTMLMenuElement? contextMenu; [SetterThrows, Pure] attribute boolean spellcheck; - // command API - //readonly attribute DOMString? commandType; - //readonly attribute DOMString? commandLabel; - //readonly attribute DOMString? commandIcon; - //readonly attribute boolean? commandHidden; - //readonly attribute boolean? commandDisabled; - //readonly attribute boolean? commandChecked; - - // styling - /*[PutForwards=cssText, Constant] - readonly attribute CSSStyleDeclaration style;*/ - // Mozilla specific stuff // FIXME Bug 810677 Move className from HTMLElement to Element attribute DOMString className; - - /*[SetterThrows] - attribute EventHandler oncopy; - [SetterThrows] - attribute EventHandler oncut; - [SetterThrows] - attribute EventHandler onpaste;*/ }; // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface @@ -96,23 +58,3 @@ partial interface HTMLElement { readonly attribute long offsetWidth; readonly attribute long offsetHeight; }; - -/*[NoInterfaceObject] -interface TouchEventHandlers { - [SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"] - attribute EventHandler ontouchstart; - [SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"] - attribute EventHandler ontouchend; - [SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"] - attribute EventHandler ontouchmove; - [SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"] - attribute EventHandler ontouchenter; - [SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"] - attribute EventHandler ontouchleave; - [SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"] - attribute EventHandler ontouchcancel; -};*/ - -/*HTMLElement implements GlobalEventHandlers; -HTMLElement implements NodeEventHandlers; -HTMLElement implements TouchEventHandlers;*/ diff --git a/src/components/script/dom/webidls/HTMLEmbedElement.webidl b/src/components/script/dom/webidls/HTMLEmbedElement.webidl index 06d966905d5..0332af199f2 100644 --- a/src/components/script/dom/webidls/HTMLEmbedElement.webidl +++ b/src/components/script/dom/webidls/HTMLEmbedElement.webidl @@ -13,7 +13,6 @@ */ // http://www.whatwg.org/specs/web-apps/current-work/#the-embed-element -[NeedNewResolve] interface HTMLEmbedElement : HTMLElement { [Pure, SetterThrows] attribute DOMString src; @@ -23,8 +22,6 @@ interface HTMLEmbedElement : HTMLElement { attribute DOMString width; [Pure, SetterThrows] attribute DOMString height; - //[Throws] - //legacycaller any (any... arguments); }; // http://www.whatwg.org/specs/web-apps/current-work/#HTMLEmbedElement-partial @@ -39,7 +36,3 @@ partial interface HTMLEmbedElement { // GetSVGDocument Document? getSVGDocument(); }; - -//HTMLEmbedElement implements MozImageLoadingContent; -//HTMLEmbedElement implements MozFrameLoaderOwner; -//HTMLEmbedElement implements MozObjectLoadingContent; diff --git a/src/components/script/dom/webidls/HTMLFormElement.webidl b/src/components/script/dom/webidls/HTMLFormElement.webidl index 38c8bf4c36e..088231cbb43 100644 --- a/src/components/script/dom/webidls/HTMLFormElement.webidl +++ b/src/components/script/dom/webidls/HTMLFormElement.webidl @@ -38,8 +38,6 @@ interface HTMLFormElement : HTMLElement { readonly attribute long length; getter Element (unsigned long index); - // TODO this should be: getter (RadioNodeList or HTMLInputElement or HTMLImageElement) (DOMString name); -// getter nsISupports (DOMString name); [Throws] void submit(); diff --git a/src/components/script/dom/webidls/HTMLFrameElement.webidl b/src/components/script/dom/webidls/HTMLFrameElement.webidl index 4a62c3f9bee..845fbe3bf2e 100644 --- a/src/components/script/dom/webidls/HTMLFrameElement.webidl +++ b/src/components/script/dom/webidls/HTMLFrameElement.webidl @@ -30,5 +30,3 @@ interface HTMLFrameElement : HTMLElement { [TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginHeight; [TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginWidth; }; - -//HTMLFrameElement implements MozFrameLoaderOwner; diff --git a/src/components/script/dom/webidls/HTMLIFrameElement.webidl b/src/components/script/dom/webidls/HTMLIFrameElement.webidl index c8852f191f1..873563e139a 100644 --- a/src/components/script/dom/webidls/HTMLIFrameElement.webidl +++ b/src/components/script/dom/webidls/HTMLIFrameElement.webidl @@ -18,10 +18,8 @@ interface HTMLIFrameElement : HTMLElement { attribute DOMString srcdoc; [SetterThrows, Pure] attribute DOMString name; - // [PutForwards=value] readonly attribute DOMSettableTokenList sandbox; // We're implementing sandbox as a string for now, see bug 845057. attribute DOMString sandbox; - // attribute boolean seamless; [SetterThrows, Pure] attribute boolean allowFullscreen; [SetterThrows, Pure] @@ -51,17 +49,3 @@ partial interface HTMLIFrameElement { // GetSVGDocument Document? getSVGDocument(); }; - -/*partial interface HTMLIFrameElement { - // nsIDOMMozBrowserFrame - [ChromeOnly,SetterThrows] - attribute boolean mozbrowser; -}; - -partial interface HTMLIFrameElement { - // nsIMozBrowserFrame - [ChromeOnly] - readonly attribute DOMString appManifestURL; -}; - -HTMLIFrameElement implements MozFrameLoaderOwner;*/ diff --git a/src/components/script/dom/webidls/HTMLImageElement.webidl b/src/components/script/dom/webidls/HTMLImageElement.webidl index 867a37071de..700bd20d949 100644 --- a/src/components/script/dom/webidls/HTMLImageElement.webidl +++ b/src/components/script/dom/webidls/HTMLImageElement.webidl @@ -17,7 +17,6 @@ interface HTMLImageElement : HTMLElement { attribute DOMString alt; [SetterThrows] attribute DOMString src; -// attribute DOMString srcset; [SetterThrows] attribute DOMString crossOrigin; [SetterThrows] diff --git a/src/components/script/dom/webidls/HTMLInputElement.webidl b/src/components/script/dom/webidls/HTMLInputElement.webidl index d55241ef4fc..61198a8ea22 100644 --- a/src/components/script/dom/webidls/HTMLInputElement.webidl +++ b/src/components/script/dom/webidls/HTMLInputElement.webidl @@ -12,13 +12,6 @@ * and create derivative works of this document. */ -// original import from: -// http://hg.mozilla.org/mozilla-central/filelog/8c240c67f76c/dom/webidl/HTMLInputElement.webidl - -/* -interface nsIControllers; -*/ - interface HTMLInputElement : HTMLElement { [Pure, SetterThrows] attribute DOMString accept; @@ -32,16 +25,8 @@ interface HTMLInputElement : HTMLElement { attribute boolean defaultChecked; [Pure] attribute boolean checked; -/* - attribute DOMString dirName; -*/ [Pure, SetterThrows] attribute boolean disabled; -/* - readonly attribute HTMLFormElement? form; - [Pure] - readonly attribute FileList? files; -*/ [Pure, SetterThrows] attribute DOMString formAction; [Pure, SetterThrows] @@ -58,10 +43,6 @@ interface HTMLInputElement : HTMLElement { attribute boolean indeterminate; [Pure, SetterThrows] attribute DOMString inputMode; -/* - [Pure] - readonly attribute HTMLElement? list; -*/ [Pure, SetterThrows] attribute DOMString max; [Pure, SetterThrows] @@ -92,35 +73,15 @@ interface HTMLInputElement : HTMLElement { attribute DOMString defaultValue; [Pure, TreatNullAs=EmptyString, SetterThrows] attribute DOMString value; -/* - [Throws, Pref="dom.experimental_forms"] - attribute Date? valueAsDate; - [Pure, SetterThrows] - attribute unrestricted double valueAsNumber; -*/ attribute unsigned long width; -/* - [Throws] - void stepUp(optional long n = 1); - [Throws] - void stepDown(optional long n = 1); -*/ [Pure] readonly attribute boolean willValidate; -/* - [Pure] - readonly attribute ValidityState validity; -*/ [GetterThrows] readonly attribute DOMString validationMessage; boolean checkValidity(); void setCustomValidity(DOMString error); -/* - readonly attribute NodeList labels; -*/ - void select(); [Throws] @@ -130,10 +91,6 @@ interface HTMLInputElement : HTMLElement { attribute long selectionEnd; [Throws] attribute DOMString selectionDirection; -/* - // Bug 850364 void setRangeText(DOMString replacement); - // Bug 850364 setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode); -*/ // also has obsolete members }; @@ -143,47 +100,3 @@ partial interface HTMLInputElement { [Pure, SetterThrows] attribute DOMString useMap; }; - -/* -// Mozilla extensions -partial interface HTMLInputElement { - [Throws] - void setSelectionRange(long start, long end, optional DOMString direction); - - [GetterThrows] - readonly attribute nsIControllers controllers; - [GetterThrows] - readonly attribute long textLength; - - [ChromeOnly] - sequence<DOMString> mozGetFileNameArray(); - - [ChromeOnly] - void mozSetFileNameArray(sequence<DOMString> fileNames); - - boolean mozIsTextField(boolean aExcludePassword); -}; - -partial interface HTMLInputElement { - // Mirrored chrome-only nsIDOMNSEditableElement methods. Please make sure - // to update this list if nsIDOMNSEditableElement changes. - - [Pure, ChromeOnly] - readonly attribute nsIEditor? editor; - - // 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. - [ChromeOnly] - void setUserInput(DOMString input); -}; - -[NoInterfaceObject] -interface MozPhonetic { - [Pure, ChromeOnly] - readonly attribute DOMString phonetic; -}; - -HTMLInputElement implements MozImageLoadingContent; -HTMLInputElement implements MozPhonetic; -*/ diff --git a/src/components/script/dom/webidls/HTMLLIElement.webidl b/src/components/script/dom/webidls/HTMLLIElement.webidl index b3c5f37fed7..c20e00846b3 100644 --- a/src/components/script/dom/webidls/HTMLLIElement.webidl +++ b/src/components/script/dom/webidls/HTMLLIElement.webidl @@ -12,9 +12,6 @@ * and create derivative works of this document. */ -// original import from -// http://hg.mozilla.org/mozilla-central/filelog/8c240c67f76c/dom/webidl/HTMLLIElement.webidl - // http://www.whatwg.org/specs/web-apps/current-work/#the-li-element interface HTMLLIElement : HTMLElement { [SetterThrows, Pure] diff --git a/src/components/script/dom/webidls/HTMLLabelElement.webidl b/src/components/script/dom/webidls/HTMLLabelElement.webidl index 0b0ee0b9d19..b78947216d3 100644 --- a/src/components/script/dom/webidls/HTMLLabelElement.webidl +++ b/src/components/script/dom/webidls/HTMLLabelElement.webidl @@ -14,11 +14,5 @@ // import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/ interface HTMLLabelElement : HTMLElement { -/* FIXME: - readonly attribute HTMLFormElement? form; -*/ attribute DOMString htmlFor; -/* - readonly attribute HTMLElement? control; -*/ }; diff --git a/src/components/script/dom/webidls/HTMLLegendElement.webidl b/src/components/script/dom/webidls/HTMLLegendElement.webidl index 9a98a441b6f..4bea26a7831 100644 --- a/src/components/script/dom/webidls/HTMLLegendElement.webidl +++ b/src/components/script/dom/webidls/HTMLLegendElement.webidl @@ -12,14 +12,8 @@ * and create derivative works of this document. */ -// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/ - // http://www.whatwg.org/specs/web-apps/current-work/#the-legend-element interface HTMLLegendElement : HTMLElement { -/* - FIXME: - readonly attribute HTMLFormElement? form; -*/ }; // http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis diff --git a/src/components/script/dom/webidls/HTMLLinkElement.webidl b/src/components/script/dom/webidls/HTMLLinkElement.webidl index 1dde0bdada9..213e70856f3 100644 --- a/src/components/script/dom/webidls/HTMLLinkElement.webidl +++ b/src/components/script/dom/webidls/HTMLLinkElement.webidl @@ -21,16 +21,12 @@ interface HTMLLinkElement : HTMLElement { attribute DOMString crossOrigin; [SetterThrows, Pure] attribute DOMString rel; - // Not supported yet: - // readonly attribute DOMTokenList relList; [SetterThrows, Pure] attribute DOMString media; [SetterThrows, Pure] attribute DOMString hreflang; [SetterThrows, Pure] attribute DOMString type; - // Not supported yet: - // [PutForwards=value] readonly attribute DOMSettableTokenList sizes; }; // TODO diff --git a/src/components/script/dom/webidls/HTMLMapElement.webidl b/src/components/script/dom/webidls/HTMLMapElement.webidl index 88fe4e54c95..bab62839739 100644 --- a/src/components/script/dom/webidls/HTMLMapElement.webidl +++ b/src/components/script/dom/webidls/HTMLMapElement.webidl @@ -16,6 +16,4 @@ interface HTMLMapElement : HTMLElement { attribute DOMString name; [Constant] readonly attribute HTMLCollection areas; - // Not supported yet. - //readonly attribute HTMLCollection images; }; diff --git a/src/components/script/dom/webidls/HTMLMediaElement.webidl b/src/components/script/dom/webidls/HTMLMediaElement.webidl index 25f03e5111d..a835d302600 100644 --- a/src/components/script/dom/webidls/HTMLMediaElement.webidl +++ b/src/components/script/dom/webidls/HTMLMediaElement.webidl @@ -12,10 +12,6 @@ */ interface HTMLMediaElement : HTMLElement { -/* - // error state - readonly attribute MediaError? error; -*/ // network state [SetterThrows] attribute DOMString src; @@ -27,16 +23,8 @@ interface HTMLMediaElement : HTMLElement { const unsigned short NETWORK_IDLE = 1; const unsigned short NETWORK_LOADING = 2; const unsigned short NETWORK_NO_SOURCE = 3; -/* - TODO: - readonly attribute unsigned short networkState; -*/ [SetterThrows] attribute DOMString preload; -/* - [Creator] - readonly attribute TimeRanges buffered; -*/ void load(); DOMString canPlayType(DOMString type); @@ -52,23 +40,11 @@ interface HTMLMediaElement : HTMLElement { // playback state [SetterThrows] attribute double currentTime; - // TODO: Bug 847375 - void fastSeek(double time); -/* - TODO: - readonly attribute unrestricted double duration; -*/ - // TODO: Bug 847376 - readonly attribute any startDate; readonly attribute boolean paused; [SetterThrows] attribute double defaultPlaybackRate; [SetterThrows] attribute double playbackRate; -/* - [Creator] - readonly attribute TimeRanges played; - [Creator] - readonly attribute TimeRanges seekable; -*/ readonly attribute boolean ended; [SetterThrows] attribute boolean autoplay; @@ -79,11 +55,6 @@ interface HTMLMediaElement : HTMLElement { [Throws] void pause(); - // TODO: Bug 847377 - mediaGroup and MediaController - // media controller - // attribute DOMString mediaGroup; - // attribute MediaController? controller; - // controls [SetterThrows] attribute boolean controls; @@ -93,96 +64,4 @@ interface HTMLMediaElement : HTMLElement { [SetterThrows] attribute boolean defaultMuted; - // TODO: Bug 847379 - // tracks - //readonly attribute AudioTrackList audioTracks; - //readonly attribute VideoTrackList videoTracks; -/* - [Pref="media.webvtt.enabled"] - readonly attribute TextTrackList textTracks; - [Pref="media.webvtt.enabled"] - TextTrack addTextTrack(TextTrackKind kind, - optional DOMString label = "", - optional DOMString language = ""); -*/ -}; - -/* -// Mozilla extensions: -partial interface HTMLMediaElement { - attribute MediaStream? mozSrcObject; - attribute boolean mozPreservesPitch; - readonly attribute boolean mozAutoplayEnabled; - - // Mozilla extension: stream capture - [Throws] - MediaStream mozCaptureStream(); - [Throws] - MediaStream mozCaptureStreamUntilEnded(); - readonly attribute boolean mozAudioCaptured; - - // Mozilla extension: extra stream metadata information, used as part - // of MozAudioAvailable events and the mozWriteAudio() method. The - // mozFrameBufferLength method allows for the size of the framebuffer - // used within MozAudioAvailable events to be changed. The new size must - // be between 512 and 16384. The default size, for a media element with - // audio is (mozChannels * 1024). - [GetterThrows] - readonly attribute unsigned long mozChannels; - [GetterThrows] - readonly attribute unsigned long mozSampleRate; - [Throws] - attribute unsigned long mozFrameBufferLength; - - // 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; - - // Mozilla extension: an audio channel type for media elements. - // An exception is thrown if the app tries to change the audio channel type - // without the permission (manifest file for B2G apps). - // The supported values are: - // * normal (default value) - // Automatically paused if "notification" or higher priority channel - // is played - // Use case: normal applications - // * content - // Automatically paused if "notification" or higher priority channel - // is played. Also paused if another app starts using "content" - // channel. Using this channel never affects applications using - // the "normal" channel. - // Use case: video/audio players - // * notification - // Automatically paused if "alarm" or higher priority channel is played. - // Use case: New email, incoming SMS - // * alarm - // Automatically paused if "telephony" or higher priority channel is - // played. - // User case: Alarm clock, calendar alarms - // * telephony - // Automatically paused if "ringer" or higher priority - // channel is played. - // Use case: dialer, voip - // * ringer - // Automatically paused if "publicnotification" or higher priority - // channel is played. - // Use case: dialer, voip - // * publicnotification - // Always plays in speaker, even when headphones are plugged in. - // Use case: Camera shutter sound. - [SetterThrows] - attribute DOMString mozAudioChannelType; - - // In addition the media element has this new events: - // * onmozinterruptbegin - called when the media element is interrupted - // because of the audiochannel manager. - // * onmozinterruptend - called when the interruption is concluded }; -*/ diff --git a/src/components/script/dom/webidls/HTMLMeterElement.webidl b/src/components/script/dom/webidls/HTMLMeterElement.webidl index 09cf523c462..ee88591f1a6 100644 --- a/src/components/script/dom/webidls/HTMLMeterElement.webidl +++ b/src/components/script/dom/webidls/HTMLMeterElement.webidl @@ -25,9 +25,4 @@ interface HTMLMeterElement : HTMLElement { attribute double high; [SetterThrows] attribute double optimum; - - /** - * The labels attribute will be done with bug 556743. - */ - //readonly attribute NodeList labels; }; diff --git a/src/components/script/dom/webidls/HTMLObjectElement.webidl b/src/components/script/dom/webidls/HTMLObjectElement.webidl index 03e5984592f..ab38d47dd3f 100644 --- a/src/components/script/dom/webidls/HTMLObjectElement.webidl +++ b/src/components/script/dom/webidls/HTMLObjectElement.webidl @@ -19,7 +19,6 @@ interface HTMLObjectElement : HTMLElement { attribute DOMString data; [Pure, SetterThrows] attribute DOMString type; -// attribute boolean typeMustMatch; [Pure, SetterThrows] attribute DOMString name; [Pure, SetterThrows] @@ -40,9 +39,6 @@ interface HTMLObjectElement : HTMLElement { readonly attribute DOMString validationMessage; boolean checkValidity(); void setCustomValidity(DOMString error); - - /*[Throws] - legacycaller any (any... arguments);*/ }; // http://www.whatwg.org/specs/web-apps/current-work/#HTMLObjectElement-partial @@ -74,128 +70,3 @@ partial interface HTMLObjectElement { // GetSVGDocument Document? getSVGDocument(); }; - -/*[NoInterfaceObject] -interface MozObjectLoadingContent { - // Mirrored chrome-only scriptable nsIObjectLoadingContent methods. Please - // make sure to update this list if nsIObjectLoadingContent changes. Also, - // make sure everything on here is [ChromeOnly]. - [ChromeOnly] - const unsigned long TYPE_LOADING = 0; - [ChromeOnly] - const unsigned long TYPE_IMAGE = 1; - [ChromeOnly] - const unsigned long TYPE_PLUGIN = 2; - [ChromeOnly] - const unsigned long TYPE_DOCUMENT = 3; - [ChromeOnly] - const unsigned long TYPE_NULL = 4; - - // The content type is not supported (e.g. plugin not installed) - [ChromeOnly] - const unsigned long PLUGIN_UNSUPPORTED = 0; - // Showing alternate content - [ChromeOnly] - const unsigned long PLUGIN_ALTERNATE = 1; - // The plugin exists, but is disabled - [ChromeOnly] - const unsigned long PLUGIN_DISABLED = 2; - // The plugin is blocklisted and disabled - [ChromeOnly] - const unsigned long PLUGIN_BLOCKLISTED = 3; - // The plugin is considered outdated, but not disabled - [ChromeOnly] - const unsigned long PLUGIN_OUTDATED = 4; - // The plugin has crashed - [ChromeOnly] - const unsigned long PLUGIN_CRASHED = 5; - // Suppressed by security policy - [ChromeOnly] - const unsigned long PLUGIN_SUPPRESSED = 6; - // Blocked by content policy - [ChromeOnly] - const unsigned long PLUGIN_USER_DISABLED = 7; - /// ** All values >= PLUGIN_CLICK_TO_PLAY are plugin placeholder types that - /// would be replaced by a real plugin if activated (playPlugin()) - /// ** Furthermore, values >= PLUGIN_CLICK_TO_PLAY and - /// <= PLUGIN_VULNERABLE_NO_UPDATE are click-to-play types. - // The plugin is disabled until the user clicks on it - [ChromeOnly] - const unsigned long PLUGIN_CLICK_TO_PLAY = 8; - // The plugin is vulnerable (update available) - [ChromeOnly] - const unsigned long PLUGIN_VULNERABLE_UPDATABLE = 9; - // The plugin is vulnerable (no update available) - [ChromeOnly] - const unsigned long PLUGIN_VULNERABLE_NO_UPDATE = 10; - // The plugin is in play preview mode - [ChromeOnly] - const unsigned long PLUGIN_PLAY_PREVIEW = 11;*/ - - /** - * The actual mime type (the one we got back from the network - * request) for the element. - */ -/*[ChromeOnly] - readonly attribute DOMString actualType;*/ - - /** - * Gets the type of the content that's currently loaded. See - * the constants above for the list of possible values. - */ -/*[ChromeOnly] - readonly attribute unsigned long displayedType;*/ - - /** - * Gets the content type that corresponds to the give MIME type. See the - * constants above for the list of possible values. If nothing else fits, - * TYPE_NULL will be returned. - */ -/*[ChromeOnly] - unsigned long getContentTypeForMIMEType(DOMString aMimeType);*/ - - /** - * This method will play a plugin that has been stopped by the - * click-to-play plugins or play-preview features. - */ -/*[ChromeOnly, Throws] - void playPlugin();*/ - - /** - * This attribute will return true if the current content type has been - * activated, either explicitly or by passing checks that would have it be - * click-to-play or play-preview. - */ -/*[ChromeOnly] - readonly attribute boolean activated;*/ - - /** - * The URL of the data/src loaded in the object. This may be null (i.e. - * an <embed> with no src). - */ -/*[ChromeOnly] - readonly attribute URI? srcURI; - - [ChromeOnly] - readonly attribute unsigned long defaultFallbackType; - - [ChromeOnly] - readonly attribute unsigned long pluginFallbackType;*/ - - /** - * If this object currently owns a running plugin, regardless of whether or - * not one is pending spawn/despawn. - */ -/*[ChromeOnly] - readonly attribute boolean hasRunningPlugin;*/ - - /** - * This method will disable the play-preview plugin state. - */ - /*[ChromeOnly, Throws] - void cancelPlayPreview();*/ -//}; - -/*HTMLObjectElement implements MozImageLoadingContent; -HTMLObjectElement implements MozFrameLoaderOwner; -HTMLObjectElement implements MozObjectLoadingContent;*/ diff --git a/src/components/script/dom/webidls/HTMLOutputElement.webidl b/src/components/script/dom/webidls/HTMLOutputElement.webidl index e706465d974..a42412bdd1c 100644 --- a/src/components/script/dom/webidls/HTMLOutputElement.webidl +++ b/src/components/script/dom/webidls/HTMLOutputElement.webidl @@ -13,8 +13,6 @@ // http://www.whatwg.org/specs/web-apps/current-work/#the-output-element interface HTMLOutputElement : HTMLElement { - /*[PutForwards=value, Constant] - readonly attribute DOMSettableTokenList htmlFor;*/ readonly attribute HTMLFormElement? form; [SetterThrows, Pure] attribute DOMString name; @@ -31,7 +29,4 @@ interface HTMLOutputElement : HTMLElement { readonly attribute DOMString validationMessage; boolean checkValidity(); void setCustomValidity(DOMString error); - -// Not yet implemented (bug 556743). -// readonly attribute NodeList labels; }; diff --git a/src/components/script/dom/webidls/HTMLProgressElement.webidl b/src/components/script/dom/webidls/HTMLProgressElement.webidl index 99cffb8c35d..fe16df7001c 100644 --- a/src/components/script/dom/webidls/HTMLProgressElement.webidl +++ b/src/components/script/dom/webidls/HTMLProgressElement.webidl @@ -11,17 +11,10 @@ * and create derivative works of this document. */ -// original import from: -// http://hg.mozilla.org/mozilla-central/filelog/8c240c67f76c/dom/webidl/HTMLProgressElement.webidl - interface HTMLProgressElement : HTMLElement { [SetterThrows] attribute double value; [SetterThrows] attribute double max; readonly attribute double position; - -/* - readonly attribute NodeList labels; -*/ }; diff --git a/src/components/script/dom/webidls/HTMLSelectElement.webidl b/src/components/script/dom/webidls/HTMLSelectElement.webidl index bb843fd3f92..6e009e45de7 100644 --- a/src/components/script/dom/webidls/HTMLSelectElement.webidl +++ b/src/components/script/dom/webidls/HTMLSelectElement.webidl @@ -26,8 +26,6 @@ interface HTMLSelectElement : HTMLElement { [Pure] readonly attribute DOMString type; - /*[Constant] - readonly attribute HTMLOptionsCollection options;*/ [SetterThrows, Pure] attribute unsigned long length; getter Element? item(unsigned long index); @@ -38,7 +36,6 @@ interface HTMLSelectElement : HTMLElement { [Throws] setter creator void (unsigned long index, HTMLOptionElement? option); -// NYI: readonly attribute HTMLCollection selectedOptions; [SetterThrows, Pure] attribute long selectedIndex; [Pure] @@ -50,8 +47,6 @@ interface HTMLSelectElement : HTMLElement { boolean checkValidity(); void setCustomValidity(DOMString error); -// NYI: readonly attribute NodeList labels; - // https://www.w3.org/Bugs/Public/show_bug.cgi?id=20720 void remove(); }; diff --git a/src/components/script/dom/webidls/HTMLTableCellElement.webidl b/src/components/script/dom/webidls/HTMLTableCellElement.webidl index b1fed450fac..e67bbf2923e 100644 --- a/src/components/script/dom/webidls/HTMLTableCellElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableCellElement.webidl @@ -16,9 +16,6 @@ interface HTMLTableCellElement : HTMLElement { attribute unsigned long colSpan; [SetterThrows] attribute unsigned long rowSpan; -/* - [PutForwards=value] readonly attribute DOMSettableTokenList headers; -*/ [SetterThrows] attribute DOMString headers; readonly attribute long cellIndex; diff --git a/src/components/script/dom/webidls/HTMLTableElement.webidl b/src/components/script/dom/webidls/HTMLTableElement.webidl index 9cc655a56d6..3d4887b83fb 100644 --- a/src/components/script/dom/webidls/HTMLTableElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableElement.webidl @@ -12,30 +12,9 @@ */ interface HTMLTableElement : HTMLElement { - /* - attribute HTMLTableCaptionElement? caption; - HTMLElement createCaption(); - */ void deleteCaption(); - /* - [SetterThrows] - attribute HTMLTableSectionElement? tHead; - HTMLElement createTHead(); - */ void deleteTHead(); - /* - [SetterThrows] - attribute HTMLTableSectionElement? tFoot; - HTMLElement createTFoot(); - */ void deleteTFoot(); - /* - readonly attribute HTMLCollection tBodies; - HTMLElement createTBody(); - readonly attribute HTMLCollection rows; - [Throws] - HTMLElement insertRow(optional long index = -1); - */ [Throws] void deleteRow(long index); attribute boolean sortable; diff --git a/src/components/script/dom/webidls/HTMLTableHeaderCellElement.webidl b/src/components/script/dom/webidls/HTMLTableHeaderCellElement.webidl index ae5d84d460c..00c2daacdc1 100644 --- a/src/components/script/dom/webidls/HTMLTableHeaderCellElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableHeaderCellElement.webidl @@ -13,10 +13,4 @@ */ interface HTMLTableHeaderCellElement : HTMLTableCellElement { -/* TODO: - attribute DOMString scope; - attribute DOMString abbr; - attribute DOMString sorted; - void sort(); -*/ }; diff --git a/src/components/script/dom/webidls/HTMLTableRowElement.webidl b/src/components/script/dom/webidls/HTMLTableRowElement.webidl index 47b97143130..9a0866373fc 100644 --- a/src/components/script/dom/webidls/HTMLTableRowElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableRowElement.webidl @@ -14,11 +14,6 @@ interface HTMLTableRowElement : HTMLElement { readonly attribute long rowIndex; readonly attribute long sectionRowIndex; -/* - readonly attribute HTMLCollection cells; - [Throws] - HTMLElement insertCell(optional long index = -1); -*/ [Throws] void deleteCell(long index); }; diff --git a/src/components/script/dom/webidls/HTMLTableSectionElement.webidl b/src/components/script/dom/webidls/HTMLTableSectionElement.webidl index 59134222960..e95512c4c0a 100644 --- a/src/components/script/dom/webidls/HTMLTableSectionElement.webidl +++ b/src/components/script/dom/webidls/HTMLTableSectionElement.webidl @@ -12,11 +12,6 @@ */ interface HTMLTableSectionElement : HTMLElement { - /* - readonly attribute HTMLCollection rows; - [Throws] - HTMLElement insertRow(optional long index = -1); - */ [Throws] void deleteRow(long index); }; diff --git a/src/components/script/dom/webidls/HTMLTemplateElement.webidl b/src/components/script/dom/webidls/HTMLTemplateElement.webidl index ef87f656c61..18dd6387189 100644 --- a/src/components/script/dom/webidls/HTMLTemplateElement.webidl +++ b/src/components/script/dom/webidls/HTMLTemplateElement.webidl @@ -9,11 +9,6 @@ * liability, trademark and document use rules apply. */ -// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/HTMLTemplateElement.webidl - interface HTMLTemplateElement : HTMLElement { -/* FIXME: - readonly attribute DocumentFragment content; -*/ }; diff --git a/src/components/script/dom/webidls/HTMLTextAreaElement.webidl b/src/components/script/dom/webidls/HTMLTextAreaElement.webidl index 10c32c989fc..0a1b2255d6c 100644 --- a/src/components/script/dom/webidls/HTMLTextAreaElement.webidl +++ b/src/components/script/dom/webidls/HTMLTextAreaElement.webidl @@ -10,24 +10,14 @@ * Opera Software ASA. You are granted a license to use, reproduce * and create derivative works of this document. */ -/* -interface nsIEditor; -interface MozControllers; -*/ + interface HTMLTextAreaElement : HTMLElement { - // attribute DOMString autocomplete; [SetterThrows, Pure] attribute boolean autofocus; [SetterThrows, Pure] attribute unsigned long cols; - // attribute DOMString dirName; [SetterThrows, Pure] attribute boolean disabled; -/* - [Pure] - readonly attribute HTMLFormElement? form; -*/ - // attribute DOMString inputMode; [SetterThrows, Pure] attribute long maxLength; [SetterThrows, Pure] @@ -51,15 +41,9 @@ interface HTMLTextAreaElement : HTMLElement { readonly attribute unsigned long textLength; readonly attribute boolean willValidate; -/* - readonly attribute ValidityState validity; -*/ readonly attribute DOMString validationMessage; boolean checkValidity(); void setCustomValidity(DOMString error); -/* - readonly attribute NodeList labels; -*/ void select(); [Throws] attribute unsigned long selectionStart; @@ -68,34 +52,4 @@ interface HTMLTextAreaElement : HTMLElement { [Throws] attribute DOMString selectionDirection; void setRangeText(DOMString replacement); -/* - void setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode); - - [Throws] - void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction); -*/ -}; -/* -partial interface HTMLTextAreaElement { - // Mirrored chrome-only Mozilla extensions to nsIDOMHTMLTextAreaElement. - // Please make sure to update this list of nsIDOMHTMLTextAreaElement changes. - - [Throws, ChromeOnly] - readonly attribute MozControllers controllers; -}; - -partial interface HTMLTextAreaElement { - // Mirrored chrome-only nsIDOMNSEditableElement methods. Please make sure - // to update this list if nsIDOMNSEditableElement changes. - - [ChromeOnly] - readonly attribute nsIEditor? editor; - - // 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. - [ChromeOnly] - void setUserInput(DOMString input); }; -*/ diff --git a/src/components/script/dom/webidls/HTMLTrackElement.webidl b/src/components/script/dom/webidls/HTMLTrackElement.webidl index 2cf06ea0d00..87e1911be7d 100644 --- a/src/components/script/dom/webidls/HTMLTrackElement.webidl +++ b/src/components/script/dom/webidls/HTMLTrackElement.webidl @@ -7,11 +7,6 @@ * http://www.whatwg.org/specs/web-apps/current-work/#the-track-element */ -// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/ - -/* -[Pref="media.webvtt.enabled"] -*/ interface HTMLTrackElement : HTMLElement { [SetterThrows, Pure] attribute DOMString kind; diff --git a/src/components/script/dom/webidls/HTMLVideoElement.webidl b/src/components/script/dom/webidls/HTMLVideoElement.webidl index 4663a6addbc..5555732a380 100644 --- a/src/components/script/dom/webidls/HTMLVideoElement.webidl +++ b/src/components/script/dom/webidls/HTMLVideoElement.webidl @@ -11,8 +11,6 @@ * and create derivative works of this document. */ -// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/ - interface HTMLVideoElement : HTMLMediaElement { [SetterThrows] attribute unsigned long width; @@ -23,34 +21,3 @@ interface HTMLVideoElement : HTMLMediaElement { [SetterThrows] 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; -}; - -// https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#idl-def-HTMLVideoElement -partial interface HTMLVideoElement { - [Pref="media.mediasource.enabled", Creator] - VideoPlaybackQuality getVideoPlaybackQuality(); -}; -*/ diff --git a/src/components/script/dom/webidls/Navigator.webidl b/src/components/script/dom/webidls/Navigator.webidl index 6098b756b3e..d90c194dc3d 100644 --- a/src/components/script/dom/webidls/Navigator.webidl +++ b/src/components/script/dom/webidls/Navigator.webidl @@ -6,22 +6,13 @@ * The origin of this IDL file is * http://www.whatwg.org/specs/web-apps/current-work/#the-navigator-object * http://www.w3.org/TR/tracking-dnt/ - * http://www.w3.org/TR/geolocation-API/#geolocation_interface - * http://www.w3.org/TR/battery-status/#navigatorbattery-interface - * http://www.w3.org/TR/vibration/#vibration-interface - * http://www.w3.org/2012/sysapps/runtime/#extension-to-the-navigator-interface-1 - * https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#navigator-interface-extension * * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and * Opera Software ASA. You are granted a license to use, reproduce * and create derivative works of this document. */ -interface MozPowerManager; -interface MozWakeLock; - // http://www.whatwg.org/specs/web-apps/current-work/#the-navigator-object -[HeaderFile="Navigator.h", NeedNewResolve] interface Navigator { // objects implementing this interface also implement the interfaces given below }; @@ -57,86 +48,12 @@ interface NavigatorOnLine { readonly attribute boolean onLine; }; -/* -[NoInterfaceObject] -interface NavigatorContentUtils { - // content handler registration - [Throws] - void registerProtocolHandler(DOMString scheme, DOMString url, DOMString title); - [Throws] - void registerContentHandler(DOMString mimeType, DOMString url, DOMString title); - // NOT IMPLEMENTED - //DOMString isProtocolHandlerRegistered(DOMString scheme, DOMString url); - //DOMString isContentHandlerRegistered(DOMString mimeType, DOMString url); - //void unregisterProtocolHandler(DOMString scheme, DOMString url); - //void unregisterContentHandler(DOMString mimeType, DOMString url); -}; - -[NoInterfaceObject] -interface NavigatorStorageUtils { - // NOT IMPLEMENTED - //void yieldForStorageUpdates(); -}; - -// Things that definitely need to be in the spec and and are not for some -// reason. See https://www.w3.org/Bugs/Public/show_bug.cgi?id=22406 -partial interface Navigator { - [Throws] - readonly attribute MimeTypeArray mimeTypes; - [Throws] - readonly attribute PluginArray plugins; -}; -*/ - // http://www.w3.org/TR/tracking-dnt/ sort of partial interface Navigator { readonly attribute DOMString doNotTrack; }; -/* -// http://www.w3.org/TR/geolocation-API/#geolocation_interface -[NoInterfaceObject] -interface NavigatorGeolocation { - [Throws, Pref="geo.enabled"] - readonly attribute Geolocation geolocation; -}; -Navigator implements NavigatorGeolocation; - -// http://www.w3.org/TR/battery-status/#navigatorbattery-interface -[NoInterfaceObject] -interface NavigatorBattery { - // XXXbz Per spec this should be non-nullable, but we return null in - // torn-down windows. See bug 884925. - [Throws, Func="Navigator::HasBatterySupport"] - readonly attribute BatteryManager? battery; -}; -Navigator implements NavigatorBattery; -*/ - -/* -// http://www.w3.org/TR/vibration/#vibration-interface -partial interface Navigator { - // We don't support sequences in unions yet - //boolean vibrate ((unsigned long or sequence<unsigned long>) pattern); - // XXXbz also, per spec we should be returning a boolean, and we just don't. - // See bug 884935. - [Throws] - void vibrate(unsigned long duration); - [Throws] - void vibrate(sequence<unsigned long> pattern); -}; -*/ - // Mozilla-specific extensions - -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(); -}; - // nsIDOMNavigator partial interface Navigator { // WebKit/Blink/Trident/Presto support this (hardcoded "Mozilla"). @@ -154,192 +71,10 @@ partial interface Navigator { readonly attribute boolean cookieEnabled; [Throws] readonly attribute DOMString buildID; - //[Throws, Func="Navigator::HasPowerSupport"] - //readonly attribute MozPowerManager mozPower; // WebKit/Blink/Trident/Presto support this. [Throws] boolean javaEnabled(); // Everyone but WebKit/Blink supports this. See bug 679971. boolean taintEnabled(); - - /** - * Navigator requests to add an idle observer to the existing window. - */ - //[Throws, Func="Navigator::HasIdleSupport"] - //void addIdleObserver(MozIdleObserver aIdleObserver); - - /** - * Navigator requests to remove an idle observer from the existing window. - */ - //[Throws, Func="Navigator::HasIdleSupport"] - //void removeIdleObserver(MozIdleObserver aIdleObserver); - - /** - * Request a wake lock for a resource. - * - * A page holds a wake lock to request that a resource not be turned - * off (or otherwise made unavailable). - * - * The topic is the name of a resource that might be made unavailable for - * various reasons. For example, on a mobile device the power manager might - * decide to turn off the screen after a period of idle time to save power. - * - * The resource manager checks the lock state of a topic before turning off - * the associated resource. For example, a page could hold a lock on the - * "screen" topic to prevent the screensaver from appearing or the screen - * from turning off. - * - * The resource manager defines what each topic means and sets policy. For - * example, the resource manager might decide to ignore 'screen' wake locks - * held by pages which are not visible. - * - * One topic can be locked multiple times; it is considered released only when - * all locks on the topic have been released. - * - * The returned nsIDOMMozWakeLock object is a token of the lock. You can - * unlock the lock via the object's |unlock| method. The lock is released - * automatically when its associated window is unloaded. - * - * @param aTopic resource name - */ - //[Throws, Func="Navigator::HasWakeLockSupport"] - //MozWakeLock requestWakeLock(DOMString aTopic); -}; - -/* -// nsIDOMNavigatorDeviceStorage -partial interface Navigator { - [Throws, Pref="device.storage.enabled"] - DeviceStorage? getDeviceStorage(DOMString type); - [Throws, Pref="device.storage.enabled"] - sequence<DeviceStorage> getDeviceStorages(DOMString type); -}; - -// nsIDOMNavigatorDesktopNotification -partial interface Navigator { - [Throws, Func="Navigator::HasDesktopNotificationSupport"] - readonly attribute DesktopNotificationCenter mozNotification; -}; - -// nsIDOMClientInformation -partial interface Navigator { - [Throws] - boolean mozIsLocallyAvailable(DOMString uri, boolean whenOffline); -}; - -// nsIDOMMozNavigatorMobileMessage -interface MozMobileMessageManager; -partial interface Navigator { - [Func="Navigator::HasMobileMessageSupport"] - readonly attribute MozMobileMessageManager? mozMobileMessage; -}; - -// nsIDOMMozNavigatorNetwork -interface MozConnection; -partial interface Navigator { - [Pref="dom.network.enabled"] - readonly attribute MozConnection? mozConnection; -}; - -// nsIDOMNavigatorCamera -partial interface Navigator { - [Throws, Func="Navigator::HasCameraSupport"] - readonly attribute CameraManager mozCameras; -}; - -// nsIDOMNavigatorSystemMessages and sort of maybe -// http://www.w3.org/2012/sysapps/runtime/#extension-to-the-navigator-interface-1 -callback systemMessageCallback = void (optional object message); -partial interface Navigator { - [Throws, Pref="dom.sysmsg.enabled"] - void mozSetMessageHandler (DOMString type, systemMessageCallback? callback); - [Throws, Pref="dom.sysmsg.enabled"] - boolean mozHasPendingMessage (DOMString type); -}; - -#ifdef MOZ_B2G_RIL -partial interface Navigator { - [Throws, Func="Navigator::HasTelephonySupport"] - readonly attribute Telephony? mozTelephony; -}; - -// nsIMozNavigatorMobileConnection -interface MozMobileConnection; -partial interface Navigator { - [Throws, Func="Navigator::HasMobileConnectionSupport"] - readonly attribute MozMobileConnection mozMobileConnection; -}; - -partial interface Navigator { - [Throws, Func="Navigator::HasCellBroadcastSupport"] - readonly attribute MozCellBroadcast mozCellBroadcast; -}; - -// nsIMozNavigatorVoicemail -interface MozVoicemail; -partial interface Navigator { - [Throws, Func="Navigator::HasVoicemailSupport"] - readonly attribute MozVoicemail mozVoicemail; -}; - -// nsIMozNavigatorIccManager -interface MozIccManager; -partial interface Navigator { - [Throws, Func="Navigator::HasIccManagerSupport"] - readonly attribute MozIccManager? mozIccManager; -}; -#endif // MOZ_B2G_RIL - -#ifdef MOZ_GAMEPAD -// https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#navigator-interface-extension -partial interface Navigator { - [Throws, Pref="dom.gamepad.enabled"] - sequence<Gamepad?> getGamepads(); -}; -#endif // MOZ_GAMEPAD - -#ifdef MOZ_B2G_BT -partial interface Navigator { - [Throws, Func="Navigator::HasBluetoothSupport"] - readonly attribute BluetoothManager mozBluetooth; -}; -#endif // MOZ_B2G_BT - -#ifdef MOZ_TIME_MANAGER -// nsIDOMMozNavigatorTime -partial interface Navigator { - [Throws, Func="Navigator::HasTimeSupport"] - readonly attribute MozTimeManager mozTime; -}; -#endif // MOZ_TIME_MANAGER - -#ifdef MOZ_AUDIO_CHANNEL_MANAGER -// nsIMozNavigatorAudioChannelManager -partial interface Navigator { - [Throws] - readonly attribute AudioChannelManager mozAudioChannelManager; -}; -#endif // MOZ_AUDIO_CHANNEL_MANAGER - -#ifdef MOZ_MEDIA_NAVIGATOR -// nsIDOMNavigatorUserMedia -callback MozDOMGetUserMediaSuccessCallback = void (nsISupports? value); -callback MozDOMGetUserMediaErrorCallback = void (DOMString error); -interface MozMediaStreamOptions; -partial interface Navigator { - [Throws, Func="Navigator::HasUserMediaSupport"] - void mozGetUserMedia(MozMediaStreamOptions? params, - MozDOMGetUserMediaSuccessCallback? onsuccess, - MozDOMGetUserMediaErrorCallback? onerror); -}; - -// nsINavigatorUserMedia -callback MozGetUserMediaDevicesSuccessCallback = void (nsIVariant? devices); -partial interface Navigator { - [Throws, ChromeOnly] - void mozGetUserMediaDevices(MozGetUserMediaDevicesSuccessCallback? onsuccess, - MozDOMGetUserMediaErrorCallback? onerror); }; -#endif // MOZ_MEDIA_NAVIGATOR -*/
\ No newline at end of file diff --git a/src/components/script/dom/webidls/Node.webidl b/src/components/script/dom/webidls/Node.webidl index c81a4228ae2..f21d528be26 100644 --- a/src/components/script/dom/webidls/Node.webidl +++ b/src/components/script/dom/webidls/Node.webidl @@ -3,17 +3,10 @@ * 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/. * - * The origin of this IDL file is - * http://www.w3.org/TR/2012/WD-dom-20120105/ - * - * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C - * liability, trademark and document use rules apply. + * The origin of this IDL file is: + * http://dom.spec.whatwg.org/#interface-node */ -/*interface Principal; -interface URI; -interface UserDataHandler;*/ - interface Node : EventTarget { const unsigned short ELEMENT_NODE = 1; const unsigned short ATTRIBUTE_NODE = 2; // historical @@ -96,12 +89,4 @@ interface Node : EventTarget { readonly attribute DOMString? localName; boolean hasAttributes(); - /*[Throws, Func="nsINode::IsChromeOrXBL"] - any setUserData(DOMString key, any data, UserDataHandler? handler); - [Throws, Func="nsINode::IsChromeOrXBL"] - any getUserData(DOMString key);*/ - /*[ChromeOnly] - readonly attribute Principal nodePrincipal; - [ChromeOnly] - readonly attribute URI? baseURIObject;*/ }; diff --git a/src/components/script/dom/webidls/NodeList.webidl b/src/components/script/dom/webidls/NodeList.webidl index 9b7d9dc3a7e..9773f8efcef 100644 --- a/src/components/script/dom/webidls/NodeList.webidl +++ b/src/components/script/dom/webidls/NodeList.webidl @@ -3,11 +3,8 @@ * 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/. * - * The origin of this IDL file is - * http://www.w3.org/TR/2012/WD-dom-20120105/ - * - * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C - * liability, trademark and document use rules apply. + * The origin of this IDL file is: + * http://dom.spec.whatwg.org/#interface-nodelist */ interface NodeList { |