mozilla/browserid — Issue #1256: possible race? between /sign_in dialog and /verify_email_address page
Author: jrgm
Created: 2012-03-05 20:52:04+00:00
State: open

This is reproducible in automation with an actual browser about 1 in 50 to 100 times. It may well be a bug on my part, but it
could also be for real. The user experience of the failure case though isn't so bad and they can complete signup with a couple of extra steps that don't seem that unusual to the user, so it might have not been identified as an issue yet.

Steps to reproduce manually (repeat 100 times or until it fails ;-) )
0) start with a clean profile, or just blow away cookies for diresworb.org and beta.myfavoritebeer.org
1) load beta.myfavoritebeer.org and click 'sign in'
2) in the /sign_in dialog enter an email address never used before
3) click next; click verify email
4) Go to email client and find the /verify_email_address email and open that link in the same browser (new window/tab)
5) fill in a password twice and click finish

Excepted:
The verify_email_address page transitions to show 'Thank you for signing up with BrowserID'. The /sign_in dialog detects that user is now authenticated and closes. Myfavoritebeer now appears in a logged-in state.

Ocasionally:
The verify_email_address page transitions to show 'Thank you for signing up with BrowserID'. The /sign_in dialog though
shows the dialog with the chosen email address and a next button.

The user can continue from this by clicking next, entering the chosen password and clicking on 'sign in'. The sign_in dialog witll now complete its work and the user is signed in to myfavoritebeer.