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

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