Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 421f42aa5ebaae6ab363c800237a0ed8464da6f7
      
https://github.com/WebKit/WebKit/commit/421f42aa5ebaae6ab363c800237a0ed8464da6f7
  Author: Chris Dumez <[email protected]>
  Date:   2026-04-23 (Thu, 23 Apr 2026)

  Changed paths:
    M Source/WebCore/page/Page.cpp
    M Source/WebCore/page/Page.h
    M Source/WebCore/platform/ThermalMitigationNotifier.cpp
    M Source/WebCore/platform/ThermalMitigationNotifier.h
    M Source/WebCore/platform/cocoa/ThermalMitigationNotifier.mm
    M Source/WebKit/NetworkProcess/cache/NetworkCache.cpp
    M Source/WebKit/NetworkProcess/cache/NetworkCache.h

  Log Message:
  -----------
  [iOS] CheckedPtr crash under [WebThermalMitigationObserver 
thermalStateDidChange]
https://bugs.webkit.org/show_bug.cgi?id=313091
rdar://170616981

Reviewed by Ryosuke Niwa.

Make ThermalMitigationNotifier ref-counted instead of CanMakeCheckedPtr
and protect this in `[WebThermalMitigationObserver thermalStateDidChange]`
before calling notifyThermalMitigationChanged() on it.

* Source/WebCore/page/Page.cpp:
(WebCore::m_thermalMitigationNotifier):
* Source/WebCore/page/Page.h:
* Source/WebCore/platform/ThermalMitigationNotifier.cpp:
(WebCore::ThermalMitigationNotifier::create):
* Source/WebCore/platform/ThermalMitigationNotifier.h:
* Source/WebCore/platform/cocoa/ThermalMitigationNotifier.mm:
(-[WebThermalMitigationObserver thermalStateDidChange]):
* Source/WebKit/NetworkProcess/cache/NetworkCache.cpp:
(WebKit::NetworkCache::Cache::Cache):
* Source/WebKit/NetworkProcess/cache/NetworkCache.h:

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



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

Reply via email to