Files
gns3-server/gns3server/static/web-ui/assets/xpra-html5
tikD1337andClaude Opus 5.5 406086c177 fix(web-ui): ship the bundled consoles' lib/ files (VNC and xpra)
The ".gitignore" rules "lib" and "lib64" (from the Python template, meant
for a virtualenv at the repository root) match a directory with that name
at any depth. They kept two folders of the bundled web UI out of git:

- assets/vnc-console/novnc/vendor/pako/lib/ (12 files, zlib for noVNC)
- assets/xpra-html5/js/lib/ (20 files)

Anything built from a git checkout (GitHub archives, Docker images) ships
without them. The server answers a missing asset with the web UI page, so
noVNC's module graph fails to load (a module served as text/html) and the
VNC console stays on "Initializing VNC Console..."; the xpra console loses
its scripts the same way.

Anchor both rules to the repository root and add the 32 files, taken from
gns3-web-ui v3.1.0a7 (the bundled version); every blob is identical to the
one in that tag. A test walks the VNC console's module imports and the xpra
pages' scripts and fails on any file that is not in the package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 12:09:50 +01:00
..
2026-04-21 13:16:36 +08:00
2026-04-21 13:16:36 +08:00
2026-04-21 13:16:36 +08:00
2026-04-21 13:16:36 +08:00
2026-04-21 13:16:36 +08:00
2026-04-21 13:16:36 +08:00
2026-04-21 13:16:36 +08:00
2026-04-21 13:16:36 +08:00
2026-04-21 13:16:36 +08:00
2026-04-21 13:16:36 +08:00
2026-04-21 13:16:36 +08:00
2026-04-21 13:16:36 +08:00

xpra-html5

HTML5 client for Xpra remote desktop server.

Version

This is based on xpra-html5 version 19 from the official Xpra project.

License

This project is licensed under the Mozilla Public License Version 2.0 (MPL-2.0).

See the LICENSE file for the full license text.

Copyright (c) 2013 Antoine Martin antoine@xpra.org Copyright (c) 2014 Joshua Higgins josh@kxes.net

Source

This is a modified version of the xpra-html5 client from the official Xpra project:

Modifications from v19

This version has been modified for integration with GNS3 Web UI:

Client.js

No modifications - using original v19 code.

Protocol.js

  • Line 191: Added documentation comment clarifying that the 'binary' subprotocol is required by xpra protocol
  • Code remains unchanged from v19

index.html

  • Lines 927-933: Simplified connection close callback
    • Before: Redirected to connect.html with extensive parameter passing
    • After: Only logs the close reason, no redirection
    • Impact: Simplified error handling for embedded GNS3 Web UI usage
  • Removed 82 lines of redirection logic

TypeScript Service (xpra-console.service.ts)

  • buildXpraConsolePageUrl(): Improved WebSocket URL parsing
    • Before: Manual parsing and concatenation of path and token
    • After: Using URL API to correctly extract pathname and search
    • Impact: More reliable handling of query parameters and tokens

Summary of Changes

  • Total files modified: 3
  • Lines added: 11
  • Lines removed: 95
  • Net change: -84 lines (simplified)

All modifications maintain compliance with MPL-2.0 license requirements.

License Compliance

This project complies with the MPL-2.0 license requirements:

  • All source code modifications are made available under MPL-2.0
  • Original copyright notices are preserved
  • A copy of the MPL-2.0 license is included
  • Modifications are clearly documented

For more information about MPL-2.0, see: https://www.mozilla.org/en-US/MPL/2.0/FAQ/