-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Investigate "salvageable" and WebSocket interaction #1931
Comments
It would be nice to change the behaviour so that more pages are salvageable. Specifically, if we fire onerror and onclose events when the page is restored from the back/forward cache, we should be able to achieve reasonable compatibility with existing pages while permitting increase use of the back/forward cache. |
@ricea is the expectation that the vast majority of pages that use websockets will open a new websocket when the current one unexpectedly closes? For pages that don't do so automatically, the user would have to either click a button (or so) in the page to open a new websocket, or reload the page. Similar to briefly losing network connection without navigating the page. It seems OK to me to change so that websockets are always closed on navigation (and you get a I don't think we should fire |
The spec always fires In Chrome the So the question comes down to "do we set |
https://html.spec.whatwg.org/multipage/browsers.html#unloading-document-cleanup-steps
http://w3c-test.org/websockets/unload-a-document/001.html
expects the document to be discarded, and passes in Gecko/Chromium/WebKit.
http://w3c-test.org/websockets/unload-a-document/002.html
expects the document to not be discarded, and fails in Gecko/Chromium/WebKit.
Need to investigate what's going on here, and if the spec/test need changing...
The text was updated successfully, but these errors were encountered: