2022-02-15 22:10:51 +03:00
|
|
|
#import <DOM/EventTarget.idl>
|
2022-03-30 23:35:42 +03:00
|
|
|
#import <DOM/EventHandler.idl>
|
2022-07-27 22:36:21 +03:00
|
|
|
#import <HTML/WindowOrWorkerGlobalScope.idl>
|
2022-02-15 22:10:51 +03:00
|
|
|
#import <HTML/WorkerLocation.idl>
|
|
|
|
#import <HTML/WorkerNavigator.idl>
|
|
|
|
|
2022-07-27 22:36:21 +03:00
|
|
|
// https://html.spec.whatwg.org/multipage/workers.html#workerglobalscope
|
2023-02-23 12:16:20 +03:00
|
|
|
[Exposed=Worker, UseNewAKString]
|
2022-02-07 05: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 22:04:00 +03:00
|
|
|
attribute OnErrorEventHandler onerror;
|
2022-02-07 05:12:57 +03:00
|
|
|
attribute EventHandler onlanguagechange;
|
|
|
|
attribute EventHandler onoffline;
|
|
|
|
attribute EventHandler ononline;
|
|
|
|
attribute EventHandler onrejectionhandled;
|
|
|
|
attribute EventHandler onunhandledrejection;
|
|
|
|
};
|
2022-07-27 22:36:21 +03:00
|
|
|
|
|
|
|
WorkerGlobalScope includes WindowOrWorkerGlobalScope;
|