Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sets the state of receiving presentation connections to terminated before unload. #386

Merged
merged 3 commits into from Dec 1, 2016

Conversation

mfoltzgoogle
Copy link
Contributor

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

@tidoust
Copy link
Member

tidoust commented Dec 1, 2016

LGTM

@mfoltzgoogle mfoltzgoogle merged commit e69d25c into gh-pages Dec 1, 2016
@mfoltzgoogle mfoltzgoogle deleted the issue-374-receiving-terminate branch December 1, 2016 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants