Title: [294871] trunk/Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp
- Revision
- 294871
- Author
- [email protected]
- Date
- 2022-05-25 23:08:03 -0700 (Wed, 25 May 2022)
Log Message
[Soup] USE(SOUP2) build fix after 250730@main
https://bugs.webkit.org/show_bug.cgi?id=240943
Patch by Žan Doberšek <[email protected]> on 2022-05-25
Unreviewed build fix for USE(SOUP2), switching to string literals in a couple of
places where URL::protocolIs() is expecting them.
* Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp:
(WebKit::NetworkDataTaskSoup::authenticateCallback):
(WebKit::NetworkDataTaskSoup::didStartRequest):
Canonical link: https://commits.webkit.org/251001@main
Modified Paths
Diff
Modified: trunk/Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp (294870 => 294871)
--- trunk/Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp 2022-05-26 05:36:21 UTC (rev 294870)
+++ trunk/Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp 2022-05-26 06:08:03 UTC (rev 294871)
@@ -657,7 +657,7 @@
// it's proxy authentication and the request URL is HTTPS, because in that case libsoup uses a
// tunnel internally and the SoupMessage used for the authentication is the tunneling one.
// See https://bugs.webkit.org/show_bug.cgi?id=175378.
- if (soupMessage != task->m_soupMessage.get() && (soupMessage->status_code != SOUP_STATUS_PROXY_AUTHENTICATION_REQUIRED || !task->m_currentRequest.url().protocolIs("https")))
+ if (soupMessage != task->m_soupMessage.get() && (soupMessage->status_code != SOUP_STATUS_PROXY_AUTHENTICATION_REQUIRED || !task->m_currentRequest.url().protocolIs("https"_s)))
return;
if (task->state() == State::Canceling || task->state() == State::Completed || !task->m_client) {
@@ -1636,7 +1636,7 @@
{
#if USE(SOUP2)
m_networkLoadMetrics.requestStart = MonotonicTime::now();
- if (!m_networkLoadMetrics.secureConnectionStart && m_currentRequest.url().protocolIs("https"))
+ if (!m_networkLoadMetrics.secureConnectionStart && m_currentRequest.url().protocolIs("https"_s))
m_networkLoadMetrics.secureConnectionStart = WebCore::reusedTLSConnectionSentinel;
#else
auto* metrics = soup_message_get_metrics(m_soupMessage.get());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes