mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Partial fix for 12415
This commit is contained in:
parent
887507b6f8
commit
ab0ddf9040
51 changed files with 35 additions and 115 deletions
|
@ -7,7 +7,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface Attr {
|
interface Attr {
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute DOMString? namespaceURI;
|
readonly attribute DOMString? namespaceURI;
|
||||||
|
|
|
@ -18,7 +18,7 @@ dictionary RequestDeviceOptions {
|
||||||
boolean acceptAllDevices = false;
|
boolean acceptAllDevices = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
|
[Pref="dom.bluetooth.enabled"]
|
||||||
interface Bluetooth {
|
interface Bluetooth {
|
||||||
// [SecureContext]
|
// [SecureContext]
|
||||||
// readonly attribute BluetoothDevice? referringDevice;
|
// readonly attribute BluetoothDevice? referringDevice;
|
||||||
|
|
|
@ -12,7 +12,7 @@ interface BluetoothServiceDataMap {
|
||||||
readonly maplike<UUID, DataView>;
|
readonly maplike<UUID, DataView>;
|
||||||
};*/
|
};*/
|
||||||
|
|
||||||
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
|
[Pref="dom.bluetooth.enabled"]
|
||||||
interface BluetoothAdvertisingData {
|
interface BluetoothAdvertisingData {
|
||||||
readonly attribute unsigned short? appearance;
|
readonly attribute unsigned short? appearance;
|
||||||
readonly attribute byte? txPower;
|
readonly attribute byte? txPower;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://webbluetoothcg.github.io/web-bluetooth/#characteristicproperties
|
// https://webbluetoothcg.github.io/web-bluetooth/#characteristicproperties
|
||||||
|
|
||||||
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
|
[Pref="dom.bluetooth.enabled"]
|
||||||
interface BluetoothCharacteristicProperties {
|
interface BluetoothCharacteristicProperties {
|
||||||
readonly attribute boolean broadcast;
|
readonly attribute boolean broadcast;
|
||||||
readonly attribute boolean read;
|
readonly attribute boolean read;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothdevice
|
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothdevice
|
||||||
|
|
||||||
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
|
[Pref="dom.bluetooth.enabled"]
|
||||||
interface BluetoothDevice {
|
interface BluetoothDevice {
|
||||||
readonly attribute DOMString id;
|
readonly attribute DOMString id;
|
||||||
readonly attribute DOMString? name;
|
readonly attribute DOMString? name;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattcharacteristic
|
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattcharacteristic
|
||||||
|
|
||||||
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
|
[Pref="dom.bluetooth.enabled"]
|
||||||
interface BluetoothRemoteGATTCharacteristic {
|
interface BluetoothRemoteGATTCharacteristic {
|
||||||
readonly attribute BluetoothRemoteGATTService service;
|
readonly attribute BluetoothRemoteGATTService service;
|
||||||
readonly attribute DOMString uuid;
|
readonly attribute DOMString uuid;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// http://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattdescriptor
|
// http://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattdescriptor
|
||||||
|
|
||||||
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
|
[Pref="dom.bluetooth.enabled"]
|
||||||
interface BluetoothRemoteGATTDescriptor {
|
interface BluetoothRemoteGATTDescriptor {
|
||||||
readonly attribute BluetoothRemoteGATTCharacteristic characteristic;
|
readonly attribute BluetoothRemoteGATTCharacteristic characteristic;
|
||||||
readonly attribute DOMString uuid;
|
readonly attribute DOMString uuid;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
//https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattserver
|
//https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattserver
|
||||||
|
|
||||||
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
|
[Pref="dom.bluetooth.enabled"]
|
||||||
interface BluetoothRemoteGATTServer {
|
interface BluetoothRemoteGATTServer {
|
||||||
readonly attribute BluetoothDevice device;
|
readonly attribute BluetoothDevice device;
|
||||||
readonly attribute boolean connected;
|
readonly attribute boolean connected;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattservice
|
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattservice
|
||||||
|
|
||||||
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
|
[Pref="dom.bluetooth.enabled"]
|
||||||
interface BluetoothRemoteGATTService {
|
interface BluetoothRemoteGATTService {
|
||||||
readonly attribute BluetoothDevice device;
|
readonly attribute BluetoothDevice device;
|
||||||
readonly attribute DOMString uuid;
|
readonly attribute DOMString uuid;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothuuid
|
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothuuid
|
||||||
|
|
||||||
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
|
[Pref="dom.bluetooth.enabled"]
|
||||||
interface BluetoothUUID {
|
interface BluetoothUUID {
|
||||||
[Throws]
|
[Throws]
|
||||||
static UUID getService(BluetoothServiceUUID name);
|
static UUID getService(BluetoothServiceUUID name);
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Abstract, Exposed=(Window,Worker)]
|
[Abstract]
|
||||||
interface CharacterData : Node {
|
interface CharacterData : Node {
|
||||||
[Pure, TreatNullAs=EmptyString] attribute DOMString data;
|
[Pure, TreatNullAs=EmptyString] attribute DOMString data;
|
||||||
[Pure] readonly attribute unsigned long length;
|
[Pure] readonly attribute unsigned long length;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* https://dom.spec.whatwg.org/#interface-childnode
|
* https://dom.spec.whatwg.org/#interface-childnode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject]
|
||||||
interface ChildNode {
|
interface ChildNode {
|
||||||
[Throws, Unscopable]
|
[Throws, Unscopable]
|
||||||
void before((Node or DOMString)... nodes);
|
void before((Node or DOMString)... nodes);
|
||||||
|
@ -18,7 +18,7 @@ interface ChildNode {
|
||||||
void remove();
|
void remove();
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject]
|
||||||
interface NonDocumentTypeChildNode {
|
interface NonDocumentTypeChildNode {
|
||||||
[Pure]
|
[Pure]
|
||||||
readonly attribute Element? previousElementSibling;
|
readonly attribute Element? previousElementSibling;
|
||||||
|
|
|
@ -9,6 +9,6 @@
|
||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Constructor(optional DOMString data = ""), Exposed=(Window,Worker)]
|
[Constructor(optional DOMString data = "")]
|
||||||
interface Comment : CharacterData {
|
interface Comment : CharacterData {
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
* related or neighboring rights to this work.
|
* related or neighboring rights to this work.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface DOMImplementation {
|
interface DOMImplementation {
|
||||||
[NewObject, Throws]
|
[NewObject, Throws]
|
||||||
DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId,
|
DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId,
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#interface-document
|
// https://dom.spec.whatwg.org/#interface-document
|
||||||
[Constructor, Exposed=(Window,Worker)]
|
[Constructor]
|
||||||
interface Document : Node {
|
interface Document : Node {
|
||||||
[SameObject]
|
[SameObject]
|
||||||
readonly attribute DOMImplementation implementation;
|
readonly attribute DOMImplementation implementation;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#interface-documentfragment
|
// https://dom.spec.whatwg.org/#interface-documentfragment
|
||||||
[Constructor, Exposed=(Window,Worker)]
|
[Constructor]
|
||||||
interface DocumentFragment : Node {
|
interface DocumentFragment : Node {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface DocumentType : Node {
|
interface DocumentType : Node {
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute DOMString name;
|
readonly attribute DOMString name;
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface Element : Node {
|
interface Element : Node {
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute DOMString? namespaceURI;
|
readonly attribute DOMString? namespaceURI;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://w3c.github.io/uievents/#interface-FocusEvent
|
// https://w3c.github.io/uievents/#interface-FocusEvent
|
||||||
[Constructor(DOMString typeArg, optional FocusEventInit focusEventInitDict), Exposed=(Window,Worker)]
|
[Constructor(DOMString typeArg, optional FocusEventInit focusEventInitDict)]
|
||||||
interface FocusEvent : UIEvent {
|
interface FocusEvent : UIEvent {
|
||||||
readonly attribute EventTarget? relatedTarget;
|
readonly attribute EventTarget? relatedTarget;
|
||||||
};
|
};
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
[Pref="dom.forcetouch.enabled", Exposed=(Window,Worker)]
|
[Pref="dom.forcetouch.enabled"]
|
||||||
interface ForceTouchEvent : UIEvent {
|
interface ForceTouchEvent : UIEvent {
|
||||||
// Represents the amount of force required to perform a regular click.
|
// Represents the amount of force required to perform a regular click.
|
||||||
readonly attribute float SERVO_FORCE_AT_MOUSE_DOWN;
|
readonly attribute float SERVO_FORCE_AT_MOUSE_DOWN;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#interface-htmlcollection
|
// https://dom.spec.whatwg.org/#interface-htmlcollection
|
||||||
|
|
||||||
[LegacyUnenumerableNamedProperties, Exposed=(Window,Worker)]
|
[LegacyUnenumerableNamedProperties]
|
||||||
interface HTMLCollection {
|
interface HTMLCollection {
|
||||||
[Pure]
|
[Pure]
|
||||||
readonly attribute unsigned long length;
|
readonly attribute unsigned long length;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlelement
|
// https://html.spec.whatwg.org/multipage/#htmlelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLElement : Element {
|
interface HTMLElement : Element {
|
||||||
// metadata attributes
|
// metadata attributes
|
||||||
attribute DOMString title;
|
attribute DOMString title;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlformcontrolscollection
|
// https://html.spec.whatwg.org/multipage/#htmlformcontrolscollection
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLFormControlsCollection : HTMLCollection {
|
interface HTMLFormControlsCollection : HTMLCollection {
|
||||||
// inherits length and item()
|
// inherits length and item()
|
||||||
getter (RadioNodeList or Element)? namedItem(DOMString name); // shadows inherited namedItem()
|
getter (RadioNodeList or Element)? namedItem(DOMString name); // shadows inherited namedItem()
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlformelement
|
// https://html.spec.whatwg.org/multipage/#htmlformelement
|
||||||
//[OverrideBuiltins]
|
//[OverrideBuiltins]
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLFormElement : HTMLElement {
|
interface HTMLFormElement : HTMLElement {
|
||||||
attribute DOMString acceptCharset;
|
attribute DOMString acceptCharset;
|
||||||
attribute DOMString action;
|
attribute DOMString action;
|
||||||
|
|
|
@ -3,5 +3,4 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlheadelement
|
// https://html.spec.whatwg.org/multipage/#htmlheadelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLHeadElement : HTMLElement {};
|
interface HTMLHeadElement : HTMLElement {};
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmloptionscollection
|
// https://html.spec.whatwg.org/multipage/#htmloptionscollection
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLOptionsCollection : HTMLCollection {
|
interface HTMLOptionsCollection : HTMLCollection {
|
||||||
// inherits item(), namedItem()
|
// inherits item(), namedItem()
|
||||||
attribute unsigned long length; // shadows inherited length
|
attribute unsigned long length; // shadows inherited length
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlscriptelement
|
// https://html.spec.whatwg.org/multipage/#htmlscriptelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLScriptElement : HTMLElement {
|
interface HTMLScriptElement : HTMLElement {
|
||||||
attribute DOMString src;
|
attribute DOMString src;
|
||||||
attribute DOMString type;
|
attribute DOMString type;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Constructor(DOMString typeArg, optional KeyboardEventInit keyboardEventInitDict), Exposed=(Window,Worker)]
|
[Constructor(DOMString typeArg, optional KeyboardEventInit keyboardEventInitDict)]
|
||||||
interface KeyboardEvent : UIEvent {
|
interface KeyboardEvent : UIEvent {
|
||||||
// KeyLocationCode
|
// KeyLocationCode
|
||||||
const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;
|
const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://w3c.github.io/uievents/#interface-mouseevent
|
// https://w3c.github.io/uievents/#interface-mouseevent
|
||||||
[Constructor(DOMString typeArg, optional MouseEventInit mouseEventInitDict), Exposed=(Window,Worker)]
|
[Constructor(DOMString typeArg, optional MouseEventInit mouseEventInitDict)]
|
||||||
interface MouseEvent : UIEvent {
|
interface MouseEvent : UIEvent {
|
||||||
readonly attribute long screenX;
|
readonly attribute long screenX;
|
||||||
readonly attribute long screenY;
|
readonly attribute long screenY;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#interface-namednodemap
|
// https://dom.spec.whatwg.org/#interface-namednodemap
|
||||||
|
|
||||||
[LegacyUnenumerableNamedProperties, Exposed=(Window,Worker)]
|
[LegacyUnenumerableNamedProperties]
|
||||||
interface NamedNodeMap {
|
interface NamedNodeMap {
|
||||||
[Pure]
|
[Pure]
|
||||||
readonly attribute unsigned long length;
|
readonly attribute unsigned long length;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#navigator
|
// https://html.spec.whatwg.org/multipage/#navigator
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface Navigator {
|
interface Navigator {
|
||||||
// objects implementing this interface also implement the interfaces given below
|
// objects implementing this interface also implement the interfaces given below
|
||||||
};
|
};
|
||||||
|
@ -28,7 +27,7 @@ interface NavigatorID {
|
||||||
readonly attribute DOMString userAgent;
|
readonly attribute DOMString userAgent;
|
||||||
};
|
};
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject]
|
||||||
interface NavigatorBluetooth {
|
interface NavigatorBluetooth {
|
||||||
readonly attribute Bluetooth bluetooth;
|
readonly attribute Bluetooth bluetooth;
|
||||||
};
|
};
|
||||||
|
@ -47,7 +46,7 @@ interface NavigatorLanguage {
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#navigatorplugins
|
// https://html.spec.whatwg.org/multipage/#navigatorplugins
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject]
|
||||||
interface NavigatorPlugins {
|
interface NavigatorPlugins {
|
||||||
[SameObject] readonly attribute PluginArray plugins;
|
[SameObject] readonly attribute PluginArray plugins;
|
||||||
[SameObject] readonly attribute MimeTypeArray mimeTypes;
|
[SameObject] readonly attribute MimeTypeArray mimeTypes;
|
||||||
|
@ -55,7 +54,7 @@ interface NavigatorPlugins {
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#navigatorcookies
|
// https://html.spec.whatwg.org/multipage/#navigatorcookies
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject]
|
||||||
interface NavigatorCookies {
|
interface NavigatorCookies {
|
||||||
readonly attribute boolean cookieEnabled;
|
readonly attribute boolean cookieEnabled;
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* https://dom.spec.whatwg.org/#interface-node
|
* https://dom.spec.whatwg.org/#interface-node
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Abstract, Exposed=(Window,Worker)]
|
[Abstract]
|
||||||
interface Node : EventTarget {
|
interface Node : EventTarget {
|
||||||
const unsigned short ELEMENT_NODE = 1;
|
const unsigned short ELEMENT_NODE = 1;
|
||||||
const unsigned short ATTRIBUTE_NODE = 2; // historical
|
const unsigned short ATTRIBUTE_NODE = 2; // historical
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
*/
|
*/
|
||||||
// Import from http://hg.mozilla.org/mozilla-central/file/a5a720259d79/dom/webidl/NodeFilter.webidl
|
// Import from http://hg.mozilla.org/mozilla-central/file/a5a720259d79/dom/webidl/NodeFilter.webidl
|
||||||
|
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
callback interface NodeFilter {
|
callback interface NodeFilter {
|
||||||
// Constants for acceptNode()
|
// Constants for acceptNode()
|
||||||
const unsigned short FILTER_ACCEPT = 1;
|
const unsigned short FILTER_ACCEPT = 1;
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
*/
|
*/
|
||||||
// Import from http://hg.mozilla.org/mozilla-central/raw-file/a5a720259d79/dom/webidl/NodeIterator.webidl
|
// Import from http://hg.mozilla.org/mozilla-central/raw-file/a5a720259d79/dom/webidl/NodeIterator.webidl
|
||||||
|
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface NodeIterator {
|
interface NodeIterator {
|
||||||
[SameObject]
|
[SameObject]
|
||||||
readonly attribute Node root;
|
readonly attribute Node root;
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
* https://dom.spec.whatwg.org/#interface-nodelist
|
* https://dom.spec.whatwg.org/#interface-nodelist
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface NodeList {
|
interface NodeList {
|
||||||
[Pure]
|
[Pure]
|
||||||
getter Node? item(unsigned long index);
|
getter Node? item(unsigned long index);
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#nonelementparentnode
|
// https://dom.spec.whatwg.org/#nonelementparentnode
|
||||||
[NoInterfaceObject,
|
[NoInterfaceObject]
|
||||||
Exposed=(Window,Worker)]
|
|
||||||
interface NonElementParentNode {
|
interface NonElementParentNode {
|
||||||
[Pure]
|
[Pure]
|
||||||
Element? getElementById(DOMString elementId);
|
Element? getElementById(DOMString elementId);
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* https://dom.spec.whatwg.org/#interface-parentnode
|
* https://dom.spec.whatwg.org/#interface-parentnode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject]
|
||||||
interface ParentNode {
|
interface ParentNode {
|
||||||
[SameObject]
|
[SameObject]
|
||||||
readonly attribute HTMLCollection children;
|
readonly attribute HTMLCollection children;
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
* https://dom.spec.whatwg.org/#interface-processinginstruction
|
* https://dom.spec.whatwg.org/#interface-processinginstruction
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface ProcessingInstruction : CharacterData {
|
interface ProcessingInstruction : CharacterData {
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute DOMString target;
|
readonly attribute DOMString target;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#radionodelist
|
// https://html.spec.whatwg.org/multipage/#radionodelist
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface RadioNodeList : NodeList {
|
interface RadioNodeList : NodeList {
|
||||||
attribute DOMString value;
|
attribute DOMString value;
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
* http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom-view/Overview.html#extensions-to-the-range-interface
|
* http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom-view/Overview.html#extensions-to-the-range-interface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Constructor, Exposed=(Window,Worker)]
|
[Constructor]
|
||||||
interface Range {
|
interface Range {
|
||||||
[Pure]
|
[Pure]
|
||||||
readonly attribute Node startContainer;
|
readonly attribute Node startContainer;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#text
|
// https://dom.spec.whatwg.org/#text
|
||||||
[Constructor(optional DOMString data = ""), Exposed=(Window,Worker)]
|
[Constructor(optional DOMString data = "")]
|
||||||
interface Text : CharacterData {
|
interface Text : CharacterData {
|
||||||
[NewObject, Throws]
|
[NewObject, Throws]
|
||||||
Text splitText(unsigned long offset);
|
Text splitText(unsigned long offset);
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// http://w3c.github.io/touch-events/#idl-def-TouchEvent
|
// http://w3c.github.io/touch-events/#idl-def-TouchEvent
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface TouchEvent : UIEvent {
|
interface TouchEvent : UIEvent {
|
||||||
readonly attribute TouchList touches;
|
readonly attribute TouchList touches;
|
||||||
readonly attribute TouchList targetTouches;
|
readonly attribute TouchList targetTouches;
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
* https://dom.spec.whatwg.org/#interface-treewalker
|
* https://dom.spec.whatwg.org/#interface-treewalker
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface TreeWalker {
|
interface TreeWalker {
|
||||||
[SameObject]
|
[SameObject]
|
||||||
readonly attribute Node root;
|
readonly attribute Node root;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://w3c.github.io/uievents/#interface-uievent
|
// https://w3c.github.io/uievents/#interface-uievent
|
||||||
[Constructor(DOMString type, optional UIEventInit eventInitDict), Exposed=(Window,Worker)]
|
[Constructor(DOMString type, optional UIEventInit eventInitDict)]
|
||||||
interface UIEvent : Event {
|
interface UIEvent : Event {
|
||||||
// readonly attribute WindowProxy? view;
|
// readonly attribute WindowProxy? view;
|
||||||
readonly attribute Window? view;
|
readonly attribute Window? view;
|
||||||
|
@ -18,7 +18,6 @@ dictionary UIEventInit : EventInit {
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://w3c.github.io/uievents/#idl-interface-UIEvent-initializers
|
// https://w3c.github.io/uievents/#idl-interface-UIEvent-initializers
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
partial interface UIEvent {
|
partial interface UIEvent {
|
||||||
// Deprecated in DOM Level 3
|
// Deprecated in DOM Level 3
|
||||||
void initUIEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg, Window? viewArg, long detailArg);
|
void initUIEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg, Window? viewArg, long detailArg);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#window
|
// https://html.spec.whatwg.org/multipage/#window
|
||||||
[PrimaryGlobal, Exposed=(Window,Worker)]
|
[PrimaryGlobal]
|
||||||
/*sealed*/ interface Window : GlobalScope {
|
/*sealed*/ interface Window : GlobalScope {
|
||||||
// the current browsing context
|
// the current browsing context
|
||||||
[Unforgeable] readonly attribute WindowProxy window;
|
[Unforgeable] readonly attribute WindowProxy window;
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
Window implements GlobalEventHandlers;
|
Window implements GlobalEventHandlers;
|
||||||
Window implements WindowEventHandlers;
|
Window implements WindowEventHandlers;
|
||||||
|
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject]
|
||||||
interface WindowProxy {};
|
interface WindowProxy {};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#timers
|
// https://html.spec.whatwg.org/multipage/#timers
|
||||||
|
@ -170,14 +170,14 @@ partial interface Window {
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-sessionstorage
|
// https://html.spec.whatwg.org/multipage/#dom-sessionstorage
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject]
|
||||||
interface WindowSessionStorage {
|
interface WindowSessionStorage {
|
||||||
readonly attribute Storage sessionStorage;
|
readonly attribute Storage sessionStorage;
|
||||||
};
|
};
|
||||||
Window implements WindowSessionStorage;
|
Window implements WindowSessionStorage;
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-localstorage
|
// https://html.spec.whatwg.org/multipage/#dom-localstorage
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject]
|
||||||
interface WindowLocalStorage {
|
interface WindowLocalStorage {
|
||||||
readonly attribute Storage localStorage;
|
readonly attribute Storage localStorage;
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,5 +8,4 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#interface-document
|
// https://dom.spec.whatwg.org/#interface-document
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface XMLDocument : Document {};
|
interface XMLDocument : Document {};
|
||||||
|
|
|
@ -69,6 +69,5 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
|
||||||
readonly attribute any response;
|
readonly attribute any response;
|
||||||
[Throws]
|
[Throws]
|
||||||
readonly attribute USVString responseText;
|
readonly attribute USVString responseText;
|
||||||
[Throws]
|
[Throws, Exposed=Window] readonly attribute Document? responseXML;
|
||||||
/*[Exposed=Window]*/ readonly attribute Document? responseXML;
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -39,9 +39,6 @@
|
||||||
[FileReaderSync interface: calling readAsDataURL(Blob) on new FileReaderSync() with too few arguments must throw TypeError]
|
[FileReaderSync interface: calling readAsDataURL(Blob) on new FileReaderSync() with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Window interface: existence and properties of interface object]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[ArrayBuffer interface: existence and properties of interface object]
|
[ArrayBuffer interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -162,9 +162,6 @@
|
||||||
[SubtleCrypto interface: calling unwrapKey(KeyFormat,BufferSource,CryptoKey,AlgorithmIdentifier,AlgorithmIdentifier,boolean,[object Object\]) on crypto.subtle with too few arguments must throw TypeError]
|
[SubtleCrypto interface: calling unwrapKey(KeyFormat,BufferSource,CryptoKey,AlgorithmIdentifier,AlgorithmIdentifier,boolean,[object Object\]) on crypto.subtle with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Window interface: existence and properties of interface object]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[ArrayBuffer interface: existence and properties of interface object]
|
[ArrayBuffer interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -3,15 +3,6 @@
|
||||||
[The Location interface object should not be exposed.]
|
[The Location interface object should not be exposed.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[The Navigator interface object should not be exposed.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[The DOMImplementation interface object should not be exposed.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[The MouseEvent interface object should not be exposed.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[The PopStateEvent interface object should not be exposed.]
|
[The PopStateEvent interface object should not be exposed.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -20,13 +11,3 @@
|
||||||
|
|
||||||
[The PageTransitionEvent interface object should not be exposed.]
|
[The PageTransitionEvent interface object should not be exposed.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[The UIEvent interface object should not be exposed.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[The FocusEvent interface object should not be exposed.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[The KeyboardEvent interface object should not be exposed.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,8 @@ importScripts("interfaces.js");
|
||||||
|
|
||||||
// IMPORTANT: Do not change the list below without review from a DOM peer!
|
// IMPORTANT: Do not change the list below without review from a DOM peer!
|
||||||
test_interfaces([
|
test_interfaces([
|
||||||
"Attr",
|
|
||||||
"BeforeUnloadEvent",
|
"BeforeUnloadEvent",
|
||||||
"Blob",
|
"Blob",
|
||||||
"CharacterData",
|
|
||||||
"CloseEvent",
|
"CloseEvent",
|
||||||
"CSS",
|
"CSS",
|
||||||
"CSSStyleDeclaration",
|
"CSSStyleDeclaration",
|
||||||
|
@ -19,17 +17,11 @@ test_interfaces([
|
||||||
"DOMQuad",
|
"DOMQuad",
|
||||||
"DOMRect",
|
"DOMRect",
|
||||||
"DOMRectReadOnly",
|
"DOMRectReadOnly",
|
||||||
"Comment",
|
|
||||||
"CustomEvent",
|
"CustomEvent",
|
||||||
"DedicatedWorkerGlobalScope",
|
"DedicatedWorkerGlobalScope",
|
||||||
"Document",
|
|
||||||
"DocumentFragment",
|
|
||||||
"DocumentType",
|
|
||||||
"DOMException",
|
"DOMException",
|
||||||
"DOMImplementation",
|
|
||||||
"DOMTokenList",
|
"DOMTokenList",
|
||||||
"DOMStringMap",
|
"DOMStringMap",
|
||||||
"Element",
|
|
||||||
"ErrorEvent",
|
"ErrorEvent",
|
||||||
"Event",
|
"Event",
|
||||||
"EventTarget",
|
"EventTarget",
|
||||||
|
@ -37,42 +29,23 @@ test_interfaces([
|
||||||
"FileList",
|
"FileList",
|
||||||
"FileReader",
|
"FileReader",
|
||||||
"FileReaderSync",
|
"FileReaderSync",
|
||||||
"FocusEvent",
|
|
||||||
"FormData",
|
"FormData",
|
||||||
"HashChangeEvent",
|
"HashChangeEvent",
|
||||||
"Headers",
|
"Headers",
|
||||||
"History",
|
"History",
|
||||||
"HTMLCollection",
|
|
||||||
"HTMLElement",
|
|
||||||
"HTMLFormControlsCollection",
|
|
||||||
"HTMLFormElement",
|
|
||||||
"HTMLHeadElement",
|
|
||||||
"HTMLOptionsCollection",
|
|
||||||
"HTMLScriptElement",
|
|
||||||
"ImageData",
|
"ImageData",
|
||||||
"KeyboardEvent",
|
|
||||||
"Location",
|
"Location",
|
||||||
"MediaError",
|
"MediaError",
|
||||||
"MessageEvent",
|
"MessageEvent",
|
||||||
"MimeType",
|
"MimeType",
|
||||||
"MimeTypeArray",
|
"MimeTypeArray",
|
||||||
"MouseEvent",
|
|
||||||
"NamedNodeMap",
|
|
||||||
"Navigator",
|
|
||||||
"Node",
|
|
||||||
"NodeFilter",
|
|
||||||
"NodeIterator",
|
|
||||||
"NodeList",
|
|
||||||
"PageTransitionEvent",
|
"PageTransitionEvent",
|
||||||
"Performance",
|
"Performance",
|
||||||
"PerformanceTiming",
|
"PerformanceTiming",
|
||||||
"Plugin",
|
"Plugin",
|
||||||
"PluginArray",
|
"PluginArray",
|
||||||
"PopStateEvent",
|
"PopStateEvent",
|
||||||
"ProcessingInstruction",
|
|
||||||
"ProgressEvent",
|
"ProgressEvent",
|
||||||
"RadioNodeList",
|
|
||||||
"Range",
|
|
||||||
"Request",
|
"Request",
|
||||||
"Response",
|
"Response",
|
||||||
"Screen",
|
"Screen",
|
||||||
|
@ -80,24 +53,18 @@ test_interfaces([
|
||||||
"StorageEvent",
|
"StorageEvent",
|
||||||
"StyleSheet",
|
"StyleSheet",
|
||||||
"StyleSheetList",
|
"StyleSheetList",
|
||||||
"Text",
|
|
||||||
"TextDecoder",
|
"TextDecoder",
|
||||||
"TextEncoder",
|
"TextEncoder",
|
||||||
"Touch",
|
"Touch",
|
||||||
"TouchEvent",
|
|
||||||
"TouchList",
|
"TouchList",
|
||||||
"TreeWalker",
|
|
||||||
"UIEvent",
|
|
||||||
"URL",
|
"URL",
|
||||||
"URLSearchParams",
|
"URLSearchParams",
|
||||||
"ValidityState",
|
"ValidityState",
|
||||||
"WebSocket",
|
"WebSocket",
|
||||||
"Window",
|
|
||||||
"Worker",
|
"Worker",
|
||||||
"WorkerGlobalScope",
|
"WorkerGlobalScope",
|
||||||
"WorkerLocation",
|
"WorkerLocation",
|
||||||
"WorkerNavigator",
|
"WorkerNavigator",
|
||||||
"XMLDocument",
|
|
||||||
"XMLHttpRequest",
|
"XMLHttpRequest",
|
||||||
"XMLHttpRequestEventTarget",
|
"XMLHttpRequestEventTarget",
|
||||||
"XMLHttpRequestUpload",
|
"XMLHttpRequestUpload",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue