Release persistable URI grants when file references are removed #20
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FileReferenceAccess.takePersistableReadtakes a long-lived read grant when the user picks a document, but nothing everreleases it. Deleting the node, or the whole workflow, leaves the grant behind.
Releasing precisely needs a reconcile pass over every stored workflow to find which references are still live before
calling
releasePersistableUriPermission, which is the same ownership-derived shapeBackgroundResourceManageralreadyuses for platform registrations rather than a second inventory.
Consequences today are bounded: grants are per-document and Android caps how many an app may hold, so this is untidy
rather than harmful. Worth fixing before file references spread beyond
audio.play.