That's actually a bug in Persona:

https://github.com/mozilla/browserid/issues/3229

I'd be happy to move the reload up out of the onlogout method and into the
handler for the logout buttons until that gets fixed. It's a pretty big
edge case that you'd be spontaneously logged out of a page by Persona.


On Fri, May 17, 2013 at 9:29 AM, Stuart Colville
<notifications@github.com>wrote:

> In smokealarm/lib.js:
>
> >          }
> >      });
> >  }
> >
> >
> > +// Fake logout is required because navigator.id.onlogout isn't fired
> > +// when logging-out from a faked login.
> > +function fake_logout(suite) {
>
> Unfortunately that doesn't work for these tests because of the lack of
> navigator.id.onlogout. If you duplicate fake_login via a browser console
> (using this branch) and click logout link it doesn't run the reload. But a
> normal login/logout does.
>
> Happy to take alternative suggestions though.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla/fireplace/pull/124/files#r4279482>
> .
>