Skip to main content

HANDOFF_PATH

Constant HANDOFF_PATH 

Source
pub const HANDOFF_PATH: &str = "/.ledgeline/open";
Expand description

The same-origin stand-in for a link a sandboxed frame may not follow itself: <origin>/.ledgeline/open?url=<the link, percent-encoded>.

WebKit refuses every custom-protocol load (mailto:) from a frame sandboxed without allow-scripts, and runs no script there, not even the parent’s listeners. So the invoicer’s SPA rewrites such a link in its note and invoice frames to this path (invoicer/web/src/lib/frameLinks.ts carries the same string), a same-origin navigation WebKit allows. The desktop window’s navigation handler recognises it (gui::handoff_target), hands the target to the app’s own allowlist and keeps the frame where it is. A plain browser (--server) has no such handler: the server answers the path with 204 No Content, so the frame stays put and nothing opens.

Under a dotted prefix no books folder is served from by MBR’s router.