Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e9c03b26665d2a3f4c9002075d90f9d9d5c1cb5e
https://github.com/WebKit/WebKit/commit/e9c03b26665d2a3f4c9002075d90f9d9d5c1cb5e
Author: Ahmad Saleem <[email protected]>
Date: 2026-09-13 (Sun, 13 Sep 2026)
Changed paths:
M Source/WebCore/platform/network/ResourceResponseBase.cpp
M Source/WebCore/platform/network/ResourceResponseBase.h
Log Message:
-----------
ResourceResponseData constructor copies certificateInfo instead of moving it
https://bugs.webkit.org/show_bug.cgi?id=324054
rdar://187287941
Reviewed by Chris Dumez.
The ResourceResponseData constructor took certificateInfo as a by-value
std::optional<CertificateInfo> and copied it into the member. Take it by
rvalue reference (std::optional<CertificateInfo>&&) and move it into the
member instead, matching the adjacent networkLoadMetrics parameter. The
one caller that passed the const m_certificateInfo member now constructs
an explicit copy, mirroring how m_networkLoadMetrics is passed.
* Source/WebCore/platform/network/ResourceResponseBase.h:
(WebCore::ResourceResponseData::ResourceResponseData):
* Source/WebCore/platform/network/ResourceResponseBase.cpp:
(WebCore::ResourceResponseBase::getResponseData const):
Canonical link: https://commits.webkit.org/321043@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications