diff --git a/dom/webidl/CloseEvent.webidl b/dom/webidl/CloseEvent.webidl index 946fdbebda40..4fddbd8342b9 100644 --- a/dom/webidl/CloseEvent.webidl +++ b/dom/webidl/CloseEvent.webidl @@ -10,7 +10,8 @@ * http://www.whatwg.org/specs/web-apps/current-work/multipage/network.html#closeevent */ -[Constructor(DOMString type, optional CloseEventInit eventInitDict),LegacyEventInit] +[Constructor(DOMString type, optional CloseEventInit eventInitDict),LegacyEventInit, + Exposed=(Window,Worker)] interface CloseEvent : Event { readonly attribute boolean wasClean; diff --git a/dom/webidl/ErrorEvent.webidl b/dom/webidl/ErrorEvent.webidl index 5d12b879f2a8..cb858dffdbe6 100644 --- a/dom/webidl/ErrorEvent.webidl +++ b/dom/webidl/ErrorEvent.webidl @@ -4,7 +4,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ [Constructor(DOMString type, optional ErrorEventInit eventInitDict), - Exposed=(Window,System)] + Exposed=(Window,Worker,System)] interface ErrorEvent : Event { readonly attribute DOMString message; diff --git a/dom/webidl/FileList.webidl b/dom/webidl/FileList.webidl index 84a56be1bf90..5e4590347b47 100644 --- a/dom/webidl/FileList.webidl +++ b/dom/webidl/FileList.webidl @@ -10,6 +10,7 @@ * liability, trademark and document use rules apply. */ +[Exposed=(Window,Worker)] interface FileList { getter File? item(unsigned long index); readonly attribute unsigned long length; diff --git a/dom/webidl/ProgressEvent.webidl b/dom/webidl/ProgressEvent.webidl index 1be356b8f4d4..c2ecf579379e 100644 --- a/dom/webidl/ProgressEvent.webidl +++ b/dom/webidl/ProgressEvent.webidl @@ -4,7 +4,8 @@ * You can obtain one at http://mozilla.org/MPL/2.0/. */ -[Constructor(DOMString type, optional ProgressEventInit eventInitDict)] +[Constructor(DOMString type, optional ProgressEventInit eventInitDict), + Exposed=(Window,Worker)] interface ProgressEvent : Event { readonly attribute boolean lengthComputable; diff --git a/dom/workers/test/serviceworkers/test_serviceworker_interfaces.js b/dom/workers/test/serviceworkers/test_serviceworker_interfaces.js index 1e0250ed5bd2..42b18e83c8bb 100644 --- a/dom/workers/test/serviceworkers/test_serviceworker_interfaces.js +++ b/dom/workers/test/serviceworkers/test_serviceworker_interfaces.js @@ -88,6 +88,8 @@ var interfaceNamesInGlobalScope = "Client", // IMPORTANT: Do not change this list without review from a DOM peer! "Clients", +// IMPORTANT: Do not change this list without review from a DOM peer! + "CloseEvent", // IMPORTANT: Do not change this list without review from a DOM peer! "Crypto", // IMPORTANT: Do not change this list without review from a DOM peer! @@ -104,6 +106,8 @@ var interfaceNamesInGlobalScope = "DOMRequest", // IMPORTANT: Do not change this list without review from a DOM peer! "DOMStringList", +// IMPORTANT: Do not change this list without review from a DOM peer! + "ErrorEvent", // IMPORTANT: Do not change this list without review from a DOM peer! "Event", // IMPORTANT: Do not change this list without review from a DOM peer! @@ -116,6 +120,8 @@ var interfaceNamesInGlobalScope = "FetchEvent", // IMPORTANT: Do not change this list without review from a DOM peer! "File", +// IMPORTANT: Do not change this list without review from a DOM peer! + "FileList", // IMPORTANT: Do not change this list without review from a DOM peer! "FileReader", // IMPORTANT: Do not change this list without review from a DOM peer! @@ -176,6 +182,8 @@ var interfaceNamesInGlobalScope = { name: "PerformanceObserver", nightly: true }, // IMPORTANT: Do not change this list without review from a DOM peer! { name: "PerformanceObserverEntryList", nightly: true }, +// IMPORTANT: Do not change this list without review from a DOM peer! + "ProgressEvent", // IMPORTANT: Do not change this list without review from a DOM peer! "PushEvent", // IMPORTANT: Do not change this list without review from a DOM peer! diff --git a/dom/workers/test/test_worker_interfaces.js b/dom/workers/test/test_worker_interfaces.js index 7231ad19b443..b089b5f7155b 100644 --- a/dom/workers/test/test_worker_interfaces.js +++ b/dom/workers/test/test_worker_interfaces.js @@ -84,6 +84,8 @@ var interfaceNamesInGlobalScope = "Cache", // IMPORTANT: Do not change this list without review from a DOM peer! "CacheStorage", +// IMPORTANT: Do not change this list without review from a DOM peer! + "CloseEvent", // IMPORTANT: Do not change this list without review from a DOM peer! "Crypto", // IMPORTANT: Do not change this list without review from a DOM peer! @@ -102,6 +104,8 @@ var interfaceNamesInGlobalScope = "DOMRequest", // IMPORTANT: Do not change this list without review from a DOM peer! "DOMStringList", +// IMPORTANT: Do not change this list without review from a DOM peer! + "ErrorEvent", // IMPORTANT: Do not change this list without review from a DOM peer! "Event", // IMPORTANT: Do not change this list without review from a DOM peer! @@ -110,6 +114,8 @@ var interfaceNamesInGlobalScope = "EventTarget", // IMPORTANT: Do not change this list without review from a DOM peer! "File", +// IMPORTANT: Do not change this list without review from a DOM peer! + "FileList", // IMPORTANT: Do not change this list without review from a DOM peer! "FileReader", // IMPORTANT: Do not change this list without review from a DOM peer! @@ -170,6 +176,8 @@ var interfaceNamesInGlobalScope = { name: "PerformanceObserver", nightly: true }, // IMPORTANT: Do not change this list without review from a DOM peer! { name: "PerformanceObserverEntryList", nightly: true }, +// IMPORTANT: Do not change this list without review from a DOM peer! + "ProgressEvent", // IMPORTANT: Do not change this list without review from a DOM peer! "PushManager", // IMPORTANT: Do not change this list without review from a DOM peer! diff --git a/testing/web-platform/meta/FileAPI/idlharness.worker.js.ini b/testing/web-platform/meta/FileAPI/idlharness.worker.js.ini index 82fd5e0ffb8d..7454ddb20757 100644 --- a/testing/web-platform/meta/FileAPI/idlharness.worker.js.ini +++ b/testing/web-platform/meta/FileAPI/idlharness.worker.js.ini @@ -21,24 +21,6 @@ [Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "close" with the proper type (4)] expected: FAIL - [FileList interface object length] - expected: FAIL - - [FileList interface: existence and properties of interface prototype object] - expected: FAIL - - [FileList interface: existence and properties of interface prototype object's "constructor" property] - expected: FAIL - - [FileList interface: operation item(unsigned long)] - expected: FAIL - - [FileList interface: attribute length] - expected: FAIL - - [FileList interface object name] - expected: FAIL - [ArrayBuffer interface: existence and properties of interface object] expected: FAIL @@ -51,9 +33,6 @@ [Event interface: existence and properties of interface object] expected: FAIL - [FileList interface: existence and properties of interface object] - expected: FAIL - [idlharness.worker.html] type: testharness @@ -86,25 +65,3 @@ [Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "close" with the proper type (4)] expected: FAIL - - [FileList interface: existence and properties of interface object] - expected: FAIL - - [FileList interface object length] - expected: FAIL - - [FileList interface object name] - expected: FAIL - - [FileList interface: existence and properties of interface prototype object] - expected: FAIL - - [FileList interface: existence and properties of interface prototype object's "constructor" property] - expected: FAIL - - [FileList interface: operation item(unsigned long)] - expected: FAIL - - [FileList interface: attribute length] - expected: FAIL - diff --git a/testing/web-platform/meta/workers/semantics/interface-objects/001.worker.js.ini b/testing/web-platform/meta/workers/semantics/interface-objects/001.worker.js.ini index 93486faeb0e8..93bb72f6fe4d 100644 --- a/testing/web-platform/meta/workers/semantics/interface-objects/001.worker.js.ini +++ b/testing/web-platform/meta/workers/semantics/interface-objects/001.worker.js.ini @@ -1,17 +1,9 @@ [001.worker] type: testharness - [The ErrorEvent interface object should be exposed.] - expected: FAIL [The SharedWorker interface object should be exposed.] expected: FAIL - [The FileList interface object should be exposed.] - expected: FAIL - - [The ProgressEvent interface object should be exposed.] - expected: FAIL - [The CanvasProxy interface object should be exposed.] expected: FAIL @@ -42,9 +34,6 @@ [The PromiseRejectionEvent interface object should be exposed.] expected: FAIL - [The CloseEvent interface object should be exposed.] - expected: FAIL - [The ReadableStream interface object should be exposed.] expected: FAIL @@ -72,18 +61,6 @@ [The PromiseRejectionEvent interface object should be exposed.] expected: FAIL - [The CloseEvent interface object should be exposed.] - expected: FAIL - - [The ProgressEvent interface object should be exposed.] - expected: FAIL - - [The FileList interface object should be exposed.] - expected: FAIL - - [The ErrorEvent interface object should be exposed.] - expected: FAIL - [The ReadableStream interface object should be exposed.] expected: FAIL diff --git a/testing/web-platform/meta/workers/semantics/interface-objects/003.html.ini b/testing/web-platform/meta/workers/semantics/interface-objects/003.html.ini index b7ad31234ec4..63b4b942b397 100644 --- a/testing/web-platform/meta/workers/semantics/interface-objects/003.html.ini +++ b/testing/web-platform/meta/workers/semantics/interface-objects/003.html.ini @@ -18,18 +18,6 @@ [The PromiseRejectionEvent interface object should be exposed] expected: FAIL - [The CloseEvent interface object should be exposed] - expected: FAIL - - [The ProgressEvent interface object should be exposed] - expected: FAIL - - [The FileList interface object should be exposed] - expected: FAIL - - [The ErrorEvent interface object should be exposed] - expected: FAIL - [The ReadableStream interface object should be exposed] expected: FAIL