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

Disallow onboarding flow in popup view #6685

Closed
seandotau opened this issue Jun 5, 2019 · 2 comments · Fixed by #6966
Closed

Disallow onboarding flow in popup view #6685

seandotau opened this issue Jun 5, 2019 · 2 comments · Fixed by #6966
Assignees

Comments

@seandotau
Copy link

seandotau commented Jun 5, 2019

MOD EDIT
Bug: when the user installs metamask, aborts onboarding, then visits a dapp that prompts the Connect screen, the extension shows an unstyled & un-usable onboarding flow in the popup view.

Expected behavior is for MetaMask to open a full-screen onboarding flow when it receives a connect request for a non-onboarded user.


Describe the bug
Not really a bug but a usability issue. When attempting to restore a wallet, there is no check box next to "I have read the agree to the Terms of Use". The user has to actually click on the words on the sentence to make the "Import" button clickable. This is almost impossible to figure out. I discovered it by accident.

To Reproduce

  1. Install Brave
  2. Install MetaMask in Brave.
  3. Attempt to "Import Wallet"

Expected behavior
There should be a check box

Screenshots
If applicable, add screenshots to help explain your problem.
Screen Shot 2019-06-05 at 1 34 00 pm

Browser details (please complete the following information):

  • OS: OS X
  • Browser: Brave Version 0.64.77 Chromium: 74.0.3729.169 (Official Build) (64-bit)
  • MetaMask Version: 6.5.3

Additional context
Add any other context about the problem here.

@bdresser
Copy link
Contributor

bdresser commented Jun 5, 2019

hey @seandotau, thanks for flagging. We've moved to a full-screen onboarding, so I'm curious how you got to view this unstyled screen in the extension drop-down. I just tried on Brave and couldn't reproduce, curious if you're doing something particular to get to this state.

  • After you install MM from the web store, does it open in a full tab?
  • During onboarding, when you click the MM icon in your top bar, does it open in a full tab?

@seandotau
Copy link
Author

I've seen the full screen on-boarding process and it looks great. To replicate this process, I opened up Brave and the first thing I did was open remix.ethereum.org, then these un-styled screens appear. Further screenshots attached:
Screen Shot 2019-06-07 at 4 16 19 pm
Screen Shot 2019-06-07 at 4 16 38 pm
Screen Shot 2019-06-07 at 4 16 45 pm

@bdresser bdresser added the type-bug Something isn't working label Jun 10, 2019
@bdresser bdresser changed the title MetaMask Brave restoring wallet Disallow onboarding flow in popup view Jun 10, 2019
@bdresser bdresser added this to the UI Sprint 15 [June 24] milestone Jun 24, 2019
@whymarrh whymarrh self-assigned this Jul 31, 2019
@Gudahtt Gudahtt assigned Gudahtt and unassigned whymarrh Aug 6, 2019
Gudahtt added a commit that referenced this issue Aug 6, 2019
The browser behaviour when opening a new tab differs between Chrome and
Firefox. In the case of a popup, Chrome will close the popup whereas
Firefox will leave it open. In the case of the notification window,
Chrome will move the new tab to the foreground, whereas Firefox will
leave the notification window in the foreground when opening a new tab.

We always want to close the current UI (popup or notification) when
switching to a full-screen view. The only exception to this is when the
switch is triggered from the background, which has no UI.

Closes #6513, #6685
Gudahtt added a commit that referenced this issue Aug 8, 2019
* Add background environment type

The `getEnvironmentType` method now checks for the background
environment as well, instead of returning 'notification' for that case.

Instead of adding another regex for the background path, the regexes
for each environment have been replaced with the URL constructor[0].
This is the standard method of parsing URLs, and is available in all
supported browsers.

[0]: https://developer.mozilla.org/en-US/docs/Web/API/URL

* Add note regarding a missing manifest permission

The `url` parameter to `tabs.query(...)` requires the `tabs` permission,
and will be ignored otherwise. We are missing this permission, so that
call does not work.

* Close window after opening full screen

The browser behaviour when opening a new tab differs between Chrome and
Firefox. In the case of a popup, Chrome will close the popup whereas
Firefox will leave it open. In the case of the notification window,
Chrome will move the new tab to the foreground, whereas Firefox will
leave the notification window in the foreground when opening a new tab.

We always want to close the current UI (popup or notification) when
switching to a full-screen view. The only exception to this is when the
switch is triggered from the background, which has no UI.

Closes #6513, #6685
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants