From 5ac780f49ba6528f2707240434f2866f15703b95 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 14 Oct 2024 16:13:22 +0200 Subject: [PATCH] WebUSB: use compute_from --- features/draft/spec/webusb.yml | 91 ----------------------------- features/draft/spec/webusb.yml.dist | 25 -------- features/webusb.yml | 10 ++-- features/webusb.yml.dist | 24 ++++++++ 4 files changed, 29 insertions(+), 121 deletions(-) delete mode 100644 features/draft/spec/webusb.yml delete mode 100644 features/draft/spec/webusb.yml.dist diff --git a/features/draft/spec/webusb.yml b/features/draft/spec/webusb.yml deleted file mode 100644 index ccd4e1ab701..00000000000 --- a/features/draft/spec/webusb.yml +++ /dev/null @@ -1,91 +0,0 @@ -draft_date: 2024-09-09 -name: WebUSB API -description: TODO -spec: https://wicg.github.io/webusb/ -compat_features: - - api.USBDevice.forget - - api.WorkerNavigator.usb - - http.headers.Permissions-Policy.usb - -# The following features in the spec are already part of web-features: -# - WebUSB: -# - api.Navigator.usb -# - api.USB -# - api.USB.connect_event -# - api.USB.disconnect_event -# - api.USB.getDevices -# - api.USB.requestDevice -# - api.USBAlternateInterface -# - api.USBAlternateInterface.alternateSetting -# - api.USBAlternateInterface.endpoints -# - api.USBAlternateInterface.interfaceClass -# - api.USBAlternateInterface.interfaceName -# - api.USBAlternateInterface.interfaceProtocol -# - api.USBAlternateInterface.interfaceSubclass -# - api.USBConfiguration -# - api.USBConfiguration.USBConfiguration -# - api.USBConfiguration.configurationName -# - api.USBConfiguration.configurationValue -# - api.USBConfiguration.interfaces -# - api.USBConnectionEvent -# - api.USBConnectionEvent.USBConnectionEvent -# - api.USBConnectionEvent.device -# - api.USBDevice -# - api.USBDevice.claimInterface -# - api.USBDevice.clearHalt -# - api.USBDevice.close -# - api.USBDevice.configuration -# - api.USBDevice.configurations -# - api.USBDevice.controlTransferIn -# - api.USBDevice.controlTransferOut -# - api.USBDevice.deviceClass -# - api.USBDevice.deviceProtocol -# - api.USBDevice.deviceSubclass -# - api.USBDevice.deviceVersionMajor -# - api.USBDevice.deviceVersionMinor -# - api.USBDevice.deviceVersionSubminor -# - api.USBDevice.isochronousTransferIn -# - api.USBDevice.isochronousTransferOut -# - api.USBDevice.manufacturerName -# - api.USBDevice.open -# - api.USBDevice.opened -# - api.USBDevice.productId -# - api.USBDevice.productName -# - api.USBDevice.releaseInterface -# - api.USBDevice.reset -# - api.USBDevice.selectAlternateInterface -# - api.USBDevice.selectConfiguration -# - api.USBDevice.serialNumber -# - api.USBDevice.transferIn -# - api.USBDevice.transferOut -# - api.USBDevice.usbVersionMajor -# - api.USBDevice.usbVersionMinor -# - api.USBDevice.usbVersionSubminor -# - api.USBDevice.vendorId -# - api.USBEndpoint -# - api.USBEndpoint.direction -# - api.USBEndpoint.endpointNumber -# - api.USBEndpoint.packetSize -# - api.USBEndpoint.type -# - api.USBInTransferResult -# - api.USBInTransferResult.data -# - api.USBInTransferResult.status -# - api.USBInterface -# - api.USBInterface.alternate -# - api.USBInterface.alternates -# - api.USBInterface.claimed -# - api.USBInterface.interfaceNumber -# - api.USBIsochronousInTransferPacket -# - api.USBIsochronousInTransferPacket.data -# - api.USBIsochronousInTransferPacket.status -# - api.USBIsochronousInTransferResult -# - api.USBIsochronousInTransferResult.data -# - api.USBIsochronousInTransferResult.packets -# - api.USBIsochronousOutTransferPacket -# - api.USBIsochronousOutTransferPacket.bytesWritten -# - api.USBIsochronousOutTransferPacket.status -# - api.USBIsochronousOutTransferResult -# - api.USBIsochronousOutTransferResult.packets -# - api.USBOutTransferResult -# - api.USBOutTransferResult.bytesWritten -# - api.USBOutTransferResult.status diff --git a/features/draft/spec/webusb.yml.dist b/features/draft/spec/webusb.yml.dist deleted file mode 100644 index 4a2f445c24a..00000000000 --- a/features/draft/spec/webusb.yml.dist +++ /dev/null @@ -1,25 +0,0 @@ -# Generated from: webusb.yml -# Do not edit this file by hand. Edit the source file instead! - -status: - baseline: false - support: {} -compat_features: - # baseline: false - # support: - # chrome: "88" - # chrome_android: "88" - # edge: "88" - - http.headers.Permissions-Policy.usb - - # baseline: false - # support: - # chrome: "101" - # chrome_android: "101" - # edge: "101" - - api.USBDevice.forget - - # ⬇️ Same status as overall feature ⬇️ - # baseline: false - # support: {} - - api.WorkerNavigator.usb diff --git a/features/webusb.yml b/features/webusb.yml index 354417b6550..d5a7cadaacb 100644 --- a/features/webusb.yml +++ b/features/webusb.yml @@ -2,8 +2,8 @@ name: WebUSB description: The WebUSB API exposes USB compatible devices to web pages. spec: https://wicg.github.io/webusb/ caniuse: webusb -# TODO: Use an exclusion mechanism when available: -# https://github.com/web-platform-dx/web-features/issues/841 +status: + compute_from: api.Navigator.usb compat_features: - api.Navigator.usb - api.USB @@ -41,7 +41,7 @@ compat_features: - api.USBDevice.deviceVersionMajor - api.USBDevice.deviceVersionMinor - api.USBDevice.deviceVersionSubminor - # - api.USBDevice.forget + - api.USBDevice.forget - api.USBDevice.isochronousTransferIn - api.USBDevice.isochronousTransferOut - api.USBDevice.manufacturerName @@ -95,5 +95,5 @@ compat_features: - api.USBOutTransferResult.USBOutTransferResult - api.USBOutTransferResult.bytesWritten - api.USBOutTransferResult.status - # - api.WorkerNavigator.usb - # - http.headers.Permissions-Policy.usb + - api.WorkerNavigator.usb + - http.headers.Permissions-Policy.usb diff --git a/features/webusb.yml.dist b/features/webusb.yml.dist index cfa2d0f7db1..7140f14a4b0 100644 --- a/features/webusb.yml.dist +++ b/features/webusb.yml.dist @@ -8,6 +8,12 @@ status: chrome_android: "61" edge: "79" compat_features: + # ⬇️ Same status as overall feature ⬇️ + # baseline: false + # support: + # chrome: "61" + # chrome_android: "61" + # edge: "79" - api.Navigator.usb - api.USB - api.USB.connect_event @@ -97,3 +103,21 @@ compat_features: - api.USBOutTransferResult.USBOutTransferResult - api.USBOutTransferResult.bytesWritten - api.USBOutTransferResult.status + + # baseline: false + # support: + # chrome: "88" + # chrome_android: "88" + # edge: "88" + - http.headers.Permissions-Policy.usb + + # baseline: false + # support: + # chrome: "101" + # chrome_android: "101" + # edge: "101" + - api.USBDevice.forget + + # baseline: false + # support: {} + - api.WorkerNavigator.usb