Closed skyclouds2001 closed 2 months ago
the https://github.com/mdn/yari/pull/10029 brings additional ability to better reflect features' scope (and https://github.com/mdn/yari/pull/10968 which add one more case)
the issue is intended to track those features that need to update when the macros change landed (see https://github.com/mdn/yari/blob/main/kumascript/macros/AvailableInWorkers.ejs)
also reference to https://github.com/sindresorhus/globals
test with https://worker-playground.glitch.me/
the list is as follows:
### tasks - [ ] #33477 - [ ] #33225 - [ ] #32945 - [ ] #32942 - [ ] #32949 - [ ] WebUSB API, give up - [ ] #32944 - [ ] #30191 - [ ] #33202 - [ ] #35596 - [ ] #33044 - [ ] #33052 - [ ] #33056 - [ ] #33055 - [ ] #33061 - [ ] #33062 - [ ] #33091 - [ ] #33092 - [ ] #33093 - [ ] #33074
a full list is as follows:
AudioDecoder
VideoDecoder
AudioEncoder
VideoEncoder
EncodedAudioChunk
EncodedVideoChunk
AudioData
VideoFrame
VideoColorSpace
ImageDecoder
ImageTrackList
ImageTrack
RTCEncodedAudioFrame
RTCEncodedVideoFrame
SFrameTransformErrorEvent
SFrameTransform
DedicatedWorkerGlobalScope.rtctransform
KeyFrameRequestEvent
RTCTransformEvent
XMLHttpRequest
XMLHttpRequestUpload
XMLHttpRequestEventTarget
WorkerNavigator.serial
Serial
SerialPort
WorkerNavigator.usb
USBConnectionEvent
USBInTransferResult
USBOutTransferResult
USBIsochronousInTransferPacket
USBIsochronousInTransferResult
USBIsochronousOutTransferPacket
USBIsochronousOutTransferResult
USBDevice
USBConfiguration
USBInterface
USBAlternateInterface
USBEndpoint
FileReaderSync
URL.createObjectURL()
URL.revokeObjectURL()
FileSystemSyncAccessHandle
FileSystemFileHandle.createSyncAccessHandle()
WorkerGlobalScope
WorkerNavigator
WorkerLocation
Worker
DedicatedWorkerGlobalScope
SharedWorkerGlobalScope
ServiceWorkerGlobalScope
Client
WindowClient
Clients
ExtendableEvent
FetchEvent
ExtendableMessageEvent
CookieStore
change
CookieStoreManager
ServiceWorkerRegistration.cookies
ExtendableCookieChangeEvent
ServiceWorkerGlobalScope.cookieStore
ServiceWorkerGlobalScope: cookiechange
NotificationEvent
ServiceWorkerGlobalScope: notificationclick
ServiceWorkerGlobalScope: notificationclose
ContentIndexEvent
ServiceWorkerGlobalScope: contentdelete
CanMakePaymentEvent
ServiceWorkerGlobalScope: canmakepayment
PaymentRequestEvent
ServiceWorkerGlobalScope: paymentrequest
BackgroundFetchEvent
BackgroundFetchUpdateUIEvent
ServiceWorkerGlobalScope: backgroundfetchsuccess
ServiceWorkerGlobalScope: backgroundfetchfail
ServiceWorkerGlobalScope: backgroundfetchabort
ServiceWorkerGlobalScope: backgroundfetchclick
SyncEvent
ServiceWorkerGlobalScope: sync
PeriodicSyncEvent
ServiceWorkerGlobalScope: periodicsync
PushMessageData
PushEvent
PushSubscriptionChangeEvent
ServiceWorkerGlobalScope: push
ServiceWorkerGlobalScope: pushsubscriptionchange
@skyclouds2001 It's not easy to tell what tasks are left and when the issue could be considered done
the https://github.com/mdn/yari/pull/10029 brings additional ability to better reflect features' scope (and https://github.com/mdn/yari/pull/10968 which add one more case)
the issue is intended to track those features that need to update when the macros change landed (see https://github.com/mdn/yari/blob/main/kumascript/macros/AvailableInWorkers.ejs)
also reference to https://github.com/sindresorhus/globals
test with https://worker-playground.glitch.me/
the list is as follows:
a full list is as follows:
AudioDecoder
VideoDecoder
AudioEncoder
VideoEncoder
EncodedAudioChunk
EncodedVideoChunk
AudioData
VideoFrame
VideoColorSpace
ImageDecoder
ImageTrackList
ImageTrack
RTCEncodedAudioFrame
RTCEncodedVideoFrame
SFrameTransformErrorEvent
SFrameTransform
DedicatedWorkerGlobalScope.rtctransform
KeyFrameRequestEvent
RTCTransformEvent
XMLHttpRequest
XMLHttpRequestUpload
XMLHttpRequestEventTarget
WorkerNavigator.serial
Serial
SerialPort
WorkerNavigator.usb
USBConnectionEvent
USBInTransferResult
USBOutTransferResult
USBIsochronousInTransferPacket
USBIsochronousInTransferResult
USBIsochronousOutTransferPacket
USBIsochronousOutTransferResult
USBDevice
USBConfiguration
USBInterface
USBAlternateInterface
USBEndpoint
FileReaderSync
URL.createObjectURL()
URL.revokeObjectURL()
FileSystemSyncAccessHandle
FileSystemFileHandle.createSyncAccessHandle()
WorkerGlobalScope
WorkerNavigator
WorkerLocation
Worker
, only in Window, DedicatedWorker, SharedWorkerDedicatedWorkerGlobalScope
, only in DedicatedWorkerSharedWorkerGlobalScope
, only in SharedWorkerServiceWorkerGlobalScope
Client
WindowClient
Clients
ExtendableEvent
FetchEvent
ExtendableMessageEvent
CookieStore
(except forchange
event)CookieStoreManager
ServiceWorkerRegistration.cookies
ExtendableCookieChangeEvent
ServiceWorkerGlobalScope.cookieStore
ServiceWorkerGlobalScope: cookiechange
eventNotificationEvent
ServiceWorkerGlobalScope: notificationclick
eventServiceWorkerGlobalScope: notificationclose
eventContentIndexEvent
ServiceWorkerGlobalScope: contentdelete
eventCanMakePaymentEvent
ServiceWorkerGlobalScope: canmakepayment
eventPaymentRequestEvent
ServiceWorkerGlobalScope: paymentrequest
eventBackgroundFetchEvent
BackgroundFetchUpdateUIEvent
ServiceWorkerGlobalScope: backgroundfetchsuccess
eventServiceWorkerGlobalScope: backgroundfetchfail
eventServiceWorkerGlobalScope: backgroundfetchabort
eventServiceWorkerGlobalScope: backgroundfetchclick
eventSyncEvent
ServiceWorkerGlobalScope: sync
eventPeriodicSyncEvent
ServiceWorkerGlobalScope: periodicsync
eventPushMessageData
PushEvent
PushSubscriptionChangeEvent
ServiceWorkerGlobalScope: push
eventServiceWorkerGlobalScope: pushsubscriptionchange
event