Complete restricting Web Bluetooth to secure contexts |
||
Issue descriptionIssue 510224 tracked restricting Web Bluetooth to secure contexts however it only protected navigator.bluetooth.requestDevice(). The current standard for restricting an API to secure contexts is to mark the interfaces with the [SecureContext] extended attribute. This issue tracks the work to add this attribute to all Web Bluetooth interfaces. This isn't a security issue but a developer ergonomics one as it is confusing that the Bluetooth interfaces are available at all in contexts in which they cannot be used.
,
Jul 10
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/4aa4be0b475566c8a1b879c0f8d2d0e43fa0678b commit 4aa4be0b475566c8a1b879c0f8d2d0e43fa0678b Author: Reilly Grant <reillyg@chromium.org> Date: Tue Jul 10 19:24:22 2018 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/1128462 Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org> Reviewed-by: Philip Jägenstedt <foolip@chromium.org> Commit-Queue: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#573854} [modify] https://crrev.com/4aa4be0b475566c8a1b879c0f8d2d0e43fa0678b/third_party/blink/renderer/modules/bluetooth/bluetooth.idl [modify] https://crrev.com/4aa4be0b475566c8a1b879c0f8d2d0e43fa0678b/third_party/blink/renderer/modules/bluetooth/bluetooth_characteristic_properties.idl [modify] https://crrev.com/4aa4be0b475566c8a1b879c0f8d2d0e43fa0678b/third_party/blink/renderer/modules/bluetooth/bluetooth_device.idl [modify] https://crrev.com/4aa4be0b475566c8a1b879c0f8d2d0e43fa0678b/third_party/blink/renderer/modules/bluetooth/bluetooth_remote_gatt_characteristic.idl [modify] https://crrev.com/4aa4be0b475566c8a1b879c0f8d2d0e43fa0678b/third_party/blink/renderer/modules/bluetooth/bluetooth_remote_gatt_descriptor.idl [modify] https://crrev.com/4aa4be0b475566c8a1b879c0f8d2d0e43fa0678b/third_party/blink/renderer/modules/bluetooth/bluetooth_remote_gatt_server.idl [modify] https://crrev.com/4aa4be0b475566c8a1b879c0f8d2d0e43fa0678b/third_party/blink/renderer/modules/bluetooth/bluetooth_remote_gatt_service.idl
,
Jul 10
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jul 10