aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorzakorgyula <gyula.zakor@gmail.com>2016-07-26 14:29:23 +0200
committerzakorgyula <gyula.zakor@gmail.com>2016-07-26 14:29:23 +0200
commit2d2eb62fa0a0d8ed7605c395d67cc616a5efbe92 (patch)
tree3ac42225e67f9ab93a45bba2c31f59bf680660f2 /components/script/dom
parenta94b92f8c4f3e3edbc8db7c106fe2b6d3a5d82ae (diff)
downloadservo-2d2eb62fa0a0d8ed7605c395d67cc616a5efbe92.tar.gz
servo-2d2eb62fa0a0d8ed7605c395d67cc616a5efbe92.zip
WebBluetooth Specification Change
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/bluetoothremotegattcharacteristic.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/bluetoothremotegattcharacteristic.rs b/components/script/dom/bluetoothremotegattcharacteristic.rs
index e3e17b4a0f9..8c520d7d4ca 100644
--- a/components/script/dom/bluetoothremotegattcharacteristic.rs
+++ b/components/script/dom/bluetoothremotegattcharacteristic.rs
@@ -195,6 +195,12 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris
if !self.Service().Device().Gatt().Connected() {
return Err(Network)
}
+
+ if !(self.Properties().Write() ||
+ self.Properties().WriteWithoutResponse() ||
+ self.Properties().AuthenticatedSignedWrites()) {
+ return Err(NotSupported)
+ }
let (sender, receiver) = ipc::channel().unwrap();
self.get_bluetooth_thread().send(
BluetoothMethodMsg::WriteValue(self.get_instance_id(), value, sender)).unwrap();