New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 702585 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 3
Type: Bug

Blocking:
issue 693513



Sign in to add a comment

WebUSB: Invalid attribute types in several IDL files

Project Member Reported by raphael....@intel.com, Mar 17 2017

Issue description

The following IDL files in //third_party/WebKit/Source/modules/webusb have problematic declarations:

USBAlternateInterface.idl:
    readonly attribute sequence<USBEndpoint> endpoints;

USBConfiguration.idl:
    readonly attribute sequence<USBInterface> interfaces;

USBDevice.idl:
    readonly attribute sequence<USBConfiguration> configurations;

USBInterface.idl:
    readonly attribute sequence<USBAlternateInterface> alternates;

USBIsochronousInTransferResult.idl:
    readonly attribute sequence<USBIsochronousInTransferPacket> packets;

USBIsochronousOutTransferResult.idl:
    readonly attribute sequence<USBIsochronousOutTransferPacket> packets;

https://heycam.github.io/webidl/#idl-sequence explicitly states that "Sequences must not be used as the type of an attribute or constant", and the WebUSB spec follows that by using FrozenArrays for attributes: https://github.com/WICG/webusb/commit/3a7cf63b7679971515563980e08c7987a373562b

We'd like to fix all occurrences of invalid attribute types in order to make the IDL compiler reject them in the future.
 
Labels: OS-Android OS-Chrome OS-Linux OS-Mac OS-Windows
Status: Fixed (was: Available)

Sign in to add a comment