]> git.proxmox.com Git - mirror_novnc.git/log
mirror_novnc.git
7 years agoRemove alternative style sheets
Pierre Ossman [Sun, 30 Oct 2016 20:36:54 +0000 (21:36 +0100)]
Remove alternative style sheets

Anyone with basic knowledge of CSS will easily figure out how to
customise the appearance of the UI, so remove the burden of having
to maintain these extra style sheets.

7 years agoRemove unused token setting
Pierre Ossman [Sat, 29 Oct 2016 14:04:13 +0000 (16:04 +0200)]
Remove unused token setting

7 years agoCenter canvas vertically as well
Pierre Ossman [Sun, 30 Oct 2016 20:32:35 +0000 (21:32 +0100)]
Center canvas vertically as well

7 years agoBlack out background when connected
Pierre Ossman [Sat, 29 Oct 2016 14:02:35 +0000 (16:02 +0200)]
Black out background when connected

7 years agoFix no auth "this._updateState" bug
Lee-Feng [Tue, 20 Dec 2016 07:37:31 +0000 (15:37 +0800)]
Fix no auth "this._updateState" bug

Fixes #735

7 years agoMerge pull request #699 from CendioOssman/double
Samuel Mannehed [Tue, 13 Dec 2016 11:42:22 +0000 (12:42 +0100)]
Merge pull request #699 from CendioOssman/double

Display double buffering

7 years agoClean up viewport handling
Pierre Ossman [Fri, 11 Nov 2016 14:32:11 +0000 (15:32 +0100)]
Clean up viewport handling

Make sure the viewport is properly updated when necessary, on respects
given restrictions.

7 years agoRemove max dimension handling
Pierre Ossman [Fri, 11 Nov 2016 13:29:03 +0000 (14:29 +0100)]
Remove max dimension handling

The viewport handling is now a lot clearer, so simply limit the size
of the viewport in the caller rather than having this extra layer
of checks.

7 years agoPrevent access to sensitive display variables
Pierre Ossman [Fri, 11 Nov 2016 13:01:42 +0000 (14:01 +0100)]
Prevent access to sensitive display variables

These should not be directly accessed. Instead use drawing operation
and Display.resize().

7 years agoDouble buffering damage tracking
Pierre Ossman [Tue, 25 Oct 2016 14:58:24 +0000 (16:58 +0200)]
Double buffering damage tracking

Optimise the copy from the hidden canvas to the visible one a bit
by only copying the modified area.

7 years agoUse double buffering for the display
Pierre Ossman [Tue, 25 Oct 2016 14:58:21 +0000 (16:58 +0200)]
Use double buffering for the display

Do all rendering to a hidden canvas and then copy over the finished
frame to the visible canvas once everything is done. This simplifies
things and solves some bugs as we can retain a copy of the entire
frame buffer.

7 years agoUpdate all state on session size change
Pierre Ossman [Thu, 24 Nov 2016 11:36:15 +0000 (12:36 +0100)]
Update all state on session size change

7 years agoDon't violate Display abstraction
Pierre Ossman [Sat, 29 Oct 2016 13:24:22 +0000 (15:24 +0200)]
Don't violate Display abstraction

Use the normal API as much as possible instead of poking around in
internals that might change.

7 years agoAdd test for Display.flush()
Pierre Ossman [Sat, 29 Oct 2016 13:01:56 +0000 (15:01 +0200)]
Add test for Display.flush()

7 years agoRemove blitStringImage() in favour of imageRect()
Pierre Ossman [Sat, 29 Oct 2016 13:00:22 +0000 (15:00 +0200)]
Remove blitStringImage() in favour of imageRect()

The latter is more generic and can easily be modified for other
mechanisms in the future.

7 years agoFlush out rendering after each performance test
Pierre Ossman [Mon, 24 Oct 2016 15:57:51 +0000 (17:57 +0200)]
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.

7 years agoRun performance tests at full speed
Pierre Ossman [Mon, 24 Oct 2016 15:37:21 +0000 (17:37 +0200)]
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.

7 years agoMerge pull request #727 from CendioOssman/travis
Samuel Mannehed [Thu, 1 Dec 2016 09:43:35 +0000 (10:43 +0100)]
Merge pull request #727 from CendioOssman/travis

Fix travis tests

7 years agoSkip language tests on broken browsers
Pierre Ossman [Tue, 29 Nov 2016 15:06:20 +0000 (16:06 +0100)]
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.

