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

Re: [web-bluetooth] Object destroyed before request is resolved.

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Tue, 02 Feb 2016 02:00:21 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-178309404-1454378418-sysbot+gh@w3.org>
Because of the cache in 
[[[attributeInstanceMap]]](https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetooth-attributeinstancemap-slot),
 characteristics aren't destroyed until the global object goes away, 
roughly when the tab is navigated or closed. I can see arguments both 
for and against having the UA avoid subscribing to notifications until
 there's some javascript code around that could observe the 
subscription, but because that delay isn't observable except for the 
delay in a value update, I don't think we need any change to the spec 
to allow it.

Closing, but feel free to re-open if I've missed something.

-- 
GitHub Notification of comment by jyasskin
Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/170#issuecomment-178309404
 using your GitHub account
Received on Tuesday, 2 February 2016 02:00:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 2 February 2016 02:00:29 UTC