| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This commit introduces an alternate implementation of the zlib
decompressor based on Pako (https://github.com/nodeca/pako).
|
|
|
|
|
| |
This commit fixes vnc_playback.html and playback.js
so that they work with the current version of noVNC.
|
|
|
| |
Removed old no longer existing vnc.js and added playback.js
|
|\
| |
| | |
Make noVNC compatible with Content Security Policies
|
|/ |
|
|
|
|
| |
* Disable local cursor when the browser doesn't support data uri
|
|\
| |
| | |
slip in PATH for 'npm test' as not everyone has karma
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
So people can follow the 'unit tests' instructions, we need
to make sure PATH includes the karma bin directory otherwise
we see the following:
----
aclouter@stevemcqueen:/usr/src/aten-ikvm/noVNC$ npm test
> noVNC@0.5.0 test /usr/src/aten-ikvm/noVNC
> karma start karma.conf.js
sh: 1: karma: not found
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
----
|
|\ \
| | |
| | | |
Throw exceptions from RFB constructor
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously, if an error was thrown from the Display constructor
in the RFB constructor, we would attempt to use `RFB#updateState`
to handle this. However, `RFB#updateState` attempts to close
the WebSocket connection, which doesn't exist at this point.
In the constructor, it's probably just better to raise an exception
instead (making sure to clean up anything relevant).
Fixes #460
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In e543525faa9cf0d683f41e183e89cd909f3dd229, we switched to creating
a new RFB object on disconnect. This caused issues, however, since
any errors were only displayed briefly before the new "loaded" text
was displayed instead.
Now, we create the RFB object on connect. This essentially removes
the usefulness of the "loaded" state, but prevents the aforementioned
problem.
To facilitate this, the code which does detection of cursor URI support
was moved from this Display constructor (which now calls the new
function) into its own function, `Util.browserSupportsCursorURIs()`.
Fixes #467
|
|\ \ \
| |/ /
|/| | |
Follow symbolic links in launch.sh
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, in launch.sh, `$HERE` was the directory of `$0`.
However, if `$0` was actually a symlink, `$HERE` would be
wherever the symlink was, which could cause issues (for
example, the script wouldn't be able to local `$WEB` or
`$WEBSOCKIFY` properly).
Now, `$HERE` looks at whatever `$0` points at instead.
Closes #447.
|
| | |
|
|\ \
| | |
| | | |
Fix resize in Firefox on Android
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Renamed and reworked fbuClip to clippingDisplay
* Added tests for clippingDisplay
* Use the a noVNC_container which covers the entire page to get the full size
(Fixes #463)
* Added maxWidth and maxHeight to the canvas which can limit the viewport size
* Only show either the canvas or the logo, hide one when the other is shown
* Always center the canvas (previously it was only centered when not clipping)
* Removed iOS specific "position-fixed" fixes and start calling setBarPosition
on every resize
* Removed the noVNC_screen_pad
|
|/ /
| |
| |
| |
| |
| |
| | |
* Added better error handling in ExtendedDesktopSize
* Added helper function to share code with DesktopSize
* Update test.rfb.js to only check for error handling if we were the
ones requesting the resize
|
| |
| |
| |
| | |
variables are set before use.
|
|\ \
| | |
| | | |
Introduce Local Autoscaling
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit adds two new addition scaling options. Both options do
local scaling. The first "Local Scaling", does both upscaling and
downscaling. The second option, "Local Downscaling", only downscales.
This is based on work by @mightypenguin (with an additional bug
reported by @glazik12).
|
|/ /
| |
| |
| |
| |
| |
| | |
This commit updates the UI to allow for different
scaling modes. The "resize" option was changed to
be a dropdown with the following options: "None" (nothing),
"Remote Resizing" (SetDesktopSize).
|
| |
| |
| |
| |
| | |
This commit makes Travis launch sauce connect, instead of
using karma to start Sauce Connect
|
|\ \
| | |
| | | |
Make Util.getPosition be relative to page
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Commit 5108c4635c847de9be0edadf572f7426f351b66a caused a regression
in the case where scrolling is used -- getPosition return position
relative to the viewport, while getEventPosition expected a position
relative to the page.
As per
https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect,
the fix for this is simply to add the `pageXOffset` and `pageYOffset` to
the output of `getBoundingClientRect()`.
Fixes #459.
|
| |
| |
| |
| |
| |
| | |
This commit increases the browserNoActivityTimeout to 100s
(from the default of 10s) in an attempt to alliviate the
timeout issues that we are seeing.
|
| |
| |
| |
| | |
This commit updates the test dependencies to the latest versions.
|
|\ \
| | |
| | | |
Fix disconnect/reconnect issues
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Commit 155d78b39933a396d2555376f4e70f976c30b86d prevented reconnections
from working properly. This fixes that by creating a new RFB object
after disconnecting or failing.
Furthermore, this ensures that a new connection cannot be opened util
we've actually disconnected (either by timer or by receiving a `close`
event).
Closes #452
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
This commit removes the old debian packaging information, which is
out of date. People who wish to create Debain packages for noVNC
are better off using the package information from the actual Debian
or Ubuntu packages.
Closes #453
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Issue #449 pointed out that there were some files that were
missed in 6f5148648bd0e0ffa7ad00474c230f5f1ff4e39f. This
fixes that.
Closes #449
Closes #450
|
| |
| |
| |
| |
| |
| |
| | |
When `utils/launch.sh` clones websockify, it can be cloned
into the incorrect directory, depending on how `utils/launch.sh`
is run. This commit ensures that websockify is always cloned into
`utils/websockify`.
|
| |
| |
| |
| |
| |
| | |
Somehow, `utils/websockify` itself manage to sneak back in to
6f5148648bd0e0ffa7ad00474c230f5f1ff4e39f. This actually removes
it.
|
|\ \
| | |
| | | |
Remove local copies of websockify
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit removes local copies of websockify.
Instead `utils/launch.sh` performs the following logic:
If `utils/websockify` exists, use `utils/websockify/run` (if the latter
does not exist, or is not executable, fail, since this is probably a
mistake).
Otherwise, check to see if websockify is installed somewhere (try
`which websockify`). If it is, use that. Otherwise, clone
websockify from github, and tell git to ignore that directory.
Packaged versions of noVNC should simply list websockify as a
requirement. The debian packaging has been updated to reflect
this.
Closes #433
|
|\ \ \
| | | |
| | | | |
Replace custom getPosition algorithms with getBoundingClientRect.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
Closes #434
|
| |/ / / |
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | | |
The current noVNC release is 0.5.1, but package.json still
says version 0.5.0. This fixes that.
Fixes #441
|
|\ \ \
| | | |
| | | | |
Support ExtendedDesktopSize and SetDesktopSize
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* Added new tests for the setDesktopSize encoding
* Added new tests for the ExtendedDesktopSize encoding
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Added a resize request (setDesktopSize) triggered when connecting and by
changes to the browser window's size.
* Hid the view-drag-hand when the display area is the same or smaller than the
remote session size.
* Added a setting for the automatic resize feature.
* Updated vnc.html and vnc_auto.html to reflect the changes to the UI.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* Support sending the setDesktopSize encoding (client -> server)
* Support recieving the ExtendedDesktopSize encoding (server <- client)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Split viewportChange into two functions, one for changing size and the other for changing position.
* Modified viewport code to be capable of changing to a bigger size in the context of a
client-initiated resize.
* Made clearer distinctions between when viewport-clipping or not.
* Added public function for telling when viewport-clipping.
* Updated tests that were using viewportChange.
|
|\ \ \ \
| |/ / /
|/| | | |
keysym.js needs inclusion in debian's install list
|
|/ / / |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Unregister event listeners from websock.
|
| | |/
| |/|
| | |
| | |
| | | |
Prevents possible memory and event notification leaks when tearing down
connection and reestablishing a new one.
|
| |/
|/| |
|