7 years agoUpdate test platforms
Pierre Ossman [Tue, 29 Nov 2016 13:48:34 +0000 (14:48 +0100)]
Update test platforms

Test on the latest version of everything, as new versions are
coming out constantly. Also add some missing combinations.

7 years agoMerge pull request #725 from CendioOssman/rightbar
Samuel Mannehed [Tue, 29 Nov 2016 12:23:02 +0000 (13:23 +0100)]
Merge pull request #725 from CendioOssman/rightbar

Allow control bar to be moved to the right side

7 years agoFix translation util tests
Samuel Mannehed [Mon, 28 Nov 2016 15:11:47 +0000 (16:11 +0100)]
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
f5bf2d84ef1bae02dfaff068de7565664a00fba3).

7 years agoRemove duplicate line
Samuel Mannehed [Mon, 28 Nov 2016 15:11:03 +0000 (16:11 +0100)]
Remove duplicate line

7 years agoClear UI.connected state variable right away
Samuel Mannehed [Mon, 28 Nov 2016 11:36:29 +0000 (12:36 +0100)]
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.

7 years agoFurther fixes for fallback error handler
Samuel Mannehed [Mon, 28 Nov 2016 11:33:42 +0000 (12:33 +0100)]
Further fixes for fallback error handler

Layout improvements as well as an check for ErrorEvent.error as it is
not standardized.

7 years agoFix fallback error handling
Samuel Mannehed [Mon, 28 Nov 2016 09:02:13 +0000 (10:02 +0100)]
Fix fallback error handling

Start using the correct API for window.addEventListener('error',..).
Unlike when using onerror, the handler function gets an event.

7 years agoRemember control bar position
Pierre Ossman [Sat, 26 Nov 2016 14:26:28 +0000 (15:26 +0100)]
Remember control bar position

7 years agoAllow control bar to be moved to the right side
Pierre Ossman [Thu, 24 Nov 2016 16:12:47 +0000 (17:12 +0100)]
Allow control bar to be moved to the right side

7 years agoTouching the handle should keep the control bar visible
Pierre Ossman [Thu, 24 Nov 2016 16:03:47 +0000 (17:03 +0100)]
Touching the handle should keep the control bar visible

Calling stopPropagation() was causing the normal event listeners
to never get the proper events.

7 years agoMerge pull request #720 from kosmasgiannis/locale-el
Samuel Mannehed [Thu, 24 Nov 2016 10:50:01 +0000 (11:50 +0100)]
Merge pull request #720 from kosmasgiannis/locale-el

Update Greek translation

7 years agoUpdate Greek translation
Giannis Kosmas [Thu, 24 Nov 2016 06:57:26 +0000 (08:57 +0200)]
Update Greek translation

7 years agoMerge pull request #718 from ossman/po
Samuel Mannehed [Tue, 22 Nov 2016 20:02:13 +0000 (21:02 +0100)]
Merge pull request #718 from ossman/po

Use gettext .po files, and translate everything

7 years agoAdded more useful links to README
Samuel Mannehed [Mon, 21 Nov 2016 23:59:11 +0000 (00:59 +0100)]
Added more useful links to README

7 years agoFormatting cleanup of README
Samuel Mannehed [Mon, 21 Nov 2016 23:37:52 +0000 (00:37 +0100)]
Formatting cleanup of README

7 years agoUpdate browser requirements in README
Samuel Mannehed [Mon, 21 Nov 2016 23:29:21 +0000 (00:29 +0100)]
Update browser requirements in README

7 years agoUpdate description in README
Samuel Mannehed [Mon, 21 Nov 2016 23:03:28 +0000 (00:03 +0100)]
Update description in README

7 years agoFix link tagname
Samuel Mannehed [Mon, 21 Nov 2016 12:43:02 +0000 (13:43 +0100)]
Fix link tagname

7 years agoUpdate Swedish translation
Pierre Ossman [Wed, 16 Nov 2016 06:36:33 +0000 (07:36 +0100)]
Update Swedish translation

7 years agoAlso translate HTML elements
Pierre Ossman [Mon, 14 Nov 2016 21:02:12 +0000 (22:02 +0100)]
Also translate HTML elements

7 years agoAdd Pierre Ossman as contributor for UI and Icons
Samuel Mannehed [Fri, 18 Nov 2016 10:15:02 +0000 (11:15 +0100)]
Add Pierre Ossman as contributor for UI and Icons

