Bug 160289

Summary: Frequent animation lags when interacting with Safari (sidebar, tab switching, etc.)
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, bdakin, benjamin, cying, james.savage, sam, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch simon.fraser: review+

Description Tim Horton 2016-07-28 03:11:06 PDT
Frequent animation lags when interacting with Safari (sidebar, tab switching, etc.)
Comment 1 Tim Horton 2016-07-28 03:12:39 PDT
Created attachment 284768 [details]
Patch
Comment 2 Tim Horton 2016-07-28 03:13:13 PDT
Will write changelog and post for review tomorrow, just wanted to get EWS going.
Comment 3 Tim Horton 2016-07-28 11:28:16 PDT
Created attachment 284795 [details]
Patch
Comment 4 Tim Horton 2016-07-28 11:29:16 PDT
<rdar://problem/27553464>
Comment 5 Simon Fraser (smfr) 2016-07-28 13:21:35 PDT
Comment on attachment 284795 [details]
Patch

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

> Source/WebKit2/Platform/IPC/Connection.cpp:391
> +std::chrono::milliseconds Connection::timeoutRespectingIgnoreTimeoutsForTesting(std::chrono::milliseconds timeout) const
> +{
> +    return m_ignoreTimeoutsForTesting ? std::chrono::milliseconds::max() : timeout;
> +}

I thought we are moving away from std::chrono.
Comment 6 Tim Horton 2016-07-28 13:27:57 PDT
(In reply to comment #5)
> Comment on attachment 284795 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=284795&action=review
> 
> > Source/WebKit2/Platform/IPC/Connection.cpp:391
> > +std::chrono::milliseconds Connection::timeoutRespectingIgnoreTimeoutsForTesting(std::chrono::milliseconds timeout) const
> > +{
> > +    return m_ignoreTimeoutsForTesting ? std::chrono::milliseconds::max() : timeout;
> > +}
> 
> I thought we are moving away from std::chrono.

Sure, but this code is full of it still.
Comment 7 Benjamin Poulain 2016-07-28 14:09:38 PDT
Comment on attachment 284795 [details]
Patch

+1. My code was assuming message ordering, which is wrong.
Comment 8 Tim Horton 2016-07-28 14:21:04 PDT
https://trac.webkit.org/changeset/203842