WEFT_OS/tests/frame
Marco Allegretti 3186e524ab
feat: grant an app only the capabilities the user approved
Every capability a package declared was granted at launch, so a signed
package received all the permissions it asked for. Blueprint 5.2 rules
that out.

A package now gets only the capabilities the user approved. weft-pack
install --approve approves those the installed package declares, and
weft-pack approve <id> approves those of the installed app later.
Without approval, install lists what still needs it. The approval is
recorded in $XDG_DATA_HOME/weft/approvals/<id>. weft-appd refuses to
launch an app declaring a capability the record does not hold, with
403 and the capabilities named, after refusing unknown or unsupported
ones as before.

An update that declares a new capability needs approval again, and
uninstalling forgets the approval. Private app data is a minimal
execution resource and needs no approval, so Notes and the existing
fixtures are unchanged.

Unit tests cover the approval record, install and approve, an update
adding a capability, uninstall, and appd refusing and then launching.
tests/frame/check_update.py launches a real app declaring notifications:
it is refused until weft-pack approve, then runs.
2026-10-09 19:11:53 +00:00
..
confinement test(frame): make the worker and srcdoc confinement probes observable 2026-10-09 10:16:22 +00:00
check_app_data.py fix(appd): require a usable HOME for ownership decisions and keep records for earlier-layout data 2026-10-09 14:46:21 +00:00
check_confinement.py fix(appd): bind the launched manifest to the signature and record first owners 2026-10-09 14:36:06 +00:00
check_counter.py fix(appd): bind the launched manifest to the signature and record first owners 2026-10-09 14:36:06 +00:00
check_frame.py Merge remote-tracking branch 'origin/fix/confine-app-renderer' into fix/resolve-verified-package 2026-10-09 10:18:47 +00:00
check_input.py test: verify native pointer and keyboard input through weft-compositor 2026-10-09 01:18:53 +00:00
check_notes.py fix(appd): bind the launched manifest to the signature and record first owners 2026-10-09 14:36:06 +00:00
check_update.py feat: grant an app only the capabilities the user approved 2026-10-09 19:11:53 +00:00
input.html test: verify native pointer and keyboard input through weft-compositor 2026-10-09 01:18:53 +00:00
reference.html fix(shells): paint and present Servo frames and report readiness truthfully 2026-10-09 01:02:26 +00:00
session.py test: verify native pointer and keyboard input through weft-compositor 2026-10-09 01:18:53 +00:00