7 years agoAdd a space in logging of RFB._fail()
Samuel Mannehed [Fri, 18 Nov 2016 09:30:40 +0000 (10:30 +0100)]
Add a space in logging of RFB._fail()

7 years agoUse gettext .po files for translations
Pierre Ossman [Mon, 14 Nov 2016 21:00:21 +0000 (22:00 +0100)]
Use gettext .po files for translations

This allows the same workflow as most other projects for translations.

7 years agoRestore translations for some strings
Pierre Ossman [Tue, 15 Nov 2016 07:13:16 +0000 (08:13 +0100)]
Restore translations for some strings

We lost the translation calls for a couple of strings in one of
the clenaups.

7 years agoUse _() as shorthand for translations
Pierre Ossman [Mon, 14 Nov 2016 20:58:14 +0000 (21:58 +0100)]
Use _() as shorthand for translations

Used commonly when gettext is used for translations. Avoids cluttering
the code.

7 years agoMerge pull request #713 from kanaka/properdisconnections
Samuel Mannehed [Mon, 14 Nov 2016 13:41:54 +0000 (14:41 +0100)]
Merge pull request #713 from kanaka/properdisconnections

Better error handling

7 years agoAllow specifying details when calling RFB._fail()
Samuel Mannehed [Wed, 9 Nov 2016 14:54:10 +0000 (15:54 +0100)]
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.

7 years agoDon't wait for websocket closes on failure
Samuel Mannehed [Tue, 8 Nov 2016 17:18:19 +0000 (18:18 +0100)]
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

7 years agoEnsure proper connection state transitions
Samuel Mannehed [Tue, 8 Nov 2016 15:56:35 +0000 (16:56 +0100)]
Ensure proper connection state transitions

Makes the state machine more rubust and clear.

7 years agoHandle server-side disconnections
Samuel Mannehed [Tue, 8 Nov 2016 15:33:01 +0000 (16:33 +0100)]
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'.

7 years agoSeparate state actions from connection actions
Samuel Mannehed [Tue, 8 Nov 2016 15:27:31 +0000 (16:27 +0100)]
Separate state actions from connection actions

7 years agoMove disconnect actions to a separate funciton
Samuel Mannehed [Tue, 8 Nov 2016 15:07:47 +0000 (16:07 +0100)]
Move disconnect actions to a separate funciton

Done in order to be consistent with connect() and to separate state
actions from connection actions.

7 years agoHandle errors while opening a Websocket
Samuel Mannehed [Sat, 5 Nov 2016 17:18:15 +0000 (18:18 +0100)]
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".

7 years agoAdd fallback handling for uncought errors
Samuel Mannehed [Sat, 5 Nov 2016 17:02:08 +0000 (18:02 +0100)]
Add fallback handling for uncought errors

7 years agorequestDesktopSize() should always return a value
Samuel Mannehed [Fri, 4 Nov 2016 12:00:14 +0000 (13:00 +0100)]
requestDesktopSize() should always return a value

7 years agoComment out skipped test
Samuel Mannehed [Thu, 10 Nov 2016 13:28:40 +0000 (14:28 +0100)]
Comment out skipped test

Forgot to comment out the code in commit
331ae15317505dcb9caffee5dec412599ed0c943

7 years agoSkip keysyms.fromUnicode UCS-4 test
Samuel Mannehed [Thu, 10 Nov 2016 13:02:22 +0000 (14:02 +0100)]
Skip keysyms.fromUnicode UCS-4 test

The browser requirements are too high for codePointAt at the moment

7 years agoFix keysyms.fromUnicode() tests
Samuel Mannehed [Thu, 10 Nov 2016 10:57:45 +0000 (11:57 +0100)]
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.

7 years agoUpgrade to latest npm package versions
Samuel Mannehed [Thu, 10 Nov 2016 10:57:25 +0000 (11:57 +0100)]
Upgrade to latest npm package versions

7 years agoMerge pull request #689 from ossman/keysym
Samuel Mannehed [Thu, 10 Nov 2016 08:36:43 +0000 (09:36 +0100)]
Merge pull request #689 from ossman/keysym

Don't send Unicode as keysym

7 years agoBump up node.js version for travis
Samuel Mannehed [Thu, 10 Nov 2016 08:26:00 +0000 (09:26 +0100)]
Bump up node.js version for travis

