interledger / interledger/web-monetization-extension

Handle extension context invalidation

Open
#418 4 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.