W3C home > Mailing lists > Public > public-secondscreen@w3.org > December 2016

[presentation-api] Pull Request: Sets the state of receiving presentation connections to terminated before unload.

From: Mark Foltz via GitHub <sysbot+gh@w3.org>
Date: Thu, 01 Dec 2016 19:40:43 +0000
To: public-secondscreen@w3.org
Message-ID: <pull_request.opened-96155975-1480621241-sysbot+gh@w3.org>
mfoltzgoogle has just submitted a new pull request for 
https://github.com/w3c/presentation-api:

== Sets the state of receiving presentation connections to terminated 
before unload. ==
Addresses Issue #374: Determine if we need to fire a terminated event 
in the receiving browsing context(s).

This changes the state of connections in the presentation to 
`terminated` before unloading the document in the receiving browsing 
context.  This is in lieu of firing an `terminate` event, which seems 
redundant with existing events like `beforeunload`.

Note that this change will prevent messages from being sent during 
`beforeunload`, which actually seems like it should simplify 
implementations:  they can disable and tear down the communication 
channels immediately upon receiving a signal to terminate.

PTAL

See https://github.com/w3c/presentation-api/pull/386
Received on Thursday, 1 December 2016 19:40:49 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 1 December 2016 19:40:50 UTC