2024-05-07 14:49:31 -06:00
|
|
|
#import <CSS/FontFaceSet.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
#import <DOM/EventTarget.idl>
|
2022-03-30 23:35:42 +03:00
|
|
|
#import <DOM/EventHandler.idl>
|
2024-11-08 16:35:16 +13:00
|
|
|
#import <HTML/MessagePort.idl>
|
|
|
|
#import <HTML/UniversalGlobalScope.idl>
|
2024-11-14 16:25:38 +01:00
|
|
|
#import <HTML/Window.idl>
|
2022-07-27 20:36:21 +01:00
|
|
|
#import <HTML/WindowOrWorkerGlobalScope.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
#import <HTML/WorkerLocation.idl>
|
|
|
|
#import <HTML/WorkerNavigator.idl>
|
|
|
|
|
2022-07-27 20:36:21 +01:00
|
|
|
// https://html.spec.whatwg.org/multipage/workers.html#workerglobalscope
|
2023-09-03 02:00:01 +12:00
|
|
|
[Exposed=Worker]
|
2022-02-06 19:12:57 -07:00
|
|
|
interface WorkerGlobalScope : EventTarget {
|
|
|
|
readonly attribute WorkerGlobalScope self;
|
|
|
|
readonly attribute WorkerLocation location;
|
|
|
|
readonly attribute WorkerNavigator navigator;
|
|
|
|
undefined importScripts(USVString... urls);
|
|
|
|
|
2022-04-01 22:04:00 +03:00
|
|
|
attribute OnErrorEventHandler onerror;
|
2022-02-06 19:12:57 -07:00
|
|
|
attribute EventHandler onlanguagechange;
|
|
|
|
attribute EventHandler onoffline;
|
|
|
|
attribute EventHandler ononline;
|
|
|
|
attribute EventHandler onrejectionhandled;
|
|
|
|
attribute EventHandler onunhandledrejection;
|
|
|
|
};
|
2022-07-27 20:36:21 +01:00
|
|
|
|
2024-05-07 14:49:31 -06:00
|
|
|
WorkerGlobalScope includes FontFaceSource;
|
2024-11-08 16:35:16 +13:00
|
|
|
WorkerGlobalScope includes UniversalGlobalScope;
|
|
|
|
WorkerGlobalScope includes WindowOrWorkerGlobalScope;
|