Skip to content

fix: support Firefox QR scanning and camera frames - #4

Merged
goshander merged 5 commits into
mainfrom
fix/firefox-qr-camera
Sep 1, 2026
Merged

goshander merged 5 commits into
mainfrom
fix/firefox-qr-camera

Conversation

@goshander

Copy link
Copy Markdown
Member

Summary

  • add a native-first, lazy local QR worker fallback for Firefox
  • share the bounded reader between QR/OTP file import, camera-frame decoding, and Barcode Reader
  • retain explicit camera permission, file/pixel/payload/result limits, five-minute teardown, and media-track cleanup
  • compile the fallback out of standalone because the DataLens CSP denies workers
  • pin the patched Browserslist transitive version required by the clean release audit

Validation

  • pnpm lint
  • pnpm typecheck
  • 267 Vitest files / 1,484 tests
  • Chromium + Firefox affected-route E2E: 16 passed
  • WebKit affected-route E2E: 7 passed, 1 skipped (canvas.captureStream test fixture is unavailable)
  • production build and 432/432 build budgets
  • standalone: 4 Node + 6 Chromium/Firefox/WebKit tests
  • pnpm audit --prod --audit-level high
  • pnpm install --frozen-lockfile

The normal-build QR worker is route-owned and demand-loaded; it does not enter the initial shell or Workbox precache.

@goshander
goshander merged commit 2861f10 into main Sep 1, 2026
7 checks passed
@goshander
goshander deleted the fix/firefox-qr-camera branch September 1, 2026 22:21
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