Michael Kelly
unread,May 8, 2013, 3:50:16 PM5/8/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-id...@lists.mozilla.org
(Posted at the behest of callahad after I tested it)
So Flicks ran into an issue recently where users would log into Flicks,
then log out of another Persona-enabled site and lose their Persona
session. When they went back to Flicks, they would be logged into Flicks
and see a Sign Out button, but when the button was clicked and ran
navigator.id.logout, the onlogout handler wasn't executed and nothing
would happen.
The bug was in Flicks; it wasn't correctly passing the user's email to
navigator.id.watch. When set up correctly, watch should've automatically
logged them out as soon as they hit the page. However, this brought up a
state in which Persona's behavior was undefined: If the user does not
have an active Persona session, navigator.id.logout will not trigger the
onlogout handler.
I don't have a specific question or request for myself, this is more of
a note of what I found. However, it does raise the question of what
Persona should do in odd edge cases like this. My personal choice would
be to make onlogout ALWAYS be called after navigator.id.logout, because
otherwise I have no reliable way to run code after that function is
called in case it fails.
Thanks!
-Mike Kelly