77 [SameObject] readonly attribute HID hid;
88};
99
10- [Exposed=ServiceWorker, SecureContext]
10+ [Exposed=(DedicatedWorker, ServiceWorker) , SecureContext]
1111partial interface WorkerNavigator {
1212 [SameObject] readonly attribute HID hid;
1313};
1414
15- [Exposed=(Window ,ServiceWorker), SecureContext]
15+ [Exposed=(DedicatedWorker ,ServiceWorker,Window ), SecureContext]
1616interface HID : EventTarget {
1717 attribute EventHandler onconnect;
1818 attribute EventHandler ondisconnect;
@@ -33,7 +33,7 @@ dictionary HIDDeviceFilter {
3333 unsigned short usage;
3434};
3535
36- [Exposed=Window, SecureContext]
36+ [Exposed=(DedicatedWorker,ServiceWorker, Window) , SecureContext]
3737interface HIDDevice : EventTarget {
3838 attribute EventHandler oninputreport;
3939 readonly attribute boolean opened;
@@ -51,7 +51,7 @@ interface HIDDevice : EventTarget {
5151 Promise<DataView> receiveFeatureReport([EnforceRange] octet reportId);
5252};
5353
54- [Exposed=Window, SecureContext]
54+ [Exposed=(DedicatedWorker,ServiceWorker, Window) , SecureContext]
5555interface HIDConnectionEvent : Event {
5656 constructor(DOMString type, HIDConnectionEventInit eventInitDict);
5757 [SameObject] readonly attribute HIDDevice device;
@@ -61,7 +61,7 @@ dictionary HIDConnectionEventInit : EventInit {
6161 required HIDDevice device;
6262};
6363
64- [Exposed=Window, SecureContext]
64+ [Exposed=(DedicatedWorker,ServiceWorker, Window) , SecureContext]
6565interface HIDInputReportEvent : Event {
6666 constructor(DOMString type, HIDInputReportEventInit eventInitDict);
6767 [SameObject] readonly attribute HIDDevice device;
0 commit comments