Commit Graph

283 Commits (6342a117ff281f4ab24729d5d375e80e4d2f52f5)
 

Author SHA1 Message Date
Samuel Mannehed 6342a117ff Clarify comments for broken alt in FF on Windows 4 years ago
Niko Lehto 766fc43855 Add support for VMware cursor encoding
Supports both classic cursor type and alpha cursor type. In classic
mode the server can send 'inverted' pixels for the cursor, our code
does not support this but handles these pixels as opaque black.

Co-authored-by: Samuel Mannehed <samuel@cendio.se>
4 years ago
Niko Lehto 19f0803636 Fix url cursor detection on Edge
_supportCursorURIs was set to true even when Edge didn't support
URIs because the fallback value "default" was used.
4 years ago
Niko Lehto 3c3ac34eb8 Test unicode desktop names 4 years ago
Niko Lehto 8c43287afb Add support for DesktopName extension
This extension allows session name to be changed during runtime.
4 years ago
Pierre Ossman c16cc6e2b9 Set viewport size for autoscale tests
We were incorrectly relying on the viewport being indirectly set
for us. Make sure we are explicit in what we want for these tests.
4 years ago
Pierre Ossman c211f31113 Remove pointless Display.clear()
It served no meaningful purpose and it had bugs. So let's remove it
rather than try to fix it.
4 years ago
Pierre Ossman 4cc536636a Remove unused Display.logo attribute 4 years ago
Pierre Ossman 734bdd3746 Deprecate showDotCursor option for RFB constructor
It is not relevant for the connection stage so it should not have
been a constructor argument to begin with. Ship with a warning for
a release before we remove it.
4 years ago
Pierre Ossman 8218a0cb2a Make sure showDotCursor can be modified before connecting
The cursor object is only attached to our canvas whilst connecting,
so we need to make sure we don't try to update anything when were
not connected or we'll get a crash.
4 years ago
Pierre Ossman 2525174260 Regenerate module loader after tool upgrades 4 years ago
Jesper Alf Dam b0896c8859 When compacting the receive buffer don't copy unused buffer space
When compacting the receive buffer, we should only copy the bytes
between _rQi and _rQlen (the index of the first unread byte, and the
next write position).

Previously, we copied everything for _rQi up untill the end of the
buffer.
4 years ago
Jesper Alf Dam 09de4b8349 Don't compact the receive buffer unless we've actually run out of space
Previously, we would compact the buffer (moving unread data to the
start of the buffer) as follows:

- after processing a message, if there are zero unread bytes, just reset
  the indices for first and last unread byte to zero
- else, if at least 1/8th of the buffer is used, copy remaining data to the beginning of the buffer

The second option is never actually necessary, as before inserting new data
into the array, we already check if there's enough free space, and
compact the buffer first if necessary. So we've been doing a lot of
copies that weren't actually needed. Let's not do that any more.
4 years ago
Jesper Alf Dam d4747a8c80 Avoid recursion in Alt check on Firefox
The Firefox workaround which checks for missing Alt key events may
synthesise new KeyboardEvents. On these events, checkAlt should not be
recursively triggered. Otherwise, we get "too much recursion" errors
whenever the Alt key is pressed.
4 years ago
Pierre Ossman 5b73c1ca23 Fix trivial lint issues in translation tools
Indentation, missing semicolon, etc.
4 years ago
Pierre Ossman f21fb95bb9 Remove unused import from module loader 4 years ago
Pierre Ossman 7b02f3d8b8 Avoid deprecated called.once from sinon-chai
It's been removed in newer versions and will break eventually.
4 years ago
Samuel Mannehed 03a333fb18 Add missing parentheses for arrow func arg
Our lint tests expect this when an arrow functino has a body with
curly braces.
4 years ago
Samuel Mannehed 54253efaa0 Add documentation for the option showDotCursor
This is not only a property, it's also a parameter to the constructor.
4 years ago
Samuel Mannehed 8b859f4598 Remove the default value of wsProtocols
Using the 'binary' protocol by default is very non-standard.
4 years ago
Shira Maximov 8c5b5f17eb Add support in websocket sub-protocols 4 years ago
Juanjo Diaz 71fa476514 Add version number to UI 4 years ago
Samuel Mannehed 4fd1f19f3b Update link to websock.js API 4 years ago
Lee Yarwood 257aabecb0 launch.sh: Check for a local websockify directory
Previously launch.sh would check both for the existence of a local
websockify file and /websockify/run file.

