Pierre Ossman
02329ab19c
Don't violate Display abstraction
...
Use the normal API as much as possible instead of poking around in
internals that might change.
2016-12-09 09:20:50 +01:00
Pierre Ossman
3181a032f8
Add test for Display.flush()
2016-12-09 09:20:50 +01:00
Pierre Ossman
74e390512d
Remove blitStringImage() in favour of imageRect()
...
The latter is more generic and can easily be modified for other
mechanisms in the future.
2016-12-09 09:20:50 +01:00
Pierre Ossman
18e96092c3
Flush out rendering after each performance test
...
There might be operations pending in the render queue. Make sure
these are fully handled before we consider the test run over.
2016-12-09 09:20:39 +01:00
Pierre Ossman
e12e2759b0
Run performance tests at full speed
...
setTimeout() is subject to delays, possible massive ones. As such it
is rather useless for performance sensitive code. Use the non-standard
setImmediate() API instead, emulating it on postMessage() when it
isn't available.
2016-12-06 16:14:11 +01:00
Samuel Mannehed
e663da8c32
Merge pull request #727 from CendioOssman/travis
...
Fix travis tests
2016-12-01 10:43:35 +01:00
Pierre Ossman
6ec3af22ca
Skip language tests on broken browsers
...
The hacks needed to run these tests require proper handling of
properties. Unfortunately IE and old versions of Chrome mess up,
so just skip the tests there.
2016-11-29 17:00:24 +01:00
Pierre Ossman
acca6487f2
Update test platforms
...
Test on the latest version of everything, as new versions are
coming out constantly. Also add some missing combinations.
2016-11-29 17:00:24 +01:00
Samuel Mannehed
a8cc32d8b9
Merge pull request #725 from CendioOssman/rightbar
...
Allow control bar to be moved to the right side
2016-11-29 13:23:02 +01:00
Samuel Mannehed
77bc3a551b
Fix translation util tests
...
We have to temporarily replace window.navigator due to the fact that
its property languages is read-only. The tests for the translation
utilities require different values of this property. The failing tests
were added in merge of PR #718 (in commit
f5bf2d84ef
).
2016-11-28 16:14:55 +01:00
Samuel Mannehed
ffa819eec1
Remove duplicate line
2016-11-28 16:11:03 +01:00
Samuel Mannehed
d062074b5a
Clear UI.connected state variable right away
...
Keeping it set for the disconnecting state was causing an issue where
the controlbar could be hidden without any way to open it, when a
session disconnects too quickly.
2016-11-28 12:36:29 +01:00
Samuel Mannehed
d8ff7c9ed6
Further fixes for fallback error handler
...
Layout improvements as well as an check for ErrorEvent.error as it is
not standardized.
2016-11-28 12:33:42 +01:00
Samuel Mannehed
38d8cfdf83
Fix fallback error handling
...
Start using the correct API for window.addEventListener('error',..).
Unlike when using onerror, the handler function gets an event.
2016-11-28 10:02:13 +01:00
Pierre Ossman
cf348b7892
Remember control bar position
2016-11-26 15:26:28 +01:00
Pierre Ossman
8ee432f1db
Allow control bar to be moved to the right side
2016-11-26 15:13:33 +01:00
Pierre Ossman
de315d6216
Touching the handle should keep the control bar visible
...
Calling stopPropagation() was causing the normal event listeners
to never get the proper events.
2016-11-24 17:03:47 +01:00
Samuel Mannehed
38f3d92c5e
Merge pull request #720 from kosmasgiannis/locale-el
...
Update Greek translation
2016-11-24 11:50:01 +01:00
Giannis Kosmas
dd085b40a9
Update Greek translation
2016-11-24 12:18:59 +02:00
Samuel Mannehed
f5bf2d84ef
Merge pull request #718 from ossman/po
...
Use gettext .po files, and translate everything
2016-11-22 21:02:13 +01:00
Samuel Mannehed
7629b03ee9
Added more useful links to README
2016-11-22 00:59:11 +01:00
Samuel Mannehed
b55bfcf04b
Formatting cleanup of README
2016-11-22 00:37:52 +01:00
Samuel Mannehed
4cb91c4269
Update browser requirements in README
2016-11-22 00:29:21 +01:00
Samuel Mannehed
0f725a3061
Update description in README
2016-11-22 00:03:28 +01:00
Samuel Mannehed
1983baf5bf
Fix link tagname
2016-11-21 13:43:02 +01:00
Pierre Ossman
79b05f9f19
Update Swedish translation
2016-11-19 13:23:00 +01:00
Pierre Ossman
edffd9e2f8
Also translate HTML elements
2016-11-19 13:23:00 +01:00
Samuel Mannehed
32ec8f32f4
Add Pierre Ossman as contributor for UI and Icons
2016-11-18 11:15:02 +01:00
Samuel Mannehed
9964ab0e8e
Add a space in logging of RFB._fail()
2016-11-18 10:30:40 +01:00
Pierre Ossman
3cdc603aa4
Use gettext .po files for translations
...
This allows the same workflow as most other projects for translations.
2016-11-17 20:42:08 +01:00
Pierre Ossman
45729def6d
Restore translations for some strings
...
We lost the translation calls for a couple of strings in one of
the clenaups.
2016-11-17 19:58:10 +01:00
Pierre Ossman
f28e248d3f
Use _() as shorthand for translations
...
Used commonly when gettext is used for translations. Avoids cluttering
the code.
2016-11-17 19:58:10 +01:00
Samuel Mannehed
e1f853e5ae
Merge pull request #713 from kanaka/properdisconnections
...
Better error handling
2016-11-14 14:41:54 +01:00
Samuel Mannehed
67cd2072ab
Allow specifying details when calling RFB._fail()
...
RFB's _fail function logs the error, disconnects the session and sets
disconnect_reason. The disconnect_reason is upon disconnection sent to
the user interface. It is thus not suitable for including error details
that aren't user friendly. The idea is that you will look in the
browser console for a full log with details of the error.
2016-11-10 15:17:37 +01:00
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