Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6c333c99a9a77e7f985b532002f6f2f8f7e05a07
      
https://github.com/WebKit/WebKit/commit/6c333c99a9a77e7f985b532002f6f2f8f7e05a07
  Author: Brent Fulgham <[email protected]>
  Date:   2024-04-25 (Thu, 25 Apr 2024)

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

  Log Message:
  -----------
  Adopt smart pointers in ApplicationStateTracker
https://bugs.webkit.org/show_bug.cgi?id=273218
<rdar://126764684>

Reviewed by David Kilzer.

The ApplicationStateTracker uses `id` values to remember observers that it
Registers and unregisters at various points in the display of a view. It's
possible that some framework could decide to unregistered an observer outside
of this flow, causing us to request an observer to be removed a second time,
which triggers a release assert.

* Source/WebKit/UIProcess/ApplicationStateTracker.h:
* Source/WebKit/UIProcess/ApplicationStateTracker.mm:
(WebKit::m_isInBackground):
(WebKit::ApplicationStateTracker::removeAllObservers):
(WebKit::m_willEnterForegroundObserver): Deleted.

Canonical link: https://commits.webkit.org/278022@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