Bug 252684

Summary: visibilitychange not fired
Product: WebKit Reporter: Danny Moerkerke <drmoerkerke>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   

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