Skip to content

🐞 Timer won't restart when opening Mail app with a mailto link and coming back #399

@slizlaszlo

Description

@slizlaszlo

What happened?

I've experienced a strange issue when the user clicks on a mail link in our web app, it opens the Mail app and the user comes back to the web app the Idle timer don't recognise the users presence (onAction not called again) and the timer goes on until the page is reloaded or the timer counts down.

Browsers affected Chrome latest
It works fine in Arc, Firefox, Safari latest
MacOS Sequoia

Reproduction Steps

I've forked one of the examples of the IdleTimer site and added a mail link to it
https://codesandbox.io/p/sandbox/confirm-prompt-forked-2yvyzx

1. Open the sandbox in Chrome
2. The timer starts to count down
3. Click on the mail link to open the default Mail app
4. Close the Mail composer window
5. Go back to the codesandbox
6. Check if the count down stops for any mouse or keyboard event

Relevant log output

No response

Screenshots or Additional Context

No response

Module Version

5.7.2

What browsers are you seeing the problem on? Select all that apply.

Chrome

What devices are you seeing the problem on?

Desktop

Verification

  • I have checked for existing closed issues and discussions.

Metadata

Metadata

Labels

bugA verified and reproducible bug.triageHas not been reviewed yet and should not be worked on.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions