Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d1bbd1b69c655d844e259ecd087ced8e0f304b07
      
https://github.com/WebKit/WebKit/commit/d1bbd1b69c655d844e259ecd087ced8e0f304b07
  Author: Chris Dumez <[email protected]>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    M Source/WTF/wtf/Vector.h
    M Source/WTF/wtf/WeakHashSet.h
    M Source/WebCore/dom/Document.cpp
    M Source/WebKit/UIProcess/EndowmentStateTracker.mm
    M Source/WebKit/UIProcess/FrameLoadState.cpp
    M Source/WebKit/UIProcess/WebProcessPool.cpp

  Log Message:
  -----------
  WeakHashSet::forEach() should protect object before passing it to the lambda
https://bugs.webkit.org/show_bug.cgi?id=301184

Reviewed by Geoffrey Garen.

* Source/WTF/wtf/Vector.h:
(WTF::CompactMapTraits<CheckedPtr<T>>::hasValue):
(WTF::CompactMapTraits<CheckedPtr<T>>::extractValue):
* Source/WTF/wtf/WeakHashSet.h:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::visibilityStateChanged):
(WebCore::Document::forEachMediaElement):
(WebCore::Document::captionPreferencesChanged):
* Source/WebKit/UIProcess/EndowmentStateTracker.mm:
(WebKit::EndowmentStateTracker::setState):
* Source/WebKit/UIProcess/FrameLoadState.cpp:
(WebKit::FrameLoadState::forEachObserver):
* Source/WebKit/UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::updateProcessAssertions):

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



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

Reply via email to