7 years agoMerge pull request #711 from CendioOssman/spinners
Samuel Mannehed [Thu, 10 Nov 2016 07:47:23 +0000 (08:47 +0100)]
Merge pull request #711 from CendioOssman/spinners

Blocking transition screen when connecting/disconnecting

7 years agoBlocking transition screen when connecting/disconnecting
Pierre Ossman [Tue, 8 Nov 2016 13:54:48 +0000 (14:54 +0100)]
Blocking transition screen when connecting/disconnecting

7 years agoMerge pull request #697 from CendioOssman/keyboard
Samuel Mannehed [Tue, 8 Nov 2016 11:28:23 +0000 (12:28 +0100)]
Merge pull request #697 from CendioOssman/keyboard

Better method to keep focus on virtual keyboard

7 years agoMerge pull request #704 from kosmasgiannis/locale-el
Samuel Mannehed [Sat, 29 Oct 2016 02:11:07 +0000 (04:11 +0200)]
Merge pull request #704 from kosmasgiannis/locale-el

Added Greek translation

7 years agoAdded Greek translation
Giannis Kosmas [Fri, 28 Oct 2016 13:57:22 +0000 (16:57 +0300)]
Added Greek translation

7 years agoEnsure translations variable is set before use
Samuel Mannehed [Fri, 28 Oct 2016 16:40:56 +0000 (18:40 +0200)]
Ensure translations variable is set before use

7 years agoAdd Swedish translation
Samuel Mannehed [Fri, 28 Oct 2016 13:40:08 +0000 (15:40 +0200)]
Add Swedish translation

7 years agoAlways translate literals instead of variables
Samuel Mannehed [Fri, 28 Oct 2016 13:38:34 +0000 (15:38 +0200)]
Always translate literals instead of variables

Makes it much easier to find what needs to be translated.

7 years agoRemove unnecessary whitespace
Samuel Mannehed [Fri, 28 Oct 2016 13:32:01 +0000 (15:32 +0200)]
Remove unnecessary whitespace

7 years agoAdd translation support for strings in vnc_auto
Samuel Mannehed [Fri, 28 Oct 2016 13:30:04 +0000 (15:30 +0200)]
Add translation support for strings in vnc_auto

7 years agoDon't translate unexpected errors
Samuel Mannehed [Fri, 28 Oct 2016 13:24:59 +0000 (15:24 +0200)]
Don't translate unexpected errors

7 years agoReplace tab with spaces
Samuel Mannehed [Fri, 28 Oct 2016 13:23:51 +0000 (15:23 +0200)]
Replace tab with spaces

7 years agoAdd newlines at the end of the translation files
Samuel Mannehed [Fri, 28 Oct 2016 12:37:40 +0000 (14:37 +0200)]
Add newlines at the end of the translation files

7 years agoMove app-specific location of language files
Samuel Mannehed [Fri, 28 Oct 2016 12:30:14 +0000 (14:30 +0200)]
Move app-specific location of language files

The core directory should only contain core API code that isn't
specific to an application.

7 years agoMerge pull request #701 from LoekJanssen/master
Samuel Mannehed [Fri, 28 Oct 2016 11:41:48 +0000 (13:41 +0200)]
Merge pull request #701 from LoekJanssen/master

Localization support added for messages

7 years agoAdded localization to statusbar
Loek Janssen [Fri, 28 Oct 2016 10:40:28 +0000 (12:40 +0200)]
Added localization to statusbar

7 years agoAlways disable forced touch gestures
Samuel Mannehed [Wed, 26 Oct 2016 13:43:43 +0000 (15:43 +0200)]
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".

7 years agoDon't grab input when running performance tests
Pierre Ossman [Tue, 25 Oct 2016 14:15:30 +0000 (16:15 +0200)]
Don't grab input when running performance tests

7 years agoFix performance tests to follow new state API
Pierre Ossman [Mon, 24 Oct 2016 14:39:35 +0000 (16:39 +0200)]
Fix performance tests to follow new state API

7 years agoMerge branch 'CendioOssman-delay' into master
Samuel Mannehed [Mon, 24 Oct 2016 12:43:28 +0000 (14:43 +0200)]
Merge branch 'CendioOssman-delay' into master

Closes #668

