Skip to content

Feat/issue 6 provider queue origin isolation - #9

Merged
amankoli09 merged 6 commits into
LynxXProtocol:mainfrom
Babigdk:feat/issue-6-provider-queue-origin-isolation
Aug 13, 2026
Merged

Feat/issue 6 provider queue origin isolation#9
amankoli09 merged 6 commits into
LynxXProtocol:mainfrom
Babigdk:feat/issue-6-provider-queue-origin-isolation

Conversation

@Babigdk

@Babigdk Babigdk commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

closes #6

Add the Manifest V3 extension runtime to lynxx-wallet-sdk backing
window.lynxx for concurrent dApps:

- ProviderQueue: thread-safe FIFO queue that keeps exactly one signing
  modal active at a time; popup dismissal rejects the active request with
  USER_REJECTED and immediately advances to the next in line; dispose()
  settles every in-flight task so long-lived workers leak nothing.
- LynxxBackground: service worker that validates sender.origin /
  sender.frameId on every IPC message, rejects untrusted iframes and
  opaque origins with ORIGIN_MISMATCH, and keys queue/popup state by
  internal ids so identical client ids from different tabs never collide.
- OriginPolicy: strict CORS-style sender verification (top-frame only,
  optional origin allowlist, extension-id + extension-URL check for popup
  messages) that still accepts windowed popups.
- Provider bridge + content script: window.lynxx with postMessage request/
  response correlation and a top-frame-only content script.
- Docs: README section and CHANGELOG entry.
- Tests: 39 unit tests covering FIFO ordering, single-active-modal
  guarantee, popup-close queue advance, iframe rejection, cross-tab id
  isolation, dispose cleanup, and a 1,000-request leak check.
@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

@Babigdk is attempting to deploy a commit to the aman koli's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lynxx-extension Error Error Aug 13, 2026 1:39pm

@amankoli09
amankoli09 merged commit 4573456 into LynxXProtocol:main Aug 13, 2026
3 of 4 checks 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.

ISSUE #6: Concurrent Web3 Provider Request Queue & Origin-Isolated Message Passing

2 participants