Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b31697dfe2691ac805661a2260a2ff28aa480642
https://github.com/WebKit/WebKit/commit/b31697dfe2691ac805661a2260a2ff28aa480642
Author: Kai Tamkun <[email protected]>
Date: 2026-10-01 (Thu, 01 Oct 2026)
Changed paths:
M Source/WTF/wtf/URL.h
M Tools/TestWebKitAPI/Tests/WTF/URL.cpp
Log Message:
-----------
[WTF] URL::string() should have an &&-qualified overload
https://bugs.webkit.org/show_bug.cgi?id=325669
rdar://188721000
Reviewed by Yijia Huang and Dan Hecht.
This patch adds an &&-qualified overload of URL::string() to allow
moving the string out of an expiring URL.
Test: Tools/TestWebKitAPI/Tests/WTF/URL.cpp
* Source/WTF/wtf/URL.h:
(WTF::URL::string): &-qualified the existing overload and added an && overload.
* Tools/TestWebKitAPI/Tests/WTF/URL.cpp:
(TestWebKitAPI::TEST_F(WTF_URL, MoveInvalidatesURL)):
Canonical link: https://commits.webkit.org/322404@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications