mirror of
https://github.com/servo/servo.git
synced 2025-06-10 17:43:16 +00:00
parent
6bb5d0e846
commit
bad529a0f7
6 changed files with 7 additions and 18 deletions
|
@ -4,7 +4,8 @@
|
||||||
|
|
||||||
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-global-scope
|
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-global-scope
|
||||||
|
|
||||||
[Global=(Worker,ServiceWorker), Pref="dom.serviceworker.enabled"]
|
[Global=(Worker,ServiceWorker), Exposed=ServiceWorker,
|
||||||
|
Pref="dom.serviceworker.enabled"]
|
||||||
interface ServiceWorkerGlobalScope : WorkerGlobalScope {
|
interface ServiceWorkerGlobalScope : WorkerGlobalScope {
|
||||||
// A container for a list of Client objects that correspond to
|
// A container for a list of Client objects that correspond to
|
||||||
// browsing contexts (or shared workers) that are on the origin of this SW
|
// browsing contexts (or shared workers) that are on the origin of this SW
|
||||||
|
|
|
@ -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/#workerglobalscope
|
// https://html.spec.whatwg.org/multipage/#workerglobalscope
|
||||||
[Abstract, Exposed=(Window,Worker)]
|
[Abstract, Exposed=Worker]
|
||||||
interface WorkerGlobalScope : EventTarget {
|
interface WorkerGlobalScope : EventTarget {
|
||||||
[BinaryName="Self_"] readonly attribute WorkerGlobalScope self;
|
[BinaryName="Self_"] readonly attribute WorkerGlobalScope self;
|
||||||
readonly attribute WorkerLocation location;
|
readonly attribute WorkerLocation location;
|
||||||
|
@ -16,7 +16,7 @@ interface WorkerGlobalScope : EventTarget {
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#WorkerGlobalScope-partial
|
// https://html.spec.whatwg.org/multipage/#WorkerGlobalScope-partial
|
||||||
[Exposed=(Window,Worker)]
|
[Exposed=Worker]
|
||||||
partial interface WorkerGlobalScope { // not obsolete
|
partial interface WorkerGlobalScope { // not obsolete
|
||||||
[Throws]
|
[Throws]
|
||||||
void importScripts(DOMString... urls);
|
void importScripts(DOMString... urls);
|
||||||
|
@ -26,7 +26,7 @@ WorkerGlobalScope implements WindowTimers;
|
||||||
WorkerGlobalScope implements WindowBase64;
|
WorkerGlobalScope implements WindowBase64;
|
||||||
|
|
||||||
// Proprietary
|
// Proprietary
|
||||||
[Exposed=(Window,Worker)]
|
[Exposed=Worker]
|
||||||
partial interface WorkerGlobalScope {
|
partial interface WorkerGlobalScope {
|
||||||
[Replaceable]
|
[Replaceable]
|
||||||
readonly attribute Console console;
|
readonly attribute Console console;
|
||||||
|
|
|
@ -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/#worker-locations
|
// https://html.spec.whatwg.org/multipage/#worker-locations
|
||||||
[Exposed=(Window,Worker)]
|
[Exposed=Worker]
|
||||||
interface WorkerLocation {
|
interface WorkerLocation {
|
||||||
/*stringifier*/ readonly attribute USVString href;
|
/*stringifier*/ readonly attribute USVString href;
|
||||||
// readonly attribute USVString origin;
|
// readonly attribute USVString origin;
|
||||||
|
|
|
@ -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/#workernavigator
|
// https://html.spec.whatwg.org/multipage/#workernavigator
|
||||||
[Exposed=(Window,Worker)]
|
[Exposed=Worker]
|
||||||
interface WorkerNavigator {};
|
interface WorkerNavigator {};
|
||||||
WorkerNavigator implements NavigatorID;
|
WorkerNavigator implements NavigatorID;
|
||||||
WorkerNavigator implements NavigatorLanguage;
|
WorkerNavigator implements NavigatorLanguage;
|
||||||
|
|
|
@ -9675,12 +9675,3 @@
|
||||||
[Event interface: calling initEvent(DOMString,boolean,boolean) on new TrackEvent("addtrack", {track:document.createElement("track").track}) with too few arguments must throw TypeError]
|
[Event interface: calling initEvent(DOMString,boolean,boolean) on new TrackEvent("addtrack", {track:document.createElement("track").track}) with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[WorkerGlobalScope interface: existence and properties of interface object]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerNavigator interface: existence and properties of interface object]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerLocation interface: existence and properties of interface object]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -176,9 +176,6 @@ test_interfaces([
|
||||||
"WebSocket",
|
"WebSocket",
|
||||||
"Window",
|
"Window",
|
||||||
"Worker",
|
"Worker",
|
||||||
"WorkerGlobalScope", // #2823
|
|
||||||
"WorkerLocation", // #2823
|
|
||||||
"WorkerNavigator", // #2823
|
|
||||||
"XMLDocument",
|
"XMLDocument",
|
||||||
"XMLHttpRequest",
|
"XMLHttpRequest",
|
||||||
"XMLHttpRequestEventTarget",
|
"XMLHttpRequestEventTarget",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue