mirror of
https://github.com/lexmount/moli.git
synced 2026-10-17 16:01:22 +00:00
Expose secure Document.modelContext APIs with document-owned registrations, callback realm and input validation, task-based result delivery, and independent caller cancellation and target completion. Preserve cancellation reasons and emit lifecycle events only for live owners. Register native declarative forms in light and shadow trees through indexed mutation candidates. Track schema changes to valid forms even before a registration succeeds, including controls associated through a form attribute. Use changed containers only for ancestor and form-owner checks; inspect added and removed subtrees for discovery. Retire registrations at actual removal and owner transitions while preserving submit handling and captured pending responses. Apply validated fill intents to current options and checkable values in control event order. Compute tools delegation from committed security origins, ancestor header allowlists, container declarations, redirects, and combined sandbox policies. Carry invocation identity, original origin, and resolved target through form navigation; accept same-origin JSON-LD results and reject cross-origin commits. Connect typed renderer observations to CDP discovery, invocation, cancellation, and Runtime result projection. Include renderer and protocol regression coverage for document lifetime, reentrancy, permissions, dynamic controls, and cancellation. Validation on this commit tree: cargo fmt --all; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo nextest run --no-fail-fast. Summary [ 100.619s] 19320 tests run: 19320 passed, 16 skipped