Bug 252684 - visibilitychange not fired
Summary: visibilitychange not fired
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-21 12:57 PST by Danny Moerkerke
Modified: 2024-01-09 03:30 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danny Moerkerke 2023-02-21 12:57:37 PST
On iOS 16.4 beta 1 Safari does not fire the "visibilitychange" event when the browser is minimized.
Comment 1 Radar WebKit Bug Importer 2023-02-22 12:57:42 PST
<rdar://problem/105794118>
Comment 2 Chris Dumez 2023-03-24 15:26:17 PDT
I am having trouble reproducing on iOS 16.4 Beta with:
```
1. Load https://jsfiddle.net/rk7bt8hc/5/
2. Home out of Safari
3. Go back to Safari
4. You should now see
> visibility changed to hidden
> visibility changed to visible
```

Could you please provide more information to help us reproduce?

Is this on iPad or iPhone? Do you have a better reproduction case than the one I wrote above?
Comment 3 Danny Moerkerke 2023-11-17 03:03:10 PST
This is now fixed in Safari 17