Partial fix for 12415

This commit is contained in:
Scott Trinh 2016-10-17 14:26:34 -04:00
parent 887507b6f8
commit ab0ddf9040
51 changed files with 35 additions and 115 deletions

View file

@ -7,7 +7,6 @@
*
*/
[Exposed=(Window,Worker)]
interface Attr {
[Constant]
readonly attribute DOMString? namespaceURI;

View file

@ -18,7 +18,7 @@ dictionary RequestDeviceOptions {
boolean acceptAllDevices = false;
};
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
[Pref="dom.bluetooth.enabled"]
interface Bluetooth {
// [SecureContext]
// readonly attribute BluetoothDevice? referringDevice;

View file

@ -12,7 +12,7 @@ interface BluetoothServiceDataMap {
readonly maplike<UUID, DataView>;
};*/
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
[Pref="dom.bluetooth.enabled"]
interface BluetoothAdvertisingData {
readonly attribute unsigned short? appearance;
readonly attribute byte? txPower;

View file

@ -4,7 +4,7 @@
// https://webbluetoothcg.github.io/web-bluetooth/#characteristicproperties
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
[Pref="dom.bluetooth.enabled"]
interface BluetoothCharacteristicProperties {
readonly attribute boolean broadcast;
readonly attribute boolean read;

View file

@ -4,7 +4,7 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothdevice
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
[Pref="dom.bluetooth.enabled"]
interface BluetoothDevice {
readonly attribute DOMString id;
readonly attribute DOMString? name;

View file

@ -4,7 +4,7 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattcharacteristic
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
[Pref="dom.bluetooth.enabled"]
interface BluetoothRemoteGATTCharacteristic {
readonly attribute BluetoothRemoteGATTService service;
readonly attribute DOMString uuid;

View file

@ -4,7 +4,7 @@
// http://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattdescriptor
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
[Pref="dom.bluetooth.enabled"]
interface BluetoothRemoteGATTDescriptor {
readonly attribute BluetoothRemoteGATTCharacteristic characteristic;
readonly attribute DOMString uuid;

View file

@ -4,7 +4,7 @@
//https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattserver
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
[Pref="dom.bluetooth.enabled"]
interface BluetoothRemoteGATTServer {
readonly attribute BluetoothDevice device;
readonly attribute boolean connected;

View file

@ -4,7 +4,7 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattservice
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
[Pref="dom.bluetooth.enabled"]
interface BluetoothRemoteGATTService {
readonly attribute BluetoothDevice device;
readonly attribute DOMString uuid;

View file

@ -4,7 +4,7 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothuuid
[Pref="dom.bluetooth.enabled", Exposed=(Window,Worker)]
[Pref="dom.bluetooth.enabled"]
interface BluetoothUUID {
[Throws]
static UUID getService(BluetoothServiceUUID name);

View file

@ -9,7 +9,7 @@
* liability, trademark and document use rules apply.
*/
[Abstract, Exposed=(Window,Worker)]
[Abstract]
interface CharacterData : Node {
[Pure, TreatNullAs=EmptyString] attribute DOMString data;
[Pure] readonly attribute unsigned long length;

View file

@ -6,7 +6,7 @@
* https://dom.spec.whatwg.org/#interface-childnode
*/
[NoInterfaceObject, Exposed=(Window,Worker)]
[NoInterfaceObject]
interface ChildNode {
[Throws, Unscopable]
void before((Node or DOMString)... nodes);
@ -18,7 +18,7 @@ interface ChildNode {
void remove();
};
[NoInterfaceObject, Exposed=(Window,Worker)]
[NoInterfaceObject]
interface NonDocumentTypeChildNode {
[Pure]
readonly attribute Element? previousElementSibling;

View file

@ -9,6 +9,6 @@
* liability, trademark and document use rules apply.
*/
[Constructor(optional DOMString data = ""), Exposed=(Window,Worker)]
[Constructor(optional DOMString data = "")]
interface Comment : CharacterData {
};

View file

@ -10,7 +10,6 @@
* related or neighboring rights to this work.
*/
[Exposed=(Window,Worker)]
interface DOMImplementation {
[NewObject, Throws]
DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId,

View file

@ -8,7 +8,7 @@
*/
// https://dom.spec.whatwg.org/#interface-document
[Constructor, Exposed=(Window,Worker)]
[Constructor]
interface Document : Node {
[SameObject]
readonly attribute DOMImplementation implementation;

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://dom.spec.whatwg.org/#interface-documentfragment
[Constructor, Exposed=(Window,Worker)]
[Constructor]
interface DocumentFragment : Node {
};

View file

@ -9,7 +9,6 @@
* liability, trademark and document use rules apply.
*/
[Exposed=(Window,Worker)]
interface DocumentType : Node {
[Constant]
readonly attribute DOMString name;

View file

@ -12,7 +12,6 @@
* liability, trademark and document use rules apply.
*/
[Exposed=(Window,Worker)]
interface Element : Node {
[Constant]
readonly attribute DOMString? namespaceURI;

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// 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 {
readonly attribute EventTarget? relatedTarget;
};

View file

@ -23,7 +23,7 @@
*/
[Pref="dom.forcetouch.enabled", Exposed=(Window,Worker)]
[Pref="dom.forcetouch.enabled"]
interface ForceTouchEvent : UIEvent {
// Represents the amount of force required to perform a regular click.
readonly attribute float SERVO_FORCE_AT_MOUSE_DOWN;

View file

@ -4,7 +4,7 @@
// https://dom.spec.whatwg.org/#interface-htmlcollection
[LegacyUnenumerableNamedProperties, Exposed=(Window,Worker)]
[LegacyUnenumerableNamedProperties]
interface HTMLCollection {
[Pure]
readonly attribute unsigned long length;

View file

@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmlelement
[Exposed=(Window,Worker)]
interface HTMLElement : Element {
// metadata attributes
attribute DOMString title;

View file

@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmlformcontrolscollection
[Exposed=(Window,Worker)]
interface HTMLFormControlsCollection : HTMLCollection {
// inherits length and item()
getter (RadioNodeList or Element)? namedItem(DOMString name); // shadows inherited namedItem()

View file

@ -4,7 +4,6 @@
// https://html.spec.whatwg.org/multipage/#htmlformelement
//[OverrideBuiltins]
[Exposed=(Window,Worker)]
interface HTMLFormElement : HTMLElement {
attribute DOMString acceptCharset;
attribute DOMString action;

View file

@ -3,5 +3,4 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmlheadelement
[Exposed=(Window,Worker)]
interface HTMLHeadElement : HTMLElement {};

View file

@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmloptionscollection
[Exposed=(Window,Worker)]
interface HTMLOptionsCollection : HTMLCollection {
// inherits item(), namedItem()
attribute unsigned long length; // shadows inherited length

View file

@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmlscriptelement
[Exposed=(Window,Worker)]
interface HTMLScriptElement : HTMLElement {
attribute DOMString src;
attribute DOMString type;

View file

@ -7,7 +7,7 @@
*
*/
[Constructor(DOMString typeArg, optional KeyboardEventInit keyboardEventInitDict), Exposed=(Window,Worker)]
[Constructor(DOMString typeArg, optional KeyboardEventInit keyboardEventInitDict)]
interface KeyboardEvent : UIEvent {
// KeyLocationCode
const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// 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 {
readonly attribute long screenX;
readonly attribute long screenY;

View file

@ -4,7 +4,7 @@
// https://dom.spec.whatwg.org/#interface-namednodemap
[LegacyUnenumerableNamedProperties, Exposed=(Window,Worker)]
[LegacyUnenumerableNamedProperties]
interface NamedNodeMap {
[Pure]
readonly attribute unsigned long length;

View file

@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#navigator
[Exposed=(Window,Worker)]
interface Navigator {
// objects implementing this interface also implement the interfaces given below
};
@ -28,7 +27,7 @@ interface NavigatorID {
readonly attribute DOMString userAgent;
};
[NoInterfaceObject, Exposed=(Window,Worker)]
[NoInterfaceObject]
interface NavigatorBluetooth {
readonly attribute Bluetooth bluetooth;
};
@ -47,7 +46,7 @@ interface NavigatorLanguage {
};
// https://html.spec.whatwg.org/multipage/#navigatorplugins
[NoInterfaceObject, Exposed=(Window,Worker)]
[NoInterfaceObject]
interface NavigatorPlugins {
[SameObject] readonly attribute PluginArray plugins;
[SameObject] readonly attribute MimeTypeArray mimeTypes;
@ -55,7 +54,7 @@ interface NavigatorPlugins {
};
// https://html.spec.whatwg.org/multipage/#navigatorcookies
[NoInterfaceObject, Exposed=(Window,Worker)]
[NoInterfaceObject]
interface NavigatorCookies {
readonly attribute boolean cookieEnabled;
};

View file

@ -6,7 +6,7 @@
* https://dom.spec.whatwg.org/#interface-node
*/
[Abstract, Exposed=(Window,Worker)]
[Abstract]
interface Node : EventTarget {
const unsigned short ELEMENT_NODE = 1;
const unsigned short ATTRIBUTE_NODE = 2; // historical

View file

@ -7,7 +7,6 @@
*/
// Import from http://hg.mozilla.org/mozilla-central/file/a5a720259d79/dom/webidl/NodeFilter.webidl
[Exposed=(Window,Worker)]
callback interface NodeFilter {
// Constants for acceptNode()
const unsigned short FILTER_ACCEPT = 1;

View file

@ -6,7 +6,6 @@
*/
// Import from http://hg.mozilla.org/mozilla-central/raw-file/a5a720259d79/dom/webidl/NodeIterator.webidl
[Exposed=(Window,Worker)]
interface NodeIterator {
[SameObject]
readonly attribute Node root;

View file

@ -6,7 +6,6 @@
* https://dom.spec.whatwg.org/#interface-nodelist
*/
[Exposed=(Window,Worker)]
interface NodeList {
[Pure]
getter Node? item(unsigned long index);

View file

@ -3,8 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://dom.spec.whatwg.org/#nonelementparentnode
[NoInterfaceObject,
Exposed=(Window,Worker)]
[NoInterfaceObject]
interface NonElementParentNode {
[Pure]
Element? getElementById(DOMString elementId);

View file

@ -6,7 +6,7 @@
* https://dom.spec.whatwg.org/#interface-parentnode
*/
[NoInterfaceObject, Exposed=(Window,Worker)]
[NoInterfaceObject]
interface ParentNode {
[SameObject]
readonly attribute HTMLCollection children;

View file

@ -6,7 +6,6 @@
* https://dom.spec.whatwg.org/#interface-processinginstruction
*/
[Exposed=(Window,Worker)]
interface ProcessingInstruction : CharacterData {
[Constant]
readonly attribute DOMString target;

View file

@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#radionodelist
[Exposed=(Window,Worker)]
interface RadioNodeList : NodeList {
attribute DOMString value;
};

View file

@ -8,7 +8,7 @@
* 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 {
[Pure]
readonly attribute Node startContainer;

View file

@ -10,7 +10,7 @@
*/
// https://dom.spec.whatwg.org/#text
[Constructor(optional DOMString data = ""), Exposed=(Window,Worker)]
[Constructor(optional DOMString data = "")]
interface Text : CharacterData {
[NewObject, Throws]
Text splitText(unsigned long offset);

View file

@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://w3c.github.io/touch-events/#idl-def-TouchEvent
[Exposed=(Window,Worker)]
interface TouchEvent : UIEvent {
readonly attribute TouchList touches;
readonly attribute TouchList targetTouches;

View file

@ -6,7 +6,6 @@
* https://dom.spec.whatwg.org/#interface-treewalker
*/
[Exposed=(Window,Worker)]
interface TreeWalker {
[SameObject]
readonly attribute Node root;

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// 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 {
// readonly attribute WindowProxy? view;
readonly attribute Window? view;
@ -18,7 +18,6 @@ dictionary UIEventInit : EventInit {
};
// https://w3c.github.io/uievents/#idl-interface-UIEvent-initializers
[Exposed=(Window,Worker)]
partial interface UIEvent {
// Deprecated in DOM Level 3
void initUIEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg, Window? viewArg, long detailArg);

View file

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#window
[PrimaryGlobal, Exposed=(Window,Worker)]
[PrimaryGlobal]
/*sealed*/ interface Window : GlobalScope {
// the current browsing context
[Unforgeable] readonly attribute WindowProxy window;
@ -62,7 +62,7 @@
Window implements GlobalEventHandlers;
Window implements WindowEventHandlers;
[NoInterfaceObject, Exposed=(Window,Worker)]
[NoInterfaceObject]
interface WindowProxy {};
// https://html.spec.whatwg.org/multipage/#timers
@ -170,14 +170,14 @@ partial interface Window {
};
// https://html.spec.whatwg.org/multipage/#dom-sessionstorage
[NoInterfaceObject, Exposed=(Window,Worker)]
[NoInterfaceObject]
interface WindowSessionStorage {
readonly attribute Storage sessionStorage;
};
Window implements WindowSessionStorage;
// https://html.spec.whatwg.org/multipage/#dom-localstorage
[NoInterfaceObject, Exposed=(Window,Worker)]
[NoInterfaceObject]
interface WindowLocalStorage {
readonly attribute Storage localStorage;
};

View file

@ -8,5 +8,4 @@
*/
// https://dom.spec.whatwg.org/#interface-document
[Exposed=(Window,Worker)]
interface XMLDocument : Document {};

View file

@ -69,6 +69,5 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
readonly attribute any response;
[Throws]
readonly attribute USVString responseText;
[Throws]
/*[Exposed=Window]*/ readonly attribute Document? responseXML;
[Throws, Exposed=Window] readonly attribute Document? responseXML;
};

View file

@ -39,9 +39,6 @@
[FileReaderSync interface: calling readAsDataURL(Blob) on new FileReaderSync() with too few arguments must throw TypeError]
expected: FAIL
[Window interface: existence and properties of interface object]
expected: FAIL
[ArrayBuffer interface: existence and properties of interface object]
expected: FAIL

View file

@ -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]
expected: FAIL
[Window interface: existence and properties of interface object]
expected: FAIL
[ArrayBuffer interface: existence and properties of interface object]
expected: FAIL

View file

@ -3,15 +3,6 @@
[The Location interface object should not be exposed.]
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.]
expected: FAIL
@ -20,13 +11,3 @@
[The PageTransitionEvent interface object should not be exposed.]
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

View file

@ -7,10 +7,8 @@ importScripts("interfaces.js");
// IMPORTANT: Do not change the list below without review from a DOM peer!
test_interfaces([
"Attr",
"BeforeUnloadEvent",
"Blob",
"CharacterData",
"CloseEvent",
"CSS",
"CSSStyleDeclaration",
@ -19,17 +17,11 @@ test_interfaces([
"DOMQuad",
"DOMRect",
"DOMRectReadOnly",
"Comment",
"CustomEvent",
"DedicatedWorkerGlobalScope",
"Document",
"DocumentFragment",
"DocumentType",
"DOMException",
"DOMImplementation",
"DOMTokenList",
"DOMStringMap",
"Element",
"ErrorEvent",
"Event",
"EventTarget",
@ -37,42 +29,23 @@ test_interfaces([
"FileList",
"FileReader",
"FileReaderSync",
"FocusEvent",
"FormData",
"HashChangeEvent",
"Headers",
"History",
"HTMLCollection",
"HTMLElement",
"HTMLFormControlsCollection",
"HTMLFormElement",
"HTMLHeadElement",
"HTMLOptionsCollection",
"HTMLScriptElement",
"ImageData",
"KeyboardEvent",
"Location",
"MediaError",
"MessageEvent",
"MimeType",
"MimeTypeArray",
"MouseEvent",
"NamedNodeMap",
"Navigator",
"Node",
"NodeFilter",
"NodeIterator",
"NodeList",
"PageTransitionEvent",
"Performance",
"PerformanceTiming",
"Plugin",
"PluginArray",
"PopStateEvent",
"ProcessingInstruction",
"ProgressEvent",
"RadioNodeList",
"Range",
"Request",
"Response",
"Screen",
@ -80,24 +53,18 @@ test_interfaces([
"StorageEvent",
"StyleSheet",
"StyleSheetList",
"Text",
"TextDecoder",
"TextEncoder",
"Touch",
"TouchEvent",
"TouchList",
"TreeWalker",
"UIEvent",
"URL",
"URLSearchParams",
"ValidityState",
"WebSocket",
"Window",
"Worker",
"WorkerGlobalScope",
"WorkerLocation",
"WorkerNavigator",
"XMLDocument",
"XMLHttpRequest",
"XMLHttpRequestEventTarget",
"XMLHttpRequestUpload",