Feat/issue 6 provider queue origin isolation - #9
Merged
amankoli09 merged 6 commits intoAug 13, 2026
Merged
Conversation
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.
|
@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. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #6