- From: Mark Foltz via GitHub <sysbot+gh@w3.org>
- Date: Tue, 06 Dec 2016 21:28:50 +0000
- To: public-secondscreen@w3.org
mfoltzgoogle has just created a new issue for https://github.com/w3c/presentation-api: == Steps that re-use objects should specify the relevant settings object/Javascript Realm == There are three algorithms that re-use objects: - `getAvailability` re-uses a `Promise` and a `PresentationAvailability` - `reconnect` re-uses a `PresentationConnection` - `navigator.presentation.receiver.connectionList` re-uses a `Promise` and `PresentationConnectionList` These steps need to specify the relevant settings object / Realm, instead of the current settings object/realm. Otherwise, badness ensues when they are invoked or accessed across browsing contexts. See [1] for an example of this with `navigator.getBattery()`. [1] https://www.w3.org/TR/html52/webappapis.html#realms-settings-objects-global-objects Please view or discuss this issue at https://github.com/w3c/presentation-api/issues/391 using your GitHub account
Received on Tuesday, 6 December 2016 21:28:51 UTC