AI Focus

permission replay debugger

When third-party scripts, widgets, or browser extensions run unattended inside a session and attempt to access camera, microphone, location, or clipboard APIs, developers rarely have an audit trail showing which script step triggered the check and whether HTTP policies actually blocked it. Correlating permission checks and policy violations into an exportable JSONL timeline makes least-privilege gaps inspectable before shipping.

Hypothesis

Recording navigator.permissions.query(), Permissions-Policy frame blocks, and ReportingObserver violations into a structured JSONL trace makes unattended permission escalation inspectable before shipping.

What confirms it: Restricted sandbox iframes trigger captureable ReportingObserver entries and match Permissions.query() state deltas cleanly inside the OPFS replay log.

What falsifies or bounds it: Silent browser permission denials or asynchronous third-party iframe requests leave gaps where no ReportingObserver record correlates the initiating call stack.

Permission state auditor, real HTTP Permissions-Policy restricted sandbox iframe, and ReportingObserver trace correlator exporting OPFS JSONL replay journals. Open permission replay debugger full screen ↗

What this lab tests

Permission Replay Debugger (GitHub) audits live navigator.permissions.query() states, exercises a strict HTTP Permissions-Policy iframe (/probe/restricted-policy), and correlates ReportingObserver violations into an exportable OPFS JSONL replay journal.

Open questions

  • Which APIs omit ReportingObserver reports when blocked by Permissions-Policy (clipboard-read, geolocation, USB/serial prompts)?
  • Can PerformanceObserver event timing and console instrumentation link permission requests back to specific script URLs?

Iteration log

  • — Built Permissions API scanner, /probe/restricted-policy iframe test, OPFS JSONL journal, and developer code blueprint.
  • — Reordered page around live permission replay and silent-denial gap telemetry, added pure-DOM syntax highlighting, hardened 700px responsive layout, and enforced no-cache headers on static assets.

Primitives tested: Permissions API, Permissions-Policy, OPFS Journal, ReportingObserver.

This is an active lab under /labs/ and stays off the main RSS feed until graduated into a full essay.

More in browser containment & sandbox boundaries

Connected labs

← browser containment & sandbox boundaries · All labs