]> git.proxmox.com Git - mirror_novnc.git/commit - tests/test.rfb.js
Abstract RFB errors to avoid sending strings
authorSamuel Mannehed <samuel@cendio.se>
Sat, 11 Nov 2017 00:48:47 +0000 (01:48 +0100)
committerSamuel Mannehed <samuel@cendio.se>
Tue, 14 Nov 2017 14:36:12 +0000 (15:36 +0100)
commitd472f3f19ef8cb9000ccfdf854d9f40e587fac0a
tree5b228b6911897efe7482716a627500470e79a5d1
parentee5cae9fee484794211d89de55e9d454abd4d599
Abstract RFB errors to avoid sending strings

The API allowed strings to be passed from the RFB module to the
application using the disconnect reason. This caused problems since
the application didn't have control over translations for these
strings.

Most of the information being passed using this string was very
technical and not helpful to the end user. One exception to this was
the security result information regarding for example authentication
failures. The protocol allows the VNC server to pass a string
directly to the user in the security result.

So the disconnect reason is replaced by a boolean saying if the
disconnection was clean or not. And for the security result information
from the server, a new event has been added.
app/ui.js
core/rfb.js
docs/API.md
tests/playback-ui.js
tests/playback.js
tests/test.rfb.js
vnc_lite.html