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

[web-bluetooth] Update 'script execution context' reference to refer to a `Bluetooth` instance

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Mon, 11 Jan 2016 23:08:24 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issues.opened-126059386-1452553703-sysbot+gh@w3.org>
jyasskin has just created a new issue for 

== Update 'script execution context' reference to refer to a 
`Bluetooth` instance ==
The spec currently refers to the [script execution 
 to make sure each bluetooth device, service, etc. only gets one 
`BluetoothDevice`, `BluetoothGattService`, etc. instance. However, 
that term no longer exists in HTML. @domenic suggests making one 
`BluetoothDevice`, etc. instance per 
 instance instead, which exists once per global object, and looking it
 up based on the `this` argument to whatever method was called.

I believe the alternative is to look up the right `BluetoothDevice`, 
etc. instance on the [entry settings 
 which gives different, and I think less intuitive results if realm1 
calls into realm2's navigator.bluetooth object. 

I think Chromium's current implementation effectively uses the entry 
settings object, but we'll try to change to match the spec.

@bzbarsky, does that all sound right? Is there any wording in WebIDL 
or elsewhere I should be using?

Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/196 using your 
GitHub account
Received on Monday, 11 January 2016 23:08:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 11 January 2016 23:08:29 UTC