mozilla/browserid — Issue #870: Weird UI behaviour after cancelling account that has a pending 'add email' request
Author: jrgm
Created: 2012-01-11 00:47:57+00:00
State: open

This is admittedly a weird corner case, but seems to me (if I'm reading this
right) account cancellation should also cancel any pending requests to add an
email to the now-cancelled account.

0) Probably best to do this in a clean/new browser profile

1) Go to https://beta.myfavoritebeer.org. Click 'Sign in', and add an email
not ever used. Click 'next'. Then click 'Verify email'.

2) Open the verify_email_address URL from email in the same browser, new
tab/window. Fill in the 'New/Verify' passwords and click 'finish'.
Close this tab/window.

3) You should now be logged into myfavoritebeer. So click 'logout'.

4) Click 'Sign in', and in the popup window, click 'Use a different email',
fill in another email address, and submit. IGNORE THE EMAIL THAT IS SENT (or
pretend it is lost in SMTP-land).

5) Close the popup window, and in a new tab/window go to
'https://diresworb.org'.

6) On diresworb, the first email you verified should be displayed. Click on
'Your email addresses' 'edit' button, then click on 'remove'.

7) An alert is displayed "Removing the last address will cancel your BrowserID
account. Are you sure you want to continue?".

8) Click OK. https://diresworb.org now shows a page with only the header and
footer. Nothing in the central content area.

9) Go back to https://beta.myfavoritebeer.org. Click 'Sign In'.

The popup window comes up. It contains:
'''Sign in using This is not me...

Use a different email
+---------+
| sign in +
+---------+ '''

Note that no email addresses are in the dialog above. (Clicking
'sign in' throws up an alert that the email is invalid or deleted.)

Presumably because the request to add an email to the account has
not been acknowledged yet, the account cancellation is in a bit
of a state of limbo.