Repository navigation
Hindsight 1.0 (M5, PRD §18.6): fewer permissions, first-run onboarding,
per-site Replay access, and store listings for Chrome, Firefox and Edge.
Security
- Replay bundle stored XSS fixed. Captured bodies were inlined as a
JS literal, so a response containing</script>ran in the viewer.
Data now sits in an inertapplication/jsonblock (< > &U+2028
U+2029 escaped) under a per-bundle nonce CSP (default-src 'none')
(PRD §11, §19.1). - Forged window captures dropped. Once the private bridge port is
live,window.postMessagecaptures are accepted only for a 2 s
switch-over grace, so page scripts cannot inject events (PRD §11.1). - Smaller permission set.
scriptingremoved from install-time
permissions;downloads,tabsandwebNavigationremoved from
optional permissions. Nothing called them. Install-time:storage,
unlimitedStorage,activeTab,sidePanel; optional:
notifications(PRD §9.2, §12). - Replay asks for one site at a time. The first Replay against an
origin requests exactly<origin>/*inside the click, explains why,
and on denial says nothing was sent. Grants are listed and revocable
in Settings → Privacy → Replay access (PRD §6.3.5).
Fixed
- Events are stamped at capture time. The 250 ms bridge batch gave
every event in a flush the same receipt time, so clicks sorted after
the requests they caused. The page world stamps the time; the SW
trusts it within [now−60 s, now+1 s]. The side panel list is sorted by
the time each row shows (a request's start), not by arrival
(PRD §6.1.2, §13.2). - Cascades are keyed by origin + failure class (auth 401/403, other
4xx, 5xx, network), and every member is linked, so 3× 401 shows as one
cascade of three instead of a loose row plus "cascade — 2". Relative
request URLs (fetch('/api/x')) resolve against the page first, so
they cluster too (PRD §6.2.3). npm ciworks on npm 10 and 11. Lockfile regenerated and in sync
with 1.0.0;enginesis>=20.10 <25; CI tests Node 20 and 22.- Replay viewer narrative renders headings, lists, bold and
codeinstead of raw Markdown (built withtextContent, never
innerHTML). - Page loads are recorded. The
webNavigationlistener could never
run (the permission was never granted), so full page loads were
missing from every timeline. The page-world interceptor now emits one
navigationevent per document load; SPA route changes are unchanged
(PRD §6.1.1). - Recording events carry the page URL again (they came from the
removed navigation listener). - Replay of relative URLs (
fetch('/api/x')) is resolved against the
page URL instead of the extension origin. - Form inputs are named by their label. Rows read
Email = …and
Country = Portugalinstead of<input> = …or a<select>'s glued
option text: aria-label → aria-labelledby →<label>→ placeholder →
name → title. - No "Refused to set unsafe header" errors. When a page calls
setRequestHeaderwith a header the browser forbids (Cookie,
Host,Sec-*, …), Hindsight no longer records or forwards it; the
browser never sent those headers anyway.
Added
- Keyboard shortcuts. ⌘⇧B / Ctrl+Shift+B "Capture last moment"
opens the side panel and downloads the replay file for the current
tab, same as the popup button; "Toggle recording" is bindable in
chrome://extensions/shortcuts. The popup shows the live shortcuts
(PRD §9.2). - New popup. Host chip and recording pill, primary "Capture last
moment", "Open side panel" with your shortcut, recent failures with
status chips (cascades collapsed), and a "N fields masked — data stays
on this device" footer. EN + TR (PRD §7). - Redesigned side panel. Shared design tokens (dark default, light
via system or the header toggle), SVG icons instead of emoji, GraphQL
operation labels, copy as runnablefetch(), pin to the current tab,
a guard against copying a masked token, and an in-popup confirm in
place ofwindow.confirm. - Accessibility (WCAG 2.1 AA). The event list is a keyboard listbox
(↑/↓/Home/End, Enter, Esc,/to search), visible focus everywhere,
labels match visible text, every colour pair ≥ 4.5:1 in both themes
(unit-tested), andnpm run test:a11yruns axe-core on the built
extension in CI. - Replay viewer accessibility and header. Keyboard-operable rows and
cascade banners,aria-pressedfilter chips, reduced-motion support,
heading order, and a header with capture date and span, masked-field
count, version and "Created locally · nothing was uploaded". The
popup's bundle now carries the "N earlier events omitted" note too
(PRD §4.1). - First-run welcome page (PRD §7.1), opened once on install: what is
recorded, three steps, your live keyboard shortcuts, four privacy
facts. Local only, EN/TR, light/dark. Never reopens on update or
restart. - Popup hint pointing at the side panel until it is opened once.
- Resizable detail boxes in the side panel: drag the bottom edge of
headers, bodies or stack traces; the height is remembered per section
(double-click the corner to reset). - Store listings for Chrome Web Store, Firefox Add-ons and Edge
Add-ons (EN + TR) instore/, a three-store runbook
(docs/CWS-LISTING.md), an M5 evidence checklist
(docs/M5-CHECKLIST.md) and a 60-second demo script. scripts/store-shots.mjs(dev-only) renders every store image, on the same navy stage as the StorageNinja and Data Helper listings, from
the real built extension: five 1280×800 screenshots, the 1400×560
marquee, the 440×280 tile and the Edge 300×300 logo, per language.
Changed
-
Replay viewer opens on the API filter instead of All, so the
requests that matter come first. -
Store and privacy copy now match shipped behaviour exactly: error
screenshots are attached on tabs where you opened Hindsight
(activeTab), not on every tab. -
Promo tiles are flat PNGs; the gradient SVG mockups are gone.