This initial check should really be for a local websockify directory
as in packaged environments a file could very well be the actual
executable leading to launch.sh incorrectly attempting to use a local
version of websockify.
4 years ago
Pierre Ossman 74161066af Add support for separate key file in launch script 4 years ago
Samuel Mannehed e2d86788ba Revert "Fullscreen from iframe (#1236)" (#1247)
This reverts commit 19cdc15aa314760446866a1bcc2db99a80479683.
4 years ago
Pierre Ossman 4c635f65d3 Remove server pixel format warnings
These are harmless and really only for debugging. So remove them
as they tend to trick people in to thinking something is wrong.
We already print the entire server pixel format earlier anyway in
case we need the details.
4 years ago
Ján Jockusch 1d4ada6815 Fullscreen from iframe (#1236)
* First attempt to make the fullscreen button work inside an iframe.

* Cleaner distinction between document element and document.

* Scoping corrections. Auto-detect correct iframe.

* Added comments to the relevant sections.

* IE issue fixed.

* Same source issue solved. fullscreenToggle now checks if it is permitted to inspect other iframes.
4 years ago
Samuel Mannehed d3ec2aa4d1 noVNC 1.1.0 4 years ago
Samuel Mannehed 10c334303a Update generated JS files for translations 4 years ago
Samuel Mannehed c4987024ef Update Dutch translations
Co-authored-by: Arend Lapere <arend.lapere@gmail.com>
4 years ago
Samuel Mannehed 04d7bef2ae Update Swedish translations 4 years ago
Samuel Mannehed 12565dc4ac Allow autoscale() with zero height or width
Commit 6e7e6f9 stopped the function from running if width or height was
zero, this commit reverts that change. This commit also makes the
resulting canvas 0x0 if autoscale is called with zero. By adding this
special case we can avoid division by zero in the calculations.
4 years ago
Pierre Ossman 46b7d1db95 Fix up errors and warnings in vnc_playback.html
Remove the styling, as it isn't really needed, and fix some minor
things that the w3c validator complains about.
4 years ago
Samuel Mannehed 0045f07965 Remove invalid HTML attributes from textarea 4 years ago
Samuel Mannehed d1fdb877ef Fix invalid input type 'input' 4 years ago
Samuel Mannehed e62e12fbfe Input type image is not allowed to have values 4 years ago
Samuel Mannehed 50183c7caa Add default language 4 years ago
Samuel Mannehed 79ab05192b Add check for bad values for Display.autoscale() 4 years ago
Juanjo Diaz c6c278f9d5 Replace unnecessary function supportsCursorURIs by a constant variable 4 years ago
Juanjo Diaz 37c17ddbf9 Move support check from display to browser 4 years ago
Dmitriy Shweew c755008d15 Add Russian translation (#1211)
By Dmitriy Shweew (shweew)
4 years ago
Juanjo Diaz 075eed5cbb Convert DES into a class 4 years ago
Juanjo Diaz 7b7295fd4e Use default argument for base64 4 years ago
Juanjo Diaz 5964156a6f Remove unnecessary context from eventtarget 4 years ago
Juanjo Diaz 1ff792cf4b Remove unnecessary constructor parameter from Cursor 4 years ago
Juanjo Diaz 3043216b63 Remove intermediate variable from mouse 4 years ago
Pierre Ossman 499b251716 Remove error handling in clientCutText()
It is not necessary as Websock.flush() is guaranteed to succeed and
give us some space. It also remove the call to _fail(), which was
invalid at this place as clientCutText() is not a method on RFB.
4 years ago
Pierre Ossman d20f751441 Throw correct Error object
We've already defined the name Error as a logging function, so we
need to be more explicit when we want to refer to the exception
class.
4 years ago
Pierre Ossman 915901848d Send data one byte at a time in tests
This makes sure we don't have code assuming that everything is
neatly packaged in a single WebSocket message.
4 years ago