Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dismissing privacy mode from popup #7093

Merged
merged 2 commits into from
Sep 3, 2019

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Sep 1, 2019

The privacy mode notification was not able to be dismissed from the popup UI. It should have been dismissed after clicking "Learn more", but that button opens a new tab first before dismissing the flag. Opening the new tab kills the pop UI process before it has a chance to set that flag, so it never gets set.

Re-ordering the handler to set the flag first avoids this problem.

A separate dismiss button has also been added to the notification.

dismissable

The privacy mode notification was not able to be dismissed from the
popup UI. It should have been dismissed after clicking "Learn more",
but that button opens a new tab first before dismissing the flag.
Opening the new tab kills the pop UI process before it has a chance
to set that flag, so it never gets set.

Re-ordering the handler to set the flag first avoids this problem.
@Gudahtt Gudahtt force-pushed the allow-dismissing-privacy-mode-from-popup branch from 1461c69 to 3a4b3f5 Compare September 1, 2019 23:05
Copy link
Contributor

@danfinlay danfinlay left a comment

Choose a reason for hiding this comment

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

Nice and simple!

@metamaskbot
Copy link
Collaborator

Builds ready [3a4b3f5]: chrome, firefox, edge, opera

@danfinlay danfinlay merged commit 361a19a into develop Sep 3, 2019
@danfinlay danfinlay deleted the allow-dismissing-privacy-mode-from-popup branch September 3, 2019 16:59
@Gudahtt Gudahtt added this to the UI Sprint 19 [Aug 19] milestone Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants