MetaMask / MetaMask/metamask-extension

Reject connection request if I close the tab

Open
#9,080 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type-enhancement
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

What problem are you trying to solve?
EIP 1102 account connection requests remain as notifications even if I close the tab. It takes a long time to load metamask to dismiss the notification, even if I have left the page.

Describe the solution you'd like
Metamask opens a channel with each page so if the channel closes you can auto-reject the connection request.

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 the EIP 1102 connection-request handling and the channel opened between MetaMask and each page. The work is complete when closing the tab causes the pending connection request to be auto-rejected and its notification no longer remains.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authorization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.