Bug 142164

Summary: [SOUP] Use SoupMessage::starting instead of SoupSession::request-started
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: danw, gustavo, svillar
Priority: P2 Keywords: Soup
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 141508    
Bug Blocks:    
Attachments:
Description Flags
Patch svillar: review+

Description Carlos Garcia Campos 2015-03-02 05:52:17 PST
SoupSession::request-started is deprecated in libsoup 2.50. Both signals are equivalent, but SoupMessage::starting is also emitted for resources loaded from the disk cache. This fixes web timing calculations for cached resources, since we were not initializing m_requestStart.
Comment 1 Carlos Garcia Campos 2015-03-02 05:54:12 PST
Created attachment 247662 [details]
Patch
Comment 2 Sergio Villar Senin 2015-03-02 06:15:07 PST
Comment on attachment 247662 [details]
Patch

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

Makes sense. Any test that could start have started to pass due to this change?

> Source/WebCore/platform/network/soup/SoupNetworkSession.cpp:119
>  #endif

Pretty unfortunate to have the WebTiming stuff here. Hopefully we could remove it with the starting signal at some point.
Comment 3 Carlos Garcia Campos 2015-03-02 06:19:48 PST
(In reply to comment #2)
> Comment on attachment 247662 [details]
> Patch

Thanks!

> View in context:
> https://bugs.webkit.org/attachment.cgi?id=247662&action=review
> 
> Makes sense. Any test that could start have started to pass due to this
> change?

I've tried all webtiming tests in TestExpectations before the patch and all of them passed, so . . . Anyway, this only affects disk cached resources, so I guess that's not the case of any test.

> > Source/WebCore/platform/network/soup/SoupNetworkSession.cpp:119
> >  #endif
> 
> Pretty unfortunate to have the WebTiming stuff here. Hopefully we could
> remove it with the starting signal at some point.

Yes, indeed.
Comment 4 Carlos Garcia Campos 2015-03-03 02:25:17 PST
Committed r180928: <http://trac.webkit.org/changeset/180928>