Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 55173525c593682868c44d1771e573d69ec5dbb9
      
https://github.com/WebKit/WebKit/commit/55173525c593682868c44d1771e573d69ec5dbb9
  Author: Mark Lam <[email protected]>
  Date:   2025-12-03 (Wed, 03 Dec 2025)

  Changed paths:
    M Source/WTF/wtf/text/AtomString.h
    M Tools/TestWebKitAPI/Tests/WTF/AtomString.cpp

  Log Message:
  -----------
  AtomString(ASCIILiteral) constructor should not copy the string data.
https://bugs.webkit.org/show_bug.cgi?id=303457
rdar://165744213

Reviewed by Marcus Plutowski.

It should create an AtomStringImpl that just points to the ASCIILiteral's data 
as its backing
store instead.  This used to be how it worked, but was regressed by 250160@main 
back in 2022.

Test: Tools/TestWebKitAPI/Tests/WTF/AtomString.cpp
* Source/WTF/wtf/text/AtomString.h:
(WTF::AtomString::AtomString):
* Tools/TestWebKitAPI/Tests/WTF/AtomString.cpp:
(TestWebKitAPI::TEST(WTF, AtomStringCreationFromLiteral)):

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



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

Reply via email to