Commit Graph

1775 Commits

Author SHA1 Message Date
Solly Ross 19c19bed06 Merge pull request #632 from patrakov/master
Fixed BLIT RGB data buffer size

The RGB buffer size was incorrectly marked as `pixels * 4` instead of the correct `pixels * 3`

Fixes #615
2016-08-23 15:11:03 -04:00
Solly Ross c7925074c4 Revert poor workaround for brief Firefox bug
This commit reverts a fix for a bug which briefly occured on certain
nightlies of Firefox.  It was never intended to persist in the code
base, and is causing other actual errors to be swallowed.
2016-08-23 15:02:45 -04:00
Solly Ross 6521c6ac0f Fix ImageData Constructor Support Detection
Our support detection for the `ImageData(data, width, height)` constructor
would fail in certain browsers because the size of a 1x1 ImageData's
Uint8ClampedArray is 4, not 1.
2016-08-23 15:01:31 -04:00
Joel Martin 54fc35248d Merge pull request #640 from nunojusto/patch-1
Update launch.sh
2016-08-16 17:34:38 -05:00
nunojusto 83d3e02fd9 Update launch.sh
Just a correction of port in use test algoritm.
This way we will not have problems when using port X and having some other service using zyX or any *X port
2016-08-16 22:10:14 +01:00
Alexander E. Patrakov 6024677ffa Fixed RGB data buffer size (#615) 2016-07-31 21:55:04 +05:00
Solly Ross da82b3426c Release 0.6.1
Fixes version number mismatch (also adds more detailed instructions
for releasing).

Fixes #628
2016-07-04 15:29:00 -04:00
Solly Ross 5230ab6764 Release 0.6.0
This bumps the release version to 0.6.0
2016-07-01 15:42:14 -04:00
Solly Ross 67685d0700 Fix missing mistyped setTimeout handler in UI
This commit fixes a mistyped setTimeout handler that would result
in the desired function not getting called (due to a missing set
of parentheses).  It also removes some uncessary anonymous functions,
and just passes the function objects directly to setTimeout.
2016-07-01 15:42:14 -04:00
Joel Martin 15e733f533 Clarify that utils/launch.sh is MPL-2.0
Also, note in the top-level license file that the default noVNC
license for files that are not explicitly marked or mentioned in
the LICENSE.txt file are by default MPL-2.0 licensed.
2016-06-13 10:22:43 -05:00
samhed b2cdd55859 Proper error handling for tight filters
Don't throw an exception when we encounter an unsupported tight
subencoding.
2016-06-10 17:15:42 +02:00
samhed 3daa86cbae Update vnc_auto after the screen namechange
Commit 553864e858 changed the name of
noVNC_screen to noVNC_container, vnc_auto.html was not updated
accordingly. Fixes #621
2016-06-08 16:02:37 +02:00
samhed 3df1326239 Add support for fences
We don't actually use these, but servers may require this for other
features.
2016-06-03 16:37:19 +02:00
samhed 37195e4b5e Lower level check for framebuffer update requests
Try to avoid using helper functions with complex logic when verifying
results as those helper functions are also something we want to verify.

Also add a test for a mix of clean and dirty areas specifically to make
sure that helper function behaves properly.
2016-06-03 16:35:59 +02:00
samhed 89d2837fa8 Always flush socket after each message
Make sure our messages go away right away, rather than having to
remember to call flush from the caller, or causing extra delays by
waiting for the send timer. This should result in a more responsive
system.
2016-06-03 16:32:28 +02:00
samhed b1538a0fa4 Fix 'sent' assertion
We were completely mishandling the length of the data. Make sure
we look at the length of the websocket rather than the websock object,
and also compare with the expected length.
2016-06-03 16:31:29 +02:00
samhed cf0236de18 Fix typo in pointer event test 2016-06-03 16:31:12 +02:00
samhed 3af1a3a05b Avoid unnecessary delays
We only use setTimeout() to avoid hanging the browser, not because we
actually want a delay. So let's use the smallest delay there is.
2016-06-03 10:55:42 +02:00
samhed 5a20f425d4 Clean up encodings array
List pseudo-encodings seperately and sorted by encoding number.
2016-06-03 10:55:42 +02:00
samhed 5fd3f88e50 Merge branch 'ui-cleanup' of https://github.com/kanaka/noVNC 2016-06-03 10:46:05 +02:00
Samuel ae11605141 Split the setDesktopSize function (#618)
In order to follow the surrounding coding-standards, the
setDesktopSize client message is split from the public function which
now is called requestDesktopSize().
2016-06-02 22:37:52 +02:00
Samuel Mannehed a1dbbcc1a7 Consistent closing tags for void elements 2016-05-27 16:14:25 +02:00
Samuel Mannehed 3f2c25a60f Use a consistent naming convention for elements
* Element names we use "_" as word-delimiter, not "-"
* Element names use less camel-case
* Element names end with the type
* Element names always start with noVNC_
2016-05-27 16:14:25 +02:00
Samuel Mannehed 682fd02be6 Change the names of settings-elements
This change was made in order to make it easier to distinguish
settings-elements from other elements. One example of the problem
that was solved is the two elements "noVNC_clip" and
"noVNC_clipboard" where the first is the setting for clipping mode.
That element was now renamed to "noVNC_setting_clip".
2016-05-27 16:12:32 +02:00
samhed a20a898765 Timeouts should always use anonymous functions
While you CAN pass functions in strings, it is not the correct way
of doing it. The browsers are just being nice.
2016-05-27 16:12:31 +02:00
samhed 4d26f58e0d Change name of clipboard functions
There were a high risk of confusion between clipboard functions and
clipping functions.
2016-05-27 16:11:47 +02:00
samhed 95dd60011c Group together related functions and add dividers
Dividers between the different parts of the UI has been added in
order to easier get an overview.
2016-05-12 16:56:50 +02:00
samhed afcf031a68 Send the xvp keys from anonymous functions 2016-05-12 16:56:50 +02:00
samhed fdf21468d3 Renamed and moved keyboard and mouse functions 2016-05-12 16:56:50 +02:00
samhed 9e45354efc Renamed and moved updateXvpButton 2016-05-12 16:56:50 +02:00
samhed ab81ddf5d4 Move the connect and disconnect functions 2016-05-12 16:56:50 +02:00
samhed e00698fef8 Clarify comments and variable names for viewDrag 2016-05-12 16:56:50 +02:00
samhed cd611a5326 Renamed showExtraKeys to toggleExtraKeys 2016-05-12 16:56:50 +02:00
samhed 4e471b5b55 Moved and split the popupStatus function
Now if popupStatus is called twice it will refresh the duration of
the popup. If you want to wait 1.5 seconds and close the popup you
can click the popup itself.
2016-05-12 16:56:50 +02:00
samhed 45c70c9e23 Moved and changed order of the setting-functions 2016-05-12 16:56:50 +02:00
samhed 0bd2cbacaa Remove whitespace from function definitions 2016-05-12 16:56:50 +02:00
samhed 29475d7728 Moved UpdateState and UpdateVisualState 2016-05-12 16:56:49 +02:00
samhed 777cb7a0c5 Cleanup for the resize related functions
Renamed functions, added clarifying comments and moved the resize
related functions closer to the other viewport functions.
2016-05-12 16:56:49 +02:00
samhed 553864e858 Switch names between the container and the screen
The noVNC_container now contains the logo and the screen. While the
noVNC_screen in turn contains the canvas.
2016-05-12 16:56:49 +02:00
samhed f52105bc88 Add fallback value for devicePixelRatio
In IE 10 for example, devicePixelRatio doesn't exist which caused the
code to fail by setting the thresholds to zero.
2016-05-12 16:43:19 +02:00
Samuel Mannehed 057cfc7cb4 Add missing parenthesis (#600) 2016-04-30 04:26:30 +02:00
Samuel Mannehed 12ae8b3d50 Respect the threshold in the viewdrag test (#600) 2016-04-30 04:08:34 +02:00
Samuel Mannehed 3120c9b5ec Merge branch 'SirCmpwn-fix-send-on-disconnect'
Updated patch to use the readyState constant even in the tests.
2016-04-30 02:34:20 +02:00
Drew DeVault cf0623fffa Fix failing test
It only makes sense to send data on a websocket if the readyState is
equal to 1.
2016-04-30 02:28:45 +02:00
Drew DeVault f6a29ddeeb Fix occasional error with sending while readyState !== 1
Under certain conditions, noVNC would attempt to flush the web socket
while it was disconnected, before the disconnected state was picked up.
This casues noVNC to crash ungracefully and the parent window is not
notified - leading to no chance at recovery without a page refresh.
2016-04-30 02:26:17 +02:00
samhed 32df3fdbe1 Add a threshold for viewport dragging (#600) 2016-04-28 17:41:48 +02:00
Jonathan Bennett 27e77d468f Adds tap-to-click in viewport drag mode (#600) 2016-04-28 13:46:40 +02:00
samhed f620259bc5 Force clipping mode in Safari on all platforms 2016-04-25 16:38:23 +02:00
samhed 529c64e103 Re-arrange global UI variables 2016-04-25 16:35:49 +02:00
Solly Ross 8b0a0f6637 Merge pull request #602 from oneru/typo-fix
Adds missed line from PR 597
2016-04-13 15:02:48 -04:00