diff options
author | Attila Dusnoki <dati91@gmail.com> | 2017-02-14 13:10:54 +0100 |
---|---|---|
committer | Attila Dusnoki <dati91@users.noreply.github.com> | 2017-02-14 13:39:00 +0100 |
commit | 2de91c778844af70e19cc70ea00d1f373c95ece5 (patch) | |
tree | ffc8b8fa209741b7d2e7029b9bb4338eedb7746a /components/script/dom/bluetoothpermissionresult.rs | |
parent | d5cc10a63608c13c732663ebb94068a9beba632f (diff) | |
download | servo-2de91c778844af70e19cc70ea00d1f373c95ece5.tar.gz servo-2de91c778844af70e19cc70ea00d1f373c95ece5.zip |
refactor extra permission data
Diffstat (limited to 'components/script/dom/bluetoothpermissionresult.rs')
-rw-r--r-- | components/script/dom/bluetoothpermissionresult.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/components/script/dom/bluetoothpermissionresult.rs b/components/script/dom/bluetoothpermissionresult.rs index 993df5f6524..4f228e6c75c 100644 --- a/components/script/dom/bluetoothpermissionresult.rs +++ b/components/script/dom/bluetoothpermissionresult.rs @@ -5,17 +5,15 @@ use bluetooth_traits::{BluetoothRequest, BluetoothResponse}; use dom::bindings::cell::DOMRefCell; use dom::bindings::codegen::Bindings::BluetoothPermissionResultBinding::{self, BluetoothPermissionResultMethods}; -use dom::bindings::codegen::Bindings::BluetoothPermissionResultBinding::AllowedBluetoothDevice; use dom::bindings::codegen::Bindings::NavigatorBinding::NavigatorBinding::NavigatorMethods; use dom::bindings::codegen::Bindings::PermissionStatusBinding::{PermissionName, PermissionState}; use dom::bindings::codegen::Bindings::PermissionStatusBinding::PermissionStatusBinding::PermissionStatusMethods; use dom::bindings::codegen::Bindings::WindowBinding::WindowBinding::WindowMethods; -use dom::bindings::codegen::UnionTypes::StringOrStringSequence; use dom::bindings::error::Error; use dom::bindings::js::{JS, Root}; use dom::bindings::reflector::{DomObject, reflect_dom_object}; use dom::bindings::str::DOMString; -use dom::bluetooth::{AsyncBluetoothListener, Bluetooth}; +use dom::bluetooth::{AsyncBluetoothListener, Bluetooth, AllowedBluetoothDevice}; use dom::bluetoothdevice::BluetoothDevice; use dom::globalscope::GlobalScope; use dom::permissionstatus::PermissionStatus; @@ -108,9 +106,6 @@ impl AsyncBluetoothListener for BluetoothPermissionResult { device_instance_map.insert(device.id.clone(), JS::from_ref(&bt_device)); self.global().as_window().bluetooth_extra_permission_data().add_new_allowed_device( AllowedBluetoothDevice { - // TODO fix this - // allowedServices only relevant if the device store it as an internal slot as well - allowedServices: StringOrStringSequence::String(DOMString::from("all".to_owned())), deviceId: DOMString::from(device.id), mayUseGATT: true, } |