mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
The browser-facing WebSocket accepted requests from any local page, so a page could launch or terminate apps and inject messages into any session. Every connection now completes the upgrade and sends HELLO within five seconds. The system role authenticates with a token appd writes to $XDG_RUNTIME_DIR/weft/appd.systoken (mode 0600) and may manage sessions, but never sees or sends application messages. The app role authenticates with a per-session bridge token passed to weft-app-shell in WEFT_BRIDGE_TOKEN and exchanges APP_MESSAGE envelopes with its own session only; it is disconnected when that session stops. weft-servo-shell hands the system endpoint only to the system UI document and denies navigation away from it. weft-app-shell installs the bridge only in top-level documents inside the application's UI directory and denies navigation outside it. The launcher renders package names as text. tests/frame/check_counter.py drives the Counter demo end to end through the compositor, appd, the Wasm runtime and the app shell. |
||
|---|---|---|
| .. | ||
| upstream | ||
| architecture.md | ||
| building.md | ||
| security.md | ||