Bug 262468

Summary: Screen share causes page crash with "Share Window" as source
Product: WebKit Reporter: Nick <Nick>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ap, youennf
Priority: P2    
Version: Safari 16   
Hardware: Unspecified   
OS: macOS 13   

Description Nick 2023-10-01 17:47:44 PDT
Setup:
Safari Version 16.6 (18615.3.12.11.2)
MacBook Pro 14in, M2 Pro
macOS 13.5.2 (22G91)


Description

My assumption is this has something to do with getDisplayMedia()? The bug only happens if the window being shared is too large. I reproduced this behavior on both Whereby and Google Meet. My colleague has confirmed the issue isn't present in 17, but I wasn't sure if there'd be any additional point updates for 16.x

Reproduction steps:

1. Join a video call in Safari(Whereby or Google Meet is fine)
2. Share Screen
3. Select "Share Window"
4. Select an app window that is more than half the screen size
5. Tab crash with "reloaded after problem occured"

If you repeat the above steps but share a much small size window, the crash doesn't happen. In fact, you can then play with the size of the window while sharing and the crash doesn't happen. However the content shared is a bit broken/skewed
Comment 1 Alexey Proskuryakov 2023-10-03 10:06:47 PDT
We cannot speak for Apple software release plans. If you know of an exceptionally string reason why this is needed, I could relay this information.

We certainly want everyone to use the latest version, which includes many correctness and security fixes compared to Safari 16.x.