interledger / interledger/web-monetization-extension
Handle extension context invalidation
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 152
- Forks
- 12
- Avg merge
- 14h 16m
- Merged PRs (30d)
- 13
Description
When extension is updated/disabled/enabled, the content scripts (including polyfill) keep connections with old background script, which leads to "Error: Extension context invalidated" in browser console.
We need to detect the disconnect/invalidation, and tear-down/reset content scripts correctly.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the content scripts and polyfill connect to the background script, then reproduce the problem by updating, disabling, and re-enabling the extension. Identify where disconnect or context invalidation is surfaced and confirm that scripts tear down or reset without leaving old connections or console errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100