brave / brave-ios

Brave iOS Browser
https://brave.com
Mozilla Public License 2.0
1.7k stars 441 forks source link

Trying to create wallet in split screen causes onboarding to get stuck in split view #8425

Closed srirambv closed 11 months ago

srirambv commented 1 year ago

Description:

Trying to import/create wallet in split screen causes onboarding to get stuck in split view

Steps to Reproduce

  1. Open Brave in split view on iPad
  2. Open Wallet on both views
  3. Initiate onboarding create wallet
  4. Go to create password screen on both view
  5. Enter different password in both window
  6. Finish onboarding in one view
  7. The other view gets stuck

Actual result:

image

Expected result:

Should not allow to continue if different passwords are entered in split view

Reproduces how often: [Easily reproduced, Intermittent Issue]

Easy

Brave Version:

Device details:

iPad Pro (iOS 16.7.2)

Website problems only:

Additional Information

cc: @nuo-xu @StephenHeaps

StephenHeaps commented 1 year ago

If both windows are in the Create a Password screen, the window that you tap Continue on first will continue with the onboarding flow. The 2nd window (the window you did not tap Continue on Create a Password) will just switch to showing Portfolio. If you then switch from SplitView back to fullscreen, the 2nd window doesn't close, it gets minimized but is still open in the background; this is why when you re-open SplitView the onboarding view re-appears. But you should never get 'stuck', just one window continues with onboarding flow (backup recovery phrase, setup biometrics) while the other window just shows main wallet.

If this is what you are seeing, this is expected behaviour. If you're actually 'stuck' in either of these window (cannot progress through onboarding / interact with Portfolio), could you share a full screen recoding to help reproduce the bug?

This is behaviour I see (mouse clicks visible):

https://github.com/brave/brave-ios/assets/5314553/694b6dba-d67d-4f42-b625-72e5cde4ae6a

Similarly, 'minimize window' behaviour when switching from SplitView -> Fullscreen in Safari:

https://github.com/brave/brave-ios/assets/5314553/96908c9c-10a6-441a-9550-af288932c99c

srirambv commented 9 months ago

Verification passed on iPad with iOS 16.7.5 running 1.64 (24.1.25.17)

https://github.com/brave/brave-ios/assets/17010094/57203582-8917-47d8-a2c9-a955d6c26e16