`initiate_file_copy` now advertises **both** `FileGroupDescriptorW` and
`Preferred DropEffect` (`CFSTR_PREFERREDDROPEFFECT`) in the FormatList,
and `handle_format_data_request` short-circuits a request for the latter
with `DROPEFFECT_COPY` (0x00000001 LE).
### Summary
Fixed a Firefox-specific issue where right-clicking inside the remote
desktop canvas could leave the server-side right mouse button state
stuck as pressed.
### Changes
**Input cleanup**
- `onmouseleave` now releases all active inputs through `mouseOut()`
- Added `focusLost()` handling for:
- window `blur`
- document `visibilitychange`
- This ensures inputs are released when the user leaves the canvas,
switches tabs, or the browser loses focus
**Mouse state reconciliation**
Updated `mouseIn()` to compare e`vent.buttons` against tracked
server-side button state.
If the browser no longer reports a button as held, the service releases
it server-side.
This covers:
1. left button
2. right button
3. middle button
Releases are batched into a single `applyInputs` call.
**Listener cleanup**
- Hoisted `captureKeys` so it can be properly removed
- `onDestroy` now removes:
- keydown
- keyup
- blur
- visibilitychange
**Tests**
Added `mouseInput.test.ts` covering:
- `mouseOut`
- `focusLost`
- `mouseIn` reconciliation
- missing-session guards
- release batching
- no-op behavior when no release is required
Mirror the `check features` pattern: expose `cargo xtask fuzz list`
(with `--format github-matrix`) that enumerates fuzz targets by scanning
`fuzz/fuzz_targets/*.rs`, and have the fuzz workflow build its matrix
from that output. New targets dropped into the directory are picked up
by CI automatically, with no workflow edits required.
Adds .github/skills/release-prep/SKILL.md, a project-local skill that
guides the GitHub Copilot agent through the human-in-the-loop pass on
release-plz "chore(release): prepare for publishing" PRs:
- public-dependency propagation rule (public marker semantics, with the
asymmetry that patch bumps don't propagate because Cargo.toml
requirements are major.minor only)
- per-crate changelog rewrite policy for cross-crate commits
- deduplication of commits that collapse into a single net change within
the release window (reverts, iterations on unreleased features,
mechanical follow-ups)
- scope-of-edits guard (CHANGELOG.md, Cargo.toml and Cargo.lock only on
the PR branch; source/README/MSRV changes go to main and regenerate)
- procedure anchored on `git diff origin/main` against the checked-out
branch, with the correct lockfile flow (regenerate without --locked,
commit, then `cargo xtask check locks -v`)
Some RDP servers (notably GNOME Remote Desktop / grd) send a
ServerDeactivateAll PDU before ServerDemandActive during the initial
Capabilities Exchange phase. This is valid per MS-RDPBCGR §1.3.1.3
(Deactivation-Reactivation Sequence).
Previously this caused a hard error:
"unexpected Share Control Pdu (expected ServerDemandActive)"
Now the connector skips the DeactivateAll and waits for the next PDU.
The connector types are unlikely to benefit from random value generation
for fuzzing purposes; a more targeted approach would be preferable if
the connector is fuzzed in the future. We’ll reevaluate later.
Move context, location, and source into a heap-allocated ErrorMeta
struct so that Error<Kind> holds only kind on the stack. This eliminates
the size cascade that caused ConnectorError to exceed clippy's 128-byte
threshold (it was raised to 152 to accommodate the Location field).
Error construction is already #[cold], so the single Box allocation per
error is acceptable.
Remove GccError, McsError, RdpError, SecurityDataError,
ClusterDataError, NetworkDataError, CoreDataError, InputEventError,
ClientInfoError, CapabilitySetsError, SessionError, and ChannelError.
All encode/decode functions had already been migrated to use
DecodeResult/EncodeResult from ironrdp-core, leaving these error types
as dead code.
Adds automatic caller location capture to `ironrdp-error::Error<Kind>` using `#[track_caller]` + `core::panic::Location::caller()`, and surfaces that location in the `Display` output while keeping `Debug` stable for cross-platform snapshots.
Adds RDPDR virtual printer redirection for web sessions, enabling the web client to announce a redirected printer, receive server print jobs over RDPDR, and deliver completed PostScript jobs to a browser callback.
Adds a new CLI flag to prevent remote session locking by injecting fake
mouse movement events when the connection is idle, similarly to
FreeRDP's equivalent option.
Replace the per-depth supportedColorDepths bitmask with an unconditional
BPP32 | BPP24 | BPP16 | BPP15, following FreeRDP's approach of treating
the field as a capability set rather than a preferred-depth indicator
(libfreerdp/core/settings.c).
The preferred depth is expressed via the two dedicated fields:
- highColorDepth: now derived from the configured depth (15 →
Rgb555Bpp16 / 0x0F, 16 → Rgb565Bpp16 / 0x10, else Bpp24 / 0x18),
matching FreeRDP's ColorDepthToHighColor()
- WANT_32_BPP_SESSION earlyCapabilityFlag: unchanged, set only for 32bpp
Previously, a client configured for 24bpp advertised BPP24 only. Modern
Windows hosts (Server 2012+) dropped 24bpp RDP support and reset the
connection instead of negotiating down, leaving no usable depth. With
all four bits always advertised the server can freely negotiate to the
highest depth it supports.