yezhizhen
changed the title
Fix canvas response panic on closed channel
canvas: Fix response panic on closed channel
jschwe pushed a commit to jschwe/servo that referenced this pull request
Jun 26, 2026The canvas paint thread could panic when attempting to send responses through channels that have already been closed by the receiver Replace .unwrap() calls with proper error handling using if let Err(error). Log warnings instead of panicking when channel send operations fail. Part of servo#40744 Signed-off-by: shangguanmachine-dot <shangguanmachine-dot@users.noreply.github.com> Co-authored-by: shangguanmachine-dot <shangguanmachine-dot@users.noreply.github.com> (cherry picked from commit adb5c21 )
jschwe pushed a commit that referenced this pull request
Jun 26, 2026The canvas paint thread could panic when attempting to send responses through channels that have already been closed by the receiver Replace .unwrap() calls with proper error handling using if let Err(error). Log warnings instead of panicking when channel send operations fail. Part of #40744 Signed-off-by: shangguanmachine-dot <shangguanmachine-dot@users.noreply.github.com> Co-authored-by: shangguanmachine-dot <shangguanmachine-dot@users.noreply.github.com> (cherry picked from commit adb5c21 )