mozilla/browserid — pull request #3592 by shane-tomlinson (2013-06-27 19:26:38+00:00)
Title: Fix returning from IdP verification on FirefoxOS

@jedp, @jrgm - here is the other half of the FirefoxOS series of PRs!

Background: sessionStorage can be wiped on FirefoxOS when authenticating with the IdP. We need to store a momento with dialog bootstrapping info for when the user returns from the IdP.

* store primary IdP verification flow info in localStorage with a nonce
* Store the nonce in window.name for FirefoxOS, sessionStorage for IE8.
* When returning from the IdP, look for nonce, load info from localStorage.

fixes #3572