Changeset 278595 in webkit
- Timestamp:
- Jun 8, 2021, 12:57:00 AM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r278590 r278595 1 2021-06-08 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 REGRESSION(r278391): [SOUP] Test fast/dom/webtiming.html is failing 4 https://bugs.webkit.org/show_bug.cgi?id=226726 5 6 Reviewed by Michael Catanzaro. 7 8 We need to set network metrics on response even for non HTTP loads now. 9 10 Fixes fast/dom/webtiming.html 11 12 * NetworkProcess/soup/NetworkDataTaskSoup.cpp: 13 (WebKit::NetworkDataTaskSoup::resume): 14 (WebKit::NetworkDataTaskSoup::didSendRequest): 15 (WebKit::NetworkDataTaskSoup::dispatchDidReceiveResponse): 16 1 17 2021-06-07 Alex Christensen <achristensen@webkit.org> 2 18 -
trunk/Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp
r278402 r278595 328 328 329 329 if (m_file && !m_cancellable) { 330 m_networkLoadMetrics.fetchStart = MonotonicTime::now(); 330 331 m_cancellable = adoptGRef(g_cancellable_new()); 331 332 g_file_query_info_async(m_file.get(), G_FILE_ATTRIBUTE_STANDARD_TYPE "," G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "," G_FILE_ATTRIBUTE_STANDARD_SIZE, … … 335 336 336 337 if (m_currentRequest.url().protocolIsData() && !m_cancellable) { 338 m_networkLoadMetrics.fetchStart = MonotonicTime::now(); 337 339 m_cancellable = adoptGRef(g_cancellable_new()); 338 340 DataURLDecoder::decode(m_currentRequest.url(), { }, DataURLDecoder::Mode::Legacy, [this, protectedThis = WTFMove(protectedThis)](auto decodeResult) mutable { … … 482 484 #endif 483 485 486 dispatchDidReceiveResponse(); 487 } 488 489 void NetworkDataTaskSoup::dispatchDidReceiveResponse() 490 { 491 ASSERT(!m_response.isNull()); 492 484 493 // FIXME: This cannot be eliminated until other code no longer relies on ResourceResponse's NetworkLoadMetrics. 485 494 m_response.setDeprecatedNetworkLoadMetrics(Box<NetworkLoadMetrics>::create(m_networkLoadMetrics)); 486 dispatchDidReceiveResponse();487 }488 489 void NetworkDataTaskSoup::dispatchDidReceiveResponse()490 {491 ASSERT(!m_response.isNull());492 495 493 496 didReceiveResponse(ResourceResponse(m_response), NegotiatedLegacyTLS::No, [this, protectedThis = makeRef(*this)](PolicyAction policyAction) {
Note:
See TracChangeset
for help on using the changeset viewer.