Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7094c62cf4af66330c510c10940315a744a1e34f
      
https://github.com/WebKit/WebKit/commit/7094c62cf4af66330c510c10940315a744a1e34f
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-23 (Thu, 23 Jul 2026)

  Changed paths:
    M Source/WebCore/platform/mediastream/cocoa/ScreenCaptureKitCaptureSource.mm

  Log Message:
  -----------
  ScreenCaptureKitCaptureSource::updateStreamConfiguration() uses weakThis 
instead of protectedThis after null-check
https://bugs.webkit.org/show_bug.cgi?id=320116
rdar://183058948

Reviewed by Chris Dumez.

The completion handler's callOnMainRunLoop block creates a protectedThis
RefPtr to keep the object alive across the hop to the main run loop, but
then calls sessionFailedWithError() through weakThis instead, defeating
the guard. Use protectedThis for the call, matching the pattern used
elsewhere in this file.

* Source/WebCore/platform/mediastream/cocoa/ScreenCaptureKitCaptureSource.mm:
(WebCore::ScreenCaptureKitCaptureSource::updateStreamConfiguration):

Canonical link: https://commits.webkit.org/317827@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to