Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

enabling MetaMask via notification when visiting DApp website #11534

Merged
merged 4 commits into from
Oct 15, 2017

Conversation

kjozwiak
Copy link
Member

@kjozwiak kjozwiak commented Oct 14, 2017

Fixed #11532

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.

Test Plan:

Case 1:

  • ensure MetaMask is disabled via about:preferences#extensions
  • visit https://ethwaterloo.herokuapp.com/
  • ensure that you receive a "This page contains a Dapp, would you like to enable the MetaMask extension?" notification
  • click on "Install MetaMask"
  • ensure that MetaMask is installed (verify via about:preferences#extensions)
  • click on the "MetaMask" icon that appears next to the "Brave" shield icon
  • accept the terms and quickly create a new account
  • click on "I've copied it somewhere safe" under "Vault Created"
  • select the "Ropsten Test Net" from the MetaMask dropdown menu
  • under https://ethwaterloo.herokuapp.com/, refresh the page and select "Go" and ensure the app loads a blockchain map

Case 2:

  • ensure MetaMask is disabled via about:preferences#extensions
  • visit https://ethwaterloo.herokuapp.com/
  • ensure that you receive a "This page contains a Dapp, would you like to enable the MetaMask extension?" notification
  • click on "No Thanks" and ensure "Remember this decision" is selected
  • refresh the website and ensure that the notification isn't being displayed anymore
  • visit https://tokenfactory.surge.sh and ensure that the notification isn't appearing

Case 3:

Case 4:

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header

#8671

already added to vault manifest & live on server
brave/vault-updater#43

Auditors:
@bridriver @bsclifton @jonathansampson
Copy link
Member

@bbondy bbondy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work with all this @kjozwiak !
Way 2 go

@bbondy bbondy merged commit 5b4382f into 0.19.x Oct 15, 2017
bbondy added a commit that referenced this pull request Oct 15, 2017
enabling MetaMask via notification when visiting DApp website
bbondy added a commit that referenced this pull request Oct 15, 2017
enabling MetaMask via notification when visiting DApp website
@bbondy
Copy link
Member

bbondy commented Oct 15, 2017

0.19.x: 5b4382f

0.20.x: 6af62cb

0.21.x: def7455

master: 093c5d3

bbondy added a commit that referenced this pull request Oct 15, 2017
enabling MetaMask via notification when visiting DApp website
@bbondy
Copy link
Member

bbondy commented Oct 15, 2017

metamask

@bbondy
Copy link
Member

bbondy commented Oct 15, 2017

GIF thanks to @kjozwiak

@jonathansampson jonathansampson mentioned this pull request Oct 16, 2017
13 tasks
syuan100 pushed a commit to syuan100/browser-laptop that referenced this pull request Nov 9, 2017
enabling MetaMask via notification when visiting DApp website
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants