Bug 225510

Summary: [SOUP] Use the new libsoup network metrics API
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2 Keywords: Gtk
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 220508    
Attachments:
Description Flags
Patch mcatanzaro: review+

Description Carlos Garcia Campos 2021-05-07 05:25:31 PDT
.
Comment 1 Carlos Garcia Campos 2021-05-07 05:28:35 PDT
Created attachment 427994 [details]
Patch
Comment 2 Michael Catanzaro 2021-05-07 08:18:29 PDT
Comment on attachment 427994 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=427994&action=review

> Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp:286
> +            if (!g_cancellable_is_cancelled(protectCancellable.get()) && !m_networkLoadMetrics.fetchStart) {

The fact that the operation can be cancelled before returning to the main loop is strange and confusing, but you do at least have a warning comment up above, so... I guess that's OK.
Comment 3 Carlos Garcia Campos 2021-05-08 03:30:34 PDT
Comment on attachment 427994 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=427994&action=review

>> Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp:286
>> +            if (!g_cancellable_is_cancelled(protectCancellable.get()) && !m_networkLoadMetrics.fetchStart) {
> 
> The fact that the operation can be cancelled before returning to the main loop is strange and confusing, but you do at least have a warning comment up above, so... I guess that's OK.

I agree. It only happens when hsts cancels the load to start a https one.
Comment 4 Carlos Garcia Campos 2021-05-08 03:43:16 PDT
Committed r277225 (237496@main): <https://commits.webkit.org/237496@main>