7 years agoDon't allow more than one pending update
Pierre Ossman [Thu, 22 Sep 2016 08:57:56 +0000 (10:57 +0200)]
Don't allow more than one pending update

7 years agoWait for proper image load event
Pierre Ossman [Thu, 22 Sep 2016 08:28:35 +0000 (10:28 +0200)]
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.

7 years agoHide image handling in display object
Pierre Ossman [Thu, 22 Sep 2016 08:19:26 +0000 (10:19 +0200)]
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.

7 years agoProcess entire WebSocket message at once
Pierre Ossman [Thu, 22 Sep 2016 08:12:26 +0000 (10:12 +0200)]
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.

7 years agoUpdate comment for screenSize()
Samuel Mannehed [Mon, 24 Oct 2016 12:26:53 +0000 (14:26 +0200)]
Update comment for screenSize()

The explanation was outdated.

7 years agoRemove unnecessary anonymous function
Samuel Mannehed [Mon, 24 Oct 2016 12:08:53 +0000 (14:08 +0200)]
Remove unnecessary anonymous function

addEventListener can handle multiple assigned events, no need for a
wrapping function.

7 years agoTypo fix for last commit
Samuel Mannehed [Mon, 24 Oct 2016 11:59:35 +0000 (13:59 +0200)]
Typo fix for last commit

Commit 7d20158b4b8bdc8c6e870bda139e2cf47f83747c contained a typo

7 years agoAdd missing log output for UI-specific errors
Samuel Mannehed [Mon, 24 Oct 2016 11:36:05 +0000 (13:36 +0200)]
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.

7 years agoReformat lines to avoid line-breaks
Samuel Mannehed [Mon, 24 Oct 2016 11:35:06 +0000 (13:35 +0200)]
Reformat lines to avoid line-breaks

7 years agoMerge pull request #686 from CendioOssman/favicon
Samuel Mannehed [Mon, 24 Oct 2016 10:09:58 +0000 (12:09 +0200)]
Merge pull request #686 from CendioOssman/favicon

Clean up page icons ("favicon")

7 years agoMerge pull request #696 from CendioOssman/wheel
Solly Ross [Sat, 22 Oct 2016 02:56:49 +0000 (22:56 -0400)]
Merge pull request #696 from CendioOssman/wheel

Support standard mouse wheel event

7 years agoBetter method to keep focus on virtual keyboard
Pierre Ossman [Fri, 21 Oct 2016 14:27:43 +0000 (16:27 +0200)]
Better method to keep focus on virtual keyboard

This prevents the focus being lost rather than trying to restore it
at various places.

7 years agoSupport standard mouse wheel event
Pierre Ossman [Fri, 21 Oct 2016 14:02:27 +0000 (16:02 +0200)]
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.

7 years agoMerge pull request #677 from CendioOssman/perf
Samuel Mannehed [Thu, 20 Oct 2016 10:47:21 +0000 (12:47 +0200)]
Merge pull request #677 from CendioOssman/perf

Support older base64 recordings

7 years agoMerge branch 'asadpanda-patch1' into master
Samuel Mannehed [Wed, 19 Oct 2016 23:14:57 +0000 (01:14 +0200)]
Merge branch 'asadpanda-patch1' into master

Closes #654

7 years agoAdd Meta Key mapping to xtscancodes.js
Asad Saeed [Tue, 6 Sep 2016 18:42:13 +0000 (14:42 -0400)]
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

7 years agoMerge pull request #649 from kanaka/dontgrabinviewonly
Samuel Mannehed [Wed, 19 Oct 2016 23:04:14 +0000 (01:04 +0200)]
Merge pull request #649 from kanaka/dontgrabinviewonly

Fix view only

7 years agoMerge pull request #687 from CendioOssman/info
Samuel Mannehed [Wed, 19 Oct 2016 23:02:55 +0000 (01:02 +0200)]
Merge pull request #687 from CendioOssman/info

Improve info and error icons

7 years agoMerge pull request #619 from zarmhast/touchmouse
Samuel Mannehed [Wed, 19 Oct 2016 22:45:20 +0000 (00:45 +0200)]
Merge pull request #619 from zarmhast/touchmouse

Fix for touchscreen devices that also have a mouse.

7 years agoFix for touchscreen devices that also have a mouse.
zarmhast [Sat, 4 Jun 2016 23:12:26 +0000 (23:12 +0000)]
Fix for touchscreen devices that also have a mouse.