Commit 5f6a15df authored by cfredric's avatar cfredric Committed by Commit Bot

Instrument the UUID properties of BluetoothRemoteGATT interfaces for the

identifiability study.

These IDL annotations will automatically generate instrumentation code
using blink::Dactyloscoper, to be used to determine how much entropy
these APIs leak about the users' cross-site identity.

Bug: 973801
Change-Id: I2eb31009e9bde2aa87871a7bb0a6adcff81250eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2354535
Commit-Queue: Chris Fredrickson <cfredric@google.com>
Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#798425}
parent 42af02f4
...@@ -2729,6 +2729,9 @@ enum WebFeature { ...@@ -2729,6 +2729,9 @@ enum WebFeature {
kMediaRecorder_MimeType = 3399, kMediaRecorder_MimeType = 3399,
kMediaRecorder_VideoBitsPerSecond = 3400, kMediaRecorder_VideoBitsPerSecond = 3400,
kMediaRecorder_AudioBitsPerSecond = 3401, kMediaRecorder_AudioBitsPerSecond = 3401,
kBluetoothRemoteGATTCharacteristic_Uuid = 3402,
kBluetoothRemoteGATTDescriptor_Uuid = 3403,
kBluetoothRemoteGATTService_Uuid = 3404,
// Add new features immediately above this line. Don't change assigned // Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots. // numbers of any item, and don't reuse removed slots.
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
SecureContext SecureContext
] interface BluetoothRemoteGATTCharacteristic : EventTarget { ] interface BluetoothRemoteGATTCharacteristic : EventTarget {
[SameObject] readonly attribute BluetoothRemoteGATTService service; [SameObject] readonly attribute BluetoothRemoteGATTService service;
readonly attribute UUID uuid; [HighEntropy=Direct, MeasureAs=BluetoothRemoteGATTCharacteristic_Uuid] readonly attribute UUID uuid;
readonly attribute BluetoothCharacteristicProperties properties; readonly attribute BluetoothCharacteristicProperties properties;
readonly attribute DataView? value; readonly attribute DataView? value;
[RaisesException, CallWith=ScriptState, MeasureAs=WebBluetoothRemoteCharacteristicGetDescriptor] Promise<BluetoothRemoteGATTDescriptor> getDescriptor(BluetoothDescriptorUUID descriptor); [RaisesException, CallWith=ScriptState, MeasureAs=WebBluetoothRemoteCharacteristicGetDescriptor] Promise<BluetoothRemoteGATTDescriptor> getDescriptor(BluetoothDescriptorUUID descriptor);
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
SecureContext SecureContext
] interface BluetoothRemoteGATTDescriptor { ] interface BluetoothRemoteGATTDescriptor {
[SameObject] readonly attribute BluetoothRemoteGATTCharacteristic characteristic; [SameObject] readonly attribute BluetoothRemoteGATTCharacteristic characteristic;
readonly attribute UUID uuid; [HighEntropy=Direct, MeasureAs=BluetoothRemoteGATTDescriptor_Uuid] readonly attribute UUID uuid;
readonly attribute DataView? value; readonly attribute DataView? value;
[CallWith=ScriptState, RaisesException, MeasureAs=WebBluetoothRemoteDescriptorReadValue] Promise<DataView> readValue(); [CallWith=ScriptState, RaisesException, MeasureAs=WebBluetoothRemoteDescriptorReadValue] Promise<DataView> readValue();
[CallWith=ScriptState, RaisesException, MeasureAs=WebBluetoothRemoteDescriptorWriteValue] Promise<void> writeValue(BufferSource value); [CallWith=ScriptState, RaisesException, MeasureAs=WebBluetoothRemoteDescriptorWriteValue] Promise<void> writeValue(BufferSource value);
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
SecureContext SecureContext
] interface BluetoothRemoteGATTService { ] interface BluetoothRemoteGATTService {
[SameObject] readonly attribute BluetoothDevice device; [SameObject] readonly attribute BluetoothDevice device;
readonly attribute UUID uuid; [HighEntropy=Direct, MeasureAs=BluetoothRemoteGATTService_Uuid] readonly attribute UUID uuid;
readonly attribute boolean isPrimary; readonly attribute boolean isPrimary;
[RaisesException, CallWith=ScriptState, MeasureAs=WebBluetoothRemoteServiceGetCharacteristic] Promise<BluetoothRemoteGATTCharacteristic> getCharacteristic(BluetoothCharacteristicUUID characteristic); [RaisesException, CallWith=ScriptState, MeasureAs=WebBluetoothRemoteServiceGetCharacteristic] Promise<BluetoothRemoteGATTCharacteristic> getCharacteristic(BluetoothCharacteristicUUID characteristic);
[RaisesException, CallWith=ScriptState, MeasureAs=WebBluetoothRemoteServiceGetCharacteristics] Promise<sequence<BluetoothRemoteGATTCharacteristic>> getCharacteristics(optional BluetoothCharacteristicUUID characteristic); [RaisesException, CallWith=ScriptState, MeasureAs=WebBluetoothRemoteServiceGetCharacteristics] Promise<sequence<BluetoothRemoteGATTCharacteristic>> getCharacteristics(optional BluetoothCharacteristicUUID characteristic);
......
...@@ -28749,6 +28749,9 @@ Called by update_use_counter_feature_enum.py.--> ...@@ -28749,6 +28749,9 @@ Called by update_use_counter_feature_enum.py.-->
<int value="3399" label="MediaRecorder_MimeType"/> <int value="3399" label="MediaRecorder_MimeType"/>
<int value="3400" label="MediaRecorder_VideoBitsPerSecond"/> <int value="3400" label="MediaRecorder_VideoBitsPerSecond"/>
<int value="3401" label="MediaRecorder_AudioBitsPerSecond"/> <int value="3401" label="MediaRecorder_AudioBitsPerSecond"/>
<int value="3402" label="BluetoothRemoteGATTCharacteristic_Uuid"/>
<int value="3403" label="BluetoothRemoteGATTDescriptor_Uuid"/>
<int value="3404" label="BluetoothRemoteGATTService_Uuid"/>
</enum> </enum>
<enum name="FeaturePolicyAllowlistType"> <enum name="FeaturePolicyAllowlistType">
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment