-
Notifications
You must be signed in to change notification settings - Fork 40
Turn SHOULD into MUST for close/terminate messages handling? #422
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
Comments
Yes, this is an oversight and we should update the spec to reflect implementation. |
FYI: As far as I have tested on Chrome Canary for Mac and Firefox Nightly for Android,
|
PR #425 should address the spec issue. @tomoyukilabs, behavior #2 would be a bug and I suspect is an artifact of how we discard the offscreen presentation. |
@mfoltzgoogle Thanks. I leave the test to check terminating a presentation as it is. |
As I'm reviewing tests prepared by @tomoyukilabs for close/terminate on the receiving side, there are two SHOULD in the Presentation API that now strike me as odd:
Are there good reasons for these not to be MUST clauses? With SHOULD, it means a conforming implementation can reasonably ignore "close" and "terminate" messages it receives from the other end. By contrast, in Web socket, the user agent MUST close the connection if it receives a closing handshake from the other side.
Chrome seems to honour these messages. I haven't checked Mozilla's implementation but I suspect that's the case as well.
I get it we cannot guarantee that these messages reach the other side, but if they do, why ignore them?
The text was updated successfully, but these errors were encountered: