aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorzakorgyula <gyula.zakor@gmail.com>2016-06-06 10:11:29 +0200
committerzakorgyula <gyula.zakor@gmail.com>2016-06-06 10:12:31 +0200
commit0d7943765a8a64f0556fd6dfb9db4a8af1377d34 (patch)
tree8ddbec224cdc3c1dbe71c71d98092d261a2ff7c2 /components/script/dom
parent1bc94c132e6820293c2178bf95991518b1e8a677 (diff)
downloadservo-0d7943765a8a64f0556fd6dfb9db4a8af1377d34.tar.gz
servo-0d7943765a8a64f0556fd6dfb9db4a8af1377d34.zip
Fix an incorect behavior, when converting optional services.
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/bluetooth.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/bluetooth.rs b/components/script/dom/bluetooth.rs
index e00fb33cf59..7deca26c9d3 100644
--- a/components/script/dom/bluetooth.rs
+++ b/components/script/dom/bluetooth.rs
@@ -125,10 +125,9 @@ fn convert_request_device_options(options: &RequestDeviceOptions,
if let Some(ref opt_services) = options.optionalServices {
for opt_service in opt_services {
let uuid = try!(BluetoothUUID::GetService(global, opt_service.clone())).to_string();
- if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) {
- return Err(Security)
+ if !uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) {
+ optional_services.push(uuid);
}
- optional_services.push(uuid);
}
}