Samuel Mannehed
9f909d9b46
Don't wait for websocket closes on failure
...
RFB._fail() can be called at any time in any state, it is not certain
that we will get a close event on the socket since the socket might not
be open. This caused us to hit the disconnect timeout in such cases.
Fixes issue #678
2016-11-10 15:17:37 +01:00
Samuel Mannehed
b2e961d48d
Ensure proper connection state transitions
...
Makes the state machine more rubust and clear.
2016-11-10 15:17:31 +01:00
Samuel Mannehed
b45905ab86
Handle server-side disconnections
...
Don't handle socket-close events when connected as errors. You could
for example, in the VNC session run 'vncconfig -disconnect'.
2016-11-10 14:33:29 +01:00
Samuel Mannehed
e48d1b254e
Separate state actions from connection actions
2016-11-10 14:33:29 +01:00
Samuel Mannehed
c4b274ebb8
Move disconnect actions to a separate funciton
...
Done in order to be consistent with connect() and to separate state
actions from connection actions.
2016-11-10 14:33:29 +01:00
Samuel Mannehed
376864d6d1
Handle errors while opening a Websocket
...
For example, previously if the user typed in illegal characters in the
port field, no error would be displayed in the interface and the page
would stop at "connecting".
2016-11-10 14:33:29 +01:00
Samuel Mannehed
d24de750b1
Add fallback handling for uncought errors
2016-11-10 14:33:23 +01:00
Samuel Mannehed
b2cf3b68b3
requestDesktopSize() should always return a value
2016-11-10 14:33:23 +01:00
Samuel Mannehed
80b7dde665
Comment out skipped test
...
Forgot to comment out the code in commit
331ae15317
2016-11-10 14:28:40 +01:00
Samuel Mannehed
331ae15317
Skip keysyms.fromUnicode UCS-4 test
...
The browser requirements are too high for codePointAt at the moment
2016-11-10 14:02:22 +01:00
Samuel Mannehed
e9ddbec5b1
Fix keysyms.fromUnicode() tests
...
Node.js doesn't handle characters high up in the unicode range
properly with charCodeAt(). Adding a new test for UCS-4 codepoints
using codePointAt() to cover this.
2016-11-10 11:57:45 +01:00
Samuel Mannehed
a0ab4d4b34
Upgrade to latest npm package versions
2016-11-10 11:57:25 +01:00
Samuel Mannehed
b85a13de69
Merge pull request #689 from ossman/keysym
...
Don't send Unicode as keysym
2016-11-10 09:36:43 +01:00
Samuel Mannehed
6f258f13c7
Bump up node.js version for travis
2016-11-10 09:26:00 +01:00
Samuel Mannehed
f3d25df048
Merge pull request #711 from CendioOssman/spinners
...
Blocking transition screen when connecting/disconnecting
2016-11-10 08:47:23 +01:00
Pierre Ossman
8d710e8b18
Blocking transition screen when connecting/disconnecting
2016-11-08 14:54:48 +01:00
Samuel Mannehed
37ebc5c14e
Merge pull request #697 from CendioOssman/keyboard
...
Better method to keep focus on virtual keyboard
2016-11-08 12:28:23 +01:00
Samuel Mannehed
ef887cdb12
Merge pull request #704 from kosmasgiannis/locale-el
...
Added Greek translation
2016-10-29 04:11:07 +02:00
Giannis Kosmas
b98b2f813d
Added Greek translation
2016-10-28 21:22:25 +03:00
Samuel Mannehed
9e26112d1a
Ensure translations variable is set before use
2016-10-28 18:40:56 +02:00
Samuel Mannehed
a4fc1fa586
Add Swedish translation
2016-10-28 15:41:08 +02:00
Samuel Mannehed
fdb02f8570
Always translate literals instead of variables
...
Makes it much easier to find what needs to be translated.
2016-10-28 15:41:08 +02:00
Samuel Mannehed
da88c28714
Remove unnecessary whitespace
2016-10-28 15:41:08 +02:00
Samuel Mannehed
733d5009b6
Add translation support for strings in vnc_auto
2016-10-28 15:41:08 +02:00
Samuel Mannehed
91e41150f0
Don't translate unexpected errors
2016-10-28 15:41:00 +02:00
Samuel Mannehed
e848790194
Replace tab with spaces
2016-10-28 15:23:51 +02:00
Samuel Mannehed
f55e041908
Add newlines at the end of the translation files
2016-10-28 14:37:40 +02:00
Samuel Mannehed
a93cda3a36
Move app-specific location of language files
...
The core directory should only contain core API code that isn't
specific to an application.
2016-10-28 14:30:14 +02:00
Samuel Mannehed
e3ded092e2
Merge pull request #701 from LoekJanssen/master
...
Localization support added for messages
2016-10-28 13:41:48 +02:00
Loek Janssen
5af39a878a
Added localization to statusbar
2016-10-28 12:40:28 +02:00
Samuel Mannehed
b1358a1f2e
Always disable forced touch gestures
...
Don't only disable these for the canvas, disable for the entire page.
There were issues where the control bar handle couldn't be moved on
IE and Edge on Microsoft Surface devices due to these "touch-actions".
2016-10-26 15:43:43 +02:00
Pierre Ossman
7632c576f0
Don't grab input when running performance tests
2016-10-25 16:17:07 +02:00
Pierre Ossman
f9e26cdb32
Fix performance tests to follow new state API
2016-10-24 17:41:20 +02:00
Samuel Mannehed
ab251ad9ea
Merge branch 'CendioOssman-delay' into master
...
Closes #668
2016-10-24 14:43:28 +02:00
Pierre Ossman
d9ca5e5b6b
Don't allow more than one pending update
2016-10-24 14:42:45 +02:00
Pierre Ossman
bb6965f2e6
Wait for proper image load event
...
There is a specific event for when an image has finished loading,
so trigger on that rather than polling. The polling interval of
requestAnimationFrame() can also be very large.
2016-10-24 14:42:13 +02:00
Pierre Ossman
1578fa68ac
Hide image handling in display object
...
The callers don't need to concern themselves with how images are
rendered, so hide the details behind the API. This also avoids
exposing the render queue.
2016-10-24 14:42:13 +02:00
Pierre Ossman
9535539bb2
Process entire WebSocket message at once
...
setTimeout() causes too much delay to be useful. Also, we
already handle all rects in a message at once, so this shouldn't
be too much of a change.
2016-10-24 14:42:08 +02:00
Samuel Mannehed
2e5cae1b23
Update comment for screenSize()
...
The explanation was outdated.
2016-10-24 14:26:53 +02:00
Samuel Mannehed
1a15f22905
Remove unnecessary anonymous function
...
addEventListener can handle multiple assigned events, no need for a
wrapping function.
2016-10-24 14:08:53 +02:00
Samuel Mannehed
4770b0c311
Typo fix for last commit
...
Commit 7d20158b4b
contained a typo
2016-10-24 13:59:35 +02:00
Samuel Mannehed
7d20158b4b
Add missing log output for UI-specific errors
...
Some UI errors and one warning didn't write to the log. We want all
errors to be logged.
2016-10-24 13:36:05 +02:00
Samuel Mannehed
daca5b1727
Reformat lines to avoid line-breaks
2016-10-24 13:35:06 +02:00
Samuel Mannehed
9b3d363d07
Merge pull request #686 from CendioOssman/favicon
...
Clean up page icons ("favicon")
2016-10-24 12:09:58 +02:00
Solly Ross
0f80564aa1
Merge pull request #696 from CendioOssman/wheel
...
Support standard mouse wheel event
2016-10-21 22:56:49 -04:00
Pierre Ossman
ffcadf9507
Better method to keep focus on virtual keyboard
...
This prevents the focus being lost rather than trying to restore it
at various places.
2016-10-21 16:27:43 +02:00
Pierre Ossman
ebb9086ae8
Support standard mouse wheel event
...
Mouse wheel event handling has now been standardised and has broad
support. Use this event rather than the older, non-standard ones.
At the same time fix up support for horisontal mouse wheel events.
2016-10-21 16:04:23 +02:00
Samuel Mannehed
a2495799af
Merge pull request #677 from CendioOssman/perf
...
Support older base64 recordings
2016-10-20 12:47:21 +02:00
Samuel Mannehed
c7f2f11416
Merge branch 'asadpanda-patch1' into master
...
Closes #654
2016-10-20 01:14:57 +02:00
Asad Saeed
7c1b2bac90
Add Meta Key mapping to xtscancodes.js
...
OSLeft/OSRight have been renamed to MetaLeft/MetaRight respectively.
This change will allow the Super/Windows key to be used under the qemu
rfb extension under Chrome and updated browsers.
https://github.com/w3c/uievents-code/issues/7
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
2016-10-20 01:13:32 +02:00