diff options
author | Attila Dusnoki <dati91@gmail.com> | 2017-02-10 16:54:33 +0100 |
---|---|---|
committer | Attila Dusnoki <dati91@gmail.com> | 2017-02-13 14:58:15 +0100 |
commit | b1d388a991de21f00f8817282e0930ada5104d0d (patch) | |
tree | 5c62f527aaec938ba6f1a5a1676024892a6cbd55 /components/script/dom/bluetooth.rs | |
parent | f7e86d2d0edbb95daaa92495d573befedf0673b0 (diff) | |
download | servo-b1d388a991de21f00f8817282e0930ada5104d0d.tar.gz servo-b1d388a991de21f00f8817282e0930ada5104d0d.zip |
Fix BluetoothPermissionResult return state
Diffstat (limited to 'components/script/dom/bluetooth.rs')
-rw-r--r-- | components/script/dom/bluetooth.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bluetooth.rs b/components/script/dom/bluetooth.rs index 68e9a2cc32e..0c77ee1ba90 100644 --- a/components/script/dom/bluetooth.rs +++ b/components/script/dom/bluetooth.rs @@ -215,12 +215,12 @@ impl Bluetooth { let option = RequestDeviceoptions::new(BluetoothScanfilterSequence::new(uuid_filters), ServiceUUIDSequence::new(optional_services_uuids)); - // Step 3 - 5 + // Step 4 - 5. if let PermissionState::Denied = get_descriptor_permission_state(PermissionName::Bluetooth, None) { return p.reject_error(p.global().get_cx(), Error::NotFound); } - // Note: Steps 6 - 8 are implemented in + // Note: Step 3, 6 - 8 are implemented in // components/net/bluetooth_thread.rs in request_device function. self.get_bluetooth_thread().send(BluetoothRequest::RequestDevice(option, sender)).unwrap(); } |