The `id` field itself ties into the permissions management code, which I see you were already looking into, and would more directly expose to developers the browser's internal notion of how real devices map to the identity stored in the permissions system.
October 16, 2023 at 11:23 PM
The `id` field itself ties into the permissions management code, which I see you were already looking into, and would more directly expose to developers the browser's internal notion of how real devices map to the identity stored in the permissions system.
There's an upcoming project to add an `id` field similar to what BluetoothDevice has to USBDevice, SerialPort and HIDDevice which will make this much easier to specify as we can simply say that any two objects with the same `id` must also compare as equal.
October 16, 2023 at 11:19 PM
There's an upcoming project to add an `id` field similar to what BluetoothDevice has to USBDevice, SerialPort and HIDDevice which will make this much easier to specify as we can simply say that any two objects with the same `id` must also compare as equal.
I swear I added some language when I wrote Web Serial that makes this clearer, but yes, it is guaranteed and should be added to the specification as otherwise it becomes very difficult for developers.
October 16, 2023 at 11:18 PM
I swear I added some language when I wrote Web Serial that makes this clearer, but yes, it is guaranteed and should be added to the specification as otherwise it becomes very difficult for developers.