mirror of
https://github.com/9prodhi/camoufox-rs.git
synced 2026-11-28 16:00:37 +00:00
Adds docs/ guides by type and makes README the entry point:
- tutorial: docs/tutorial-getting-started.md
- how-to: CLI daemon, iframes and shadow DOM, downloads and dialogs,
library usage
- reference: docs/reference-cli.md (all 33 subcommands, built from the
release binary's --help, with JSON samples from real runs and the
{"ok","data"} envelope) and docs/reference-library-api.md
- explanation: docs/explanation-architecture.md
Repairs stale claims in README.md, docs/UNDERSTANDING.md and
docs/PROTOCOL.md (pipe/fd setup, concurrency model, unsafe scope, frame
buffer cap, readiness sentinels, navigate/evaluate return types, trusted
vs synthetic input, downloads --wait semantics, socket security on
Linux vs other platforms). Adds TODOS.md with verified follow-ups.
Written by agy (gemini-3.8-flash-high) via the gstack document-generate
skill; audited twice against the source by Fable 5.2 (41 semantic
findings fixed) and by a docs-vs-code name check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YQU84X3UzxGaxqrADxbkoE
2.6 KiB
2.6 KiB
Project Roadmap and Verified Follow-Ups
This document tracks known architectural limitations and verified future work items for camoufox-rs.
1. Closed Shadow Roots
- Status: Documented limitation.
- Context: In standard DOM, shadow roots created with
{ mode: 'closed' }do not exposeelement.shadowRootto JavaScript outside the component. In the isolated world, absent shadow roots and closed shadow roots cannot reliably be distinguished without internal browser engine hooks. - Current Behavior: The
>>>combinator returns an error:element at segment N has no open shadow root (absent or closed; cannot pierce)and wait retries. - Follow-up: Investigate if Juggler or Camoufox internal C++ bindings can expose closed shadow roots for automation inspection.
2. Rotated and Skewed Iframe Coordinate Transforms
- Status: Documented limitation.
- Context: Coordinate transformation for scoped pointer events (
click,hover) currently accounts for translation, padding, border width, and axis-aligned scaling factors (scaleX,scaleY). - Current Behavior: If an iframe or its ancestors have non-axis-aligned CSS transformations (such as
transform: rotate(...)ortransform: skew(...)), calculated click coordinates will not match the visual element position. - Follow-up: Implement full 2D affine transformation matrix decomposition for nested frame coordinate calculation.
3. Protocol-Version Handshake Between Client and Daemon
- Status: Quality-of-life improvement.
- Context: When a user upgrades
camoufox-rsclient binaries without restarting an active background daemon (camoufox serve), new IPC fields (such asframes: Vec<String>) may be ignored or rejected by the older daemon process. - Current Behavior: Users must manually run
camoufox shutdownfollowed bycamoufox serveafter upgrading. - Follow-up: Add a protocol handshake during initial socket connection (
pingor hello frame) that negotiates the IPC protocol version and warns the user if the client and daemon versions diverge.
4. Session History Navigation on Browser.newPage
- Status: Upstream Juggler limitation.
- Context:
Page.goBackandPage.goForwardprotocol methods are wired tocamoufox backandcamoufox forward. However, in pages initialized viaBrowser.newPage, Camoufox/Firefox does not populate standard session history (history.length === 0). - Current Behavior: The commands report that no session history entry exists.
- Follow-up: Investigate Juggler session history initialization flags or track an in-client navigation stack as a fallback.