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-Policyframe blocks, andReportingObserverviolations 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.
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
ReportingObserverreports when blocked byPermissions-Policy(clipboard-read,geolocation, USB/serial prompts)? - Can
PerformanceObserverevent timing and console instrumentation link permission requests back to specific script URLs?
Iteration log
- — Built Permissions API scanner,
/probe/restricted-policyiframe 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.