MetaMask / MetaMask/metamask-extension

[consider] Use notification to approve prompt to reduce popup annoyance

Open
#7,356 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Since `ethereum.enable()` shipped, many dapps have just slapped that line at the top of their code, which makes MetaMask pop up on page load for some pages. This is a bit of user harassment, and perhaps we can provide tools to help users protect themselves from badly-behaving sites.

One idea that came up from a conversation with `Sylvain Laurent` on ConsenSys slack is the possibility of using the web [notification api](https://developer.mozilla.org/en-US/docs/Web/API/notification) to indicate to a user that the site would like to get their input, before initiating the full popup.

The buttons could be

- `Allow` `Ignore` and `Block forever`.

This makes it easier for a user to dismiss annoying popups, improves the responsiveness time to ask a user if they want to block a site.

Curious how our designers will see something like this. @MetaMask/design

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 reviewing the ethereum.enable flow and the linked Web Notification API proposal; the issue names no files, tests, or entry points. The scope and acceptance criteria still need a design decision covering whether and how notification controls should precede the full popup.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.