Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2ace7bf41640a58fe56fdcbc512137d8af12db6c
      
https://github.com/WebKit/WebKit/commit/2ace7bf41640a58fe56fdcbc512137d8af12db6c
  Author: Geoffrey Garen <[email protected]>
  Date:   2026-03-19 (Thu, 19 Mar 2026)

  Changed paths:
    M Source/WTF/wtf/HashTable.h
    M Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp

  Log Message:
  -----------
  HashTable of weak pointer should refuse to look up the invalidated weak 
pointer
https://bugs.webkit.org/show_bug.cgi?id=310314
rdar://172956189

Reviewed by Chris Dumez.

HashTable already prohibits empty and deleted keys, but we need to remember that
weak pointers have an additional, distinct invalidated key.

Test: Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp

* Source/WTF/wtf/HashTable.h:
(WTF::HashTable::isValidKey):
* Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp:
(TestWebKitAPI::TEST(WTF_HashSetDeathTest, InlineWeakPtrAddAfterDeath)):

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



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

Reply via email to