W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > January 2016

[web-bluetooth] Pull Request: Fix #182: Filter services with the allowed services list.

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Sat, 23 Jan 2016 01:46:38 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <pull_request.opened-56964141-1453513597-sysbot+gh@w3.org>
jyasskin has just submitted a new pull request for 
https://github.com/WebBluetoothCG/web-bluetooth:

== Fix #182: Filter services with the allowed services list. ==
Preview at 
https://rawgit.com/jyasskin/web-bluetooth-1/filter-services/index.html#dom-bluetoothgattremoteserver-getprimaryservice.

This returns `NotFoundError` for out-of-bounds requests, rather than a
 more distinctive `SecurityError`. Do folks have a preference on that?

It also only enforces the allowed-services-list on primary services: 
once a primary service is allowed, sites have access to everything 
inside it, including other services that it includes.

See https://github.com/WebBluetoothCG/web-bluetooth/pull/202
Received on Saturday, 23 January 2016 01:46:40 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 23 January 2016 01:46:41 UTC