Skip to content

Permissions tab: declared, delegated, requested, stored (plan 03) - #59

Merged
woutervanwijk merged 11 commits into
mainfrom
claude/plan-03-permissions
Nov 18, 2026
Merged

woutervanwijk merged 11 commits into
mainfrom
claude/plan-03-permissions

Conversation

@woutervanwijk

Copy link
Copy Markdown
Owner

Plan 03 of the explorer audit (docs/superpowers/plans/2026-11-15-03-permissions-and-storage.md).

What's new

New Permissions tab (Trust group, after Security):

  • Declared: Permissions-Policy / Feature-Policy headers parsed; malformed members listed as invalid.
  • Delegated: features granted to embedded frames via allow=, third-party frames flagged (frames capped at 200, total shown).
  • Requested: camera, microphone, location etc. requests the page made. The app always denies them and records them for the page that asked (tied to the load, so a request crossing a navigation is dropped).
  • Stored: IndexedDB databases, Cache Storage, service workers, storage quota, web storage counts (names and sizes only, never values).
  • Notes when the browser doesn't offer camera/microphone/location to pages at all (macOS WKWebView), so "No requests." isn't misleading.
  • Export: analysis/permissions.json.

Testing

  • flutter analyze --no-pub clean; flutter test 1497 passed, 1 skipped.
  • Real macOS app (local test page + github.com): storage, delegations, frame count and declared policy correct; storage never stuck pending. Request recording could not be exercised on macOS (the web view exposes no mediaDevices); it is covered by unit tests.

🤖 Generated with Claude Code

woutervanwijk and others added 11 commits November 17, 2026 18:39
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, service workers)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…seconds at 10

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and storage text

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… to pages

The collector reports navigator.mediaDevices.getUserMedia and
navigator.geolocation availability; the Permissions tab notes when a page
cannot ask for them instead of just saying there were no requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A later poll without the capabilities section wiped mediaDevices and
geolocation, and a capability-only change was dropped as a no-op.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@woutervanwijk
woutervanwijk merged commit f790774 into main Nov 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant