Skip to content

Commit

Permalink
Be consistent about worker interface exposure (#250)
Browse files Browse the repository at this point in the history
In #221 we added specification text for how this API could be exposed to
service workers but did not update the [Exposed] attribute in most of
the WebIDL blocks. This updates the remaining blocks.

Fixed #249.
  • Loading branch information
reillyeon authored Oct 4, 2024
1 parent 775f963 commit f756c9f
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ dictionary USBConnectionEventInit : EventInit {
};

[
Exposed=(DedicatedWorker,SharedWorker,Window),
Exposed=(Worker,Window),
SecureContext
]
interface USBConnectionEvent : Event {
Expand Down Expand Up @@ -874,7 +874,7 @@ stalling the endpoint then the error is cleared before continuing,
};

[
Exposed=(DedicatedWorker,SharedWorker,Window),
Exposed=(Worker,Window),
SecureContext
]
interface USBInTransferResult {
Expand All @@ -884,7 +884,7 @@ stalling the endpoint then the error is cleared before continuing,
};

[
Exposed=(DedicatedWorker,SharedWorker,Window),
Exposed=(Worker,Window),
SecureContext
]
interface USBOutTransferResult {
Expand All @@ -894,7 +894,7 @@ stalling the endpoint then the error is cleared before continuing,
};

[
Exposed=(DedicatedWorker,SharedWorker,Window),
Exposed=(Worker,Window),
SecureContext
]
interface USBIsochronousInTransferPacket {
Expand All @@ -904,7 +904,7 @@ stalling the endpoint then the error is cleared before continuing,
};

[
Exposed=(DedicatedWorker,SharedWorker,Window),
Exposed=(Worker,Window),
SecureContext
]
interface USBIsochronousInTransferResult {
Expand All @@ -914,7 +914,7 @@ stalling the endpoint then the error is cleared before continuing,
};

[
Exposed=(DedicatedWorker,SharedWorker,Window),
Exposed=(Worker,Window),
SecureContext
]
interface USBIsochronousOutTransferPacket {
Expand All @@ -924,15 +924,15 @@ stalling the endpoint then the error is cleared before continuing,
};

[
Exposed=(DedicatedWorker,SharedWorker,Window),
Exposed=(Worker,Window),
SecureContext
]
interface USBIsochronousOutTransferResult {
constructor(sequence<USBIsochronousOutTransferPacket> packets);
readonly attribute FrozenArray<USBIsochronousOutTransferPacket> packets;
};

[Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
[Exposed=(Worker,Window), SecureContext]
interface USBDevice {
readonly attribute octet usbVersionMajor;
readonly attribute octet usbVersionMinor;
Expand Down Expand Up @@ -1721,7 +1721,7 @@ All USB devices MUST have a <a>default control pipe</a> which is

<xmp class="idl">
[
Exposed=(DedicatedWorker,SharedWorker,Window),
Exposed=(Worker,Window),
SecureContext
]
interface USBConfiguration {
Expand Down Expand Up @@ -1837,7 +1837,7 @@ Include some non-normative information about device configurations.

<xmp class="idl">
[
Exposed=(DedicatedWorker,SharedWorker,Window),
Exposed=(Worker,Window),
SecureContext
]
interface USBInterface {
Expand Down Expand Up @@ -2044,7 +2044,7 @@ low level access through this API would.

<xmp class="idl">
[
Exposed=(DedicatedWorker,SharedWorker,Window),
Exposed=(Worker,Window),
SecureContext
]
interface USBAlternateInterface {
Expand Down Expand Up @@ -2199,7 +2199,7 @@ slots</a> described in the following table:
};

[
Exposed=(DedicatedWorker,SharedWorker,Window),
Exposed=(Worker,Window),
SecureContext
]
interface USBEndpoint {
Expand Down Expand Up @@ -2440,7 +2440,7 @@ defined as follows:
<dt><a>permission result type</a></dt>
<dd>
<xmp class="idl">
[Exposed=(DedicatedWorker,SharedWorker,Window)]
[Exposed=(Worker,Window)]
interface USBPermissionResult : PermissionStatus {
attribute FrozenArray<USBDevice> devices;
};
Expand Down

0 comments on commit f756c9f

Please sign in to comment.