2022-02-15 16:10:51 -03:00
|
|
|
#import <DOM/EventTarget.idl>
|
2022-03-30 17:35:42 -03:00
|
|
|
#import <DOM/EventHandler.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
|
2022-02-06 23:12:57 -03:00
|
|
|
[Exposed=Worker]
|
|
|
|
|
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
|
|
|
|
|
|
|
|
WorkerGlobalScope includes WindowOrWorkerGlobalScope;
|