Commit 4aa4be0b authored by Reilly Grant's avatar Reilly Grant Committed by Commit Bot

Add [SecureContext] to additional Web Bluetooth interfaces

This change updates the Web Bluetooth WebIDL files to match the
recently merged pull request #402 by hiding interfaces which aren't
useful in insecure contexts.

Bug: 860798
Change-Id: I59fb1d0765754fce2eb6aefc458f550b09422c96
Reviewed-on: https://chromium-review.googlesource.com/1128462Reviewed-by: default avatarGiovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: default avatarPhilip Jägenstedt <foolip@chromium.org>
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#573854}
parent 694382d1
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetooth // https://webbluetoothcg.github.io/web-bluetooth/#bluetooth
[ [
RuntimeEnabled=WebBluetooth RuntimeEnabled=WebBluetooth,
SecureContext
] interface Bluetooth { ] interface Bluetooth {
[CallWith=ScriptState, RaisesException, MeasureAs=WebBluetoothRequestDevice] Promise<BluetoothDevice> requestDevice (optional RequestDeviceOptions options); [CallWith=ScriptState, RaisesException, MeasureAs=WebBluetoothRequestDevice] Promise<BluetoothDevice> requestDevice (optional RequestDeviceOptions options);
}; };
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
// Implement BluetoothCharacteristicProperties interface: http://crbug.com/483345 // Implement BluetoothCharacteristicProperties interface: http://crbug.com/483345
[ [
RuntimeEnabled=WebBluetooth RuntimeEnabled=WebBluetooth,
SecureContext
] interface BluetoothCharacteristicProperties { ] interface BluetoothCharacteristicProperties {
readonly attribute boolean broadcast; readonly attribute boolean broadcast;
readonly attribute boolean read; readonly attribute boolean read;
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
// Implement BluetoothDevice interface: http://crbug.com/421668 // Implement BluetoothDevice interface: http://crbug.com/421668
[ [
RuntimeEnabled=WebBluetooth RuntimeEnabled=WebBluetooth,
SecureContext
] interface BluetoothDevice : EventTarget ] interface BluetoothDevice : EventTarget
// Implement ServiceEventHandlers interface: http://crbug.com/421670 // Implement ServiceEventHandlers interface: http://crbug.com/421670
// : ServiceEventHandlers // : ServiceEventHandlers
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
[ [
ActiveScriptWrappable, ActiveScriptWrappable,
RuntimeEnabled=WebBluetooth RuntimeEnabled=WebBluetooth,
SecureContext
] interface BluetoothRemoteGATTCharacteristic : EventTarget {//: CharacteristicEventHandlers { ] interface BluetoothRemoteGATTCharacteristic : EventTarget {//: CharacteristicEventHandlers {
[SameObject] readonly attribute BluetoothRemoteGATTService service; [SameObject] readonly attribute BluetoothRemoteGATTService service;
readonly attribute UUID uuid; readonly attribute UUID uuid;
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
// Implement BluetoothRemoteGATTDescriptor interface: https://crbug.com/660699 // Implement BluetoothRemoteGATTDescriptor interface: https://crbug.com/660699
[ [
RuntimeEnabled=WebBluetooth RuntimeEnabled=WebBluetooth,
SecureContext
] interface BluetoothRemoteGATTDescriptor { ] interface BluetoothRemoteGATTDescriptor {
[SameObject] readonly attribute BluetoothRemoteGATTCharacteristic characteristic; [SameObject] readonly attribute BluetoothRemoteGATTCharacteristic characteristic;
readonly attribute UUID uuid; readonly attribute UUID uuid;
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
// Implement BluetoothGATTRemoteServer interface: https://crbug.com/476735 // Implement BluetoothGATTRemoteServer interface: https://crbug.com/476735
[ [
RuntimeEnabled=WebBluetooth RuntimeEnabled=WebBluetooth,
SecureContext
] interface BluetoothRemoteGATTServer ] interface BluetoothRemoteGATTServer
{ {
[SameObject] readonly attribute BluetoothDevice device; [SameObject] readonly attribute BluetoothDevice device;
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
// Implement BluetoothRemoteGATTService interface: https://crbug.com/483342 // Implement BluetoothRemoteGATTService interface: https://crbug.com/483342
[ [
RuntimeEnabled=WebBluetooth RuntimeEnabled=WebBluetooth,
SecureContext
] interface BluetoothRemoteGATTService { // : ServiceEventHandlers { ] interface BluetoothRemoteGATTService { // : ServiceEventHandlers {
[SameObject] readonly attribute BluetoothDevice device; [SameObject] readonly attribute BluetoothDevice device;
readonly attribute UUID uuid; readonly attribute UUID uuid;
......
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