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