Fix show SAML session expiration modal
What does this MR do and why?
See #475031 (comment 2033179346) for more context.
The SAML session expiration modal was not showing because setTimeout
was experiencing great delays when the window/tab was inactive.
In order to avoid these delays, we check regularly, every
10 seconds, against a timestamp for the expiration. Although,
setInterval
experiences identical delays, because of the high
frequency of execution, we circumvent this issue.
In addition, we register a listener for the visibilitychange
event,
that fires when window/tab become active.
EE: true
Changelog: fixed
Closes: #475031 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
No changes
How to set up and validate locally
Pass tests.