WorkerGlobalScope.idl 1.0 KB

1234567891011121314151617181920212223242526272829
  1. #import <CSS/FontFaceSet.idl>
  2. #import <DOM/EventTarget.idl>
  3. #import <DOM/EventHandler.idl>
  4. #import <HTML/MessagePort.idl>
  5. #import <HTML/UniversalGlobalScope.idl>
  6. #import <HTML/Window.idl>
  7. #import <HTML/WindowOrWorkerGlobalScope.idl>
  8. #import <HTML/WorkerLocation.idl>
  9. #import <HTML/WorkerNavigator.idl>
  10. // https://html.spec.whatwg.org/multipage/workers.html#workerglobalscope
  11. [Exposed=Worker]
  12. interface WorkerGlobalScope : EventTarget {
  13. readonly attribute WorkerGlobalScope self;
  14. readonly attribute WorkerLocation location;
  15. readonly attribute WorkerNavigator navigator;
  16. undefined importScripts(USVString... urls);
  17. attribute OnErrorEventHandler onerror;
  18. attribute EventHandler onlanguagechange;
  19. attribute EventHandler onoffline;
  20. attribute EventHandler ononline;
  21. attribute EventHandler onrejectionhandled;
  22. attribute EventHandler onunhandledrejection;
  23. };
  24. WorkerGlobalScope includes FontFaceSource;
  25. WorkerGlobalScope includes UniversalGlobalScope;
  26. WorkerGlobalScope includes WindowOrWorkerGlobalScope;