Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f756d5eafc4c301c3a4e7c41c3d1e4bb9b2bfde8
      
https://github.com/WebKit/WebKit/commit/f756d5eafc4c301c3a4e7c41c3d1e4bb9b2bfde8
  Author: Jer Noble <[email protected]>
  Date:   2024-04-02 (Tue, 02 Apr 2024)

  Changed paths:
    M Source/WebKit/UIProcess/ApplicationStateTracker.mm

  Log Message:
  -----------
  REGRESSION(275943@main): WebKit apps can crash on launch in 
ApplicationStateTracker::setScene()
https://bugs.webkit.org/show_bug.cgi?id=272040
rdar://124983721

Reviewed by Eric Carlson and Andy Estes.

KVO will use a NSNull object as the value of a change when the windowScene 
becomes nil. Detect this case
and call setScene() with nil rather than the NSNull object.

* Source/WebKit/UIProcess/ApplicationStateTracker.mm:
(-[WKUIWindowSceneObserver observeValueForKeyPath:ofObject:change:context:]):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to