Branch: refs/heads/webkitglib/2.48
  Home:   https://github.com/WebKit/WebKit
  Commit: 0f474be40f6701fb87142ac700c3558d08246dcb
      
https://github.com/WebKit/WebKit/commit/0f474be40f6701fb87142ac700c3558d08246dcb
  Author: Xabier Rodriguez-Calvar <[email protected]>
  Date:   2025-10-02 (Thu, 02 Oct 2025)

  Changed paths:
    M Source/WTF/wtf/Box.h
    M Tools/TestWebKitAPI/Tests/WTF/BoxPtr.cpp

  Log Message:
  -----------
  Cherry-pick 300573@main (382ecf0bfe89). 
https://bugs.webkit.org/show_bug.cgi?id=296689

    [WTF] Strengthen Box when it's build bare
    https://bugs.webkit.org/show_bug.cgi?id=296689

    Reviewed by Chris Dumez.

    When building an empty Box you can end up with an empty RefPtr. We should 
ensure it's valid before accessing it.

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

    * Source/WTF/wtf/Box.h:
    (WTF::Box::isValid const):
    (WTF::Box::get const):
    (WTF::Box::operator* const):
    (WTF::Box::operator-> const):
    (WTF::Box::operator bool const):
    * Tools/TestWebKitAPI/Tests/WTF/BoxPtr.cpp:
    (TestWebKitAPI::BoxPtrClassTest::method):
    (TestWebKitAPI::boxPtrClassTestDeleter):
    (TestWebKitAPI::TEST(WTF_BoxPtr, NoCrash)):

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

Canonical link: https://commits.webkit.org/290945.396@webkitglib/2.48



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