Originally created by: kristofferR
prepare-download, share-download, copy-image, choose-download) to typed commands granted per origin.capabilities/default.json (github.com) grants core:event:allow-emit to facebook.com, messenger.com, fbcdn.net and fbsbx.com. Any script running on those origins, not only Chatpane's injection, can emit any chatpane:* event the Rust side listens to with listen_any (chatpane:notify, chatpane:prepare-download, chatpane:share-download, chatpane:copy-image, chatpane:context-menu, scheduled send, and more in lib.rs (github.com)). fbsbx.com is Facebook's user-content host.
CLAUDE.md also says the remote page "cannot call Chatpane's own commands". That is not true: Tauri allows it when a command is declared in tauri_build::AppManifest::commands and granted per origin. fMess does this (build.rs:24-51, capabilities/messenger-web.json (github.com)).
core:event:allow-emit.prepare-download, share-download, copy-image, choose-download). This gives per-command allow-lists and serde-validated arguments instead of hand-parsed event payloads.chatpane:* event is rejected.Part of [#349].