WindowOrWorkerGlobalScope.idl 1.2 KB

12345678910111213141516171819202122232425262728
  1. // https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope
  2. interface mixin WindowOrWorkerGlobalScope {
  3. [Replaceable] readonly attribute USVString origin;
  4. readonly attribute boolean isSecureContext;
  5. readonly attribute boolean crossOriginIsolated;
  6. // FIXME: undefined reportError(any e);
  7. // base64 utility methods
  8. DOMString btoa(DOMString data);
  9. ByteString atob(DOMString data);
  10. // timers
  11. // FIXME: long setTimeout(TimerHandler handler, optional long timeout = 0, any... arguments);
  12. // FIXME: undefined clearTimeout(optional long id = 0);
  13. // FIXME: long setInterval(TimerHandler handler, optional long timeout = 0, any... arguments);
  14. // FIXME: undefined clearInterval(optional long id = 0);
  15. // microtask queuing
  16. // FIXME: undefined queueMicrotask(VoidFunction callback);
  17. // ImageBitmap
  18. // FIXME: Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, optional ImageBitmapOptions options = {});
  19. // FIXME: Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, long sx, long sy, long sw, long sh, optional ImageBitmapOptions options = {});
  20. // structured cloning
  21. // FIXME: any structuredClone(any value, optional StructuredSerializeOptions options = {});
  22. };