We have an angular (SPA) application that supports a client-side user session (session timeout, period of inactivity, etc.). A session is used to force the user to re-log in when, for any reason, the session expires.
The expiration of a session is controlled by a dedicated service that broadcasts the event to $ rootScope when the session ends, blocks, or otherwise changes state.
We add listeners to these session state change events that change the routing to the corresponding page (login page, unlock page, etc.). We use angular -ui-router for routing.
This works great, especially in Firefox, if session state changes occur when the browser window / tab is inactive (i.e. minimized, in the background, etc.), the page does not refresh properly. In other words, you can see the controls of the new page (for example, the username and password field), but instead of seeing the background of the new page, you see the old.
It works fine in Chrome and IE, we only see this problem in Firefox. Moreover, when the browser window / tab is active, it also works fine on Firefox.
Any thoughts?
angularjs firefox angular-ui-router
eitanfar
source share