summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* WIP: Switch to Pako for zlibfeature/new-zlib-implSolly Ross2015-05-196-11/+2430
| | | | | This commit introduces an alternate implementation of the zlib decompressor based on Pako (https://github.com/nodeca/pako).
* Fix up vnc_playback.html and playback.jsSolly Ross2015-05-152-10/+26
| | | | | This commit fixes vnc_playback.html and playback.js so that they work with the current version of noVNC.
* Update LICENSE.txtSamuel2015-05-051-1/+1
| | | Removed old no longer existing vnc.js and added playback.js
* Merge pull request #483 from fabian-z/masterSamuel2015-05-043-2/+3
|\ | | | | Make noVNC compatible with Content Security Policies
| * Move #keyboardinput declarations to base.css/ui.jsFabian Zaremba2015-05-043-2/+3
|/
* Re-fixes #428 which was broken by commit 58ded70samhed2015-04-292-1/+2
| | | | * Disable local cursor when the browser doesn't support data uri
* Merge pull request #415 from jimdigriz/fixesSolly2015-04-071-1/+1
|\ | | | | slip in PATH for 'npm test' as not everyone has karma
| * slip in PATH for 'npm test' as not everyone has karmaAlexander Clouter2014-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ----
* | Merge pull request #474 from kanaka/bug/throw-error-from-constructorSolly2015-03-277-102/+115
|\ \ | | | | | | Throw exceptions from RFB constructor
| * | Throw exceptions from RFB constructorbug/throw-error-from-constructorSolly Ross2015-03-263-48/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Create RFB object on connectbug/auth-errors-not-displayedSolly Ross2015-03-265-55/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge pull request #475 from kanaka/bug/follow-symlinks-for-hereSolly2015-03-271-1/+2
|\ \ \ | |/ / |/| | Follow symbolic links in launch.sh
| * | Follow symbolic links in launch.shbug/follow-symlinks-for-hereSolly Ross2015-03-261-1/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | 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.
* | Make getCanvasLimit more efficient by only calling getPosition once.samhed2015-03-111-2/+3
| |
* | Merge pull request #464 from kanaka/bug/firefoxresizeSolly2015-03-107-150/+256
|\ \ | | | | | | Fix resize in Firefox on Android
| * | * Don't check specific html elements from the display code (Fixes #446)samhed2015-03-095-111/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * | * Change name of ext_desktop_size to the proper ExtendedDesktopSizesamhed2015-03-052-39/+62
|/ / | | | | | | | | | | | | * 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
* | Make the touch-keyboard code more robust through verifying that global ↵samhed2015-03-051-1/+8
| | | | | | | | variables are set before use.
* | Merge pull request #451 from kanaka/feature/scalingSamuel2015-03-055-41/+180
|\ \ | | | | | | Introduce Local Autoscaling
| * | Support local scalingSolly Ross2015-03-035-39/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
| * | Update UI to allow for different scaling modesSolly Ross2015-02-272-3/+9
|/ / | | | | | | | | | | | | 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).
* | Launch Sauce Connect through TravisSolly Ross2015-02-272-1/+3
| | | | | | | | | | This commit makes Travis launch sauce connect, instead of using karma to start Sauce Connect
* | Merge pull request #461 from kanaka/bug/459-incorrect-position-with-scrollbarsSolly2015-02-271-1/+1
|\ \ | | | | | | Make Util.getPosition be relative to page
| * | Make Util.getPosition be relative to pageSolly Ross2015-02-271-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Increase Karma-Sauce Connector TimeoutSolly Ross2015-02-271-1/+4
| | | | | | | | | | | | This commit increases the browserNoActivityTimeout to 100s (from the default of 10s) in an attempt to alliviate the timeout issues that we are seeing.
* | Update dependencies to the latest versionstests/update-depsSolly Ross2015-02-271-11/+11
| | | | | | | | This commit updates the test dependencies to the latest versions.
* | Merge pull request #458 from kanaka/bug/disconnectSamuel2015-02-262-10/+26
|\ \ | | | | | | Fix disconnect/reconnect issues
| * | Fix disconnect/reconnect issuesSolly Ross2015-02-252-10/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Remove 'debian' directorySolly Ross2015-02-208-155/+1
|/ / | | | | | | | | | | | | | | | | 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
* | Remove last bits of websockify cruftSolly Ross2015-02-173-66/+4
| | | | | | | | | | | | | | | | | | Issue #449 pointed out that there were some files that were missed in 6f5148648bd0e0ffa7ad00474c230f5f1ff4e39f. This fixes that. Closes #449 Closes #450
* | Make sure websockify is cloned to the correct dirSolly Ross2015-02-172-2/+2
| | | | | | | | | | | | | | 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`.
* | Actually remove the "websockify" fileSolly Ross2015-02-171-471/+0
| | | | | | | | | | | | Somehow, `utils/websockify` itself manage to sneak back in to 6f5148648bd0e0ffa7ad00474c230f5f1ff4e39f. This actually removes it.
* | Merge pull request #448 from kanaka/websockify-as-submoduleSolly2015-02-178-1299/+35
|\ \ | | | | | | Remove local copies of websockify
| * | Remove local copies of websockifySolly Ross2015-02-168-1299/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge pull request #432 from nbibler/getPositionUpdateSolly2015-02-171-65/+4
|\ \ \ | | | | | | | | Replace custom getPosition algorithms with getBoundingClientRect.
| * | | Replace custom getPosition algorithms with getBoundingClientRect.Nathaniel Bibler2015-01-261-65/+4
| | | |
* | | | Merge branch 'bug/fix-input-html'Solly Ross2015-02-171-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | Closes #434
| * | | | Update tests/input.html to include keysym.js instead of keysymdef.jsJesper Dam (jalfd)2015-02-171-0/+1
| |/ / /
* | | | Update package.json to specify version 0.5.1Solly Ross2015-02-161-1/+1
| |/ / |/| | | | | | | | | | | | | | | | | The current noVNC release is 0.5.1, but package.json still says version 0.5.0. This fixes that. Fixes #441
* | | Merge pull request #444 from samhed/extdesktopSolly2015-02-108-82/+410
|\ \ \ | | | | | | | | Support ExtendedDesktopSize and SetDesktopSize
| * | | Support automatic resize [Part 4/4]: unit testssamhed2015-02-101-0/+158
| | | | | | | | | | | | | | | | | | | | * Added new tests for the setDesktopSize encoding * Added new tests for the ExtendedDesktopSize encoding
| * | | Support automatic resize [Part 3/4]: ui.jssamhed2015-02-103-13/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 automatic resize [Part 2/4]: rfb.jssamhed2015-02-061-4/+75
| | | | | | | | | | | | | | | | | | | | * Support sending the setDesktopSize encoding (client -> server) * Support recieving the ExtendedDesktopSize encoding (server <- client)
| * | | Support automatic resize [Part 1/4]: display.jssamhed2015-02-064-65/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | Merge pull request #443 from fzylogic/masterSamuel2015-02-071-0/+1
|\ \ \ \ | |/ / / |/| | | keysym.js needs inclusion in debian's install list
| * | | keysym.js needs inclusion in debian's install listJeremy Hanmer2015-02-061-0/+1
|/ / /
* | | Use our own event registration function for keyboardinputReset.samhed2015-02-061-1/+2
| | |
* | | Merge pull request #427 from jswanner/register-listenersSolly2015-02-043-0/+34
|\ \ \ | | | | | | | | Unregister event listeners from websock.
| * | | Unregister event listeners from websock.Jacob Swanner2015-01-083-0/+34
| | |/ | |/| | | | | | | | | | Prevents possible memory and event notification leaks when tearing down connection and reestablishing a new one.
* | | Fixes issue #435 - added missing comma in keysym.jssamhed2015-02-031-1/+1
| |/ |/|