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

Firefox closes websocket/streaming/long-polling request when window.location is changed #1128

Closed
Legioth opened this issue Jun 6, 2013 · 2 comments

Comments

@Legioth
Copy link
Contributor

Legioth commented Jun 6, 2013

When a value is written to window.location, it usually means that the current page will be unloaded. The new location might however be e.g. a download or a mailto URI that opens in an external program and in such cases the document will not be unloaded. The problem is that in firefox does still close all pending requests and all open websocket connections. It seems that in this situation Atmosphere attempts to reopen the connection, but for some reason two connection attempts are made with the javascript listening to data from the first opened connection whereas the server sends data to the second connection. The end result of this is that no messages are received from the server.

Tested using the chat sample from the head of the atmosphere-1.0.x branch by adding a button that runs window.location = 'mailto:foo@bar@.com';.

@drogatkin
Copy link

window.open helps here.

@jfarcand
Copy link
Member

@drogatkin Contribution welcomed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants