Bug 111244

Summary: Animations fail to start on http://www.google.com/insidesearch/howsearchworks/thestory/
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: zalan <zalan>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: aestes, ahmad.saleem792, alancutter, benjamin, cmarcelo, commit-queue, ddkilzer, eric, esprehn+autocc, graouts, jamesr, nduca, simon.fraser, simonjam, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.google.com/insidesearch/howsearchworks/thestory/
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Simon Fraser (smfr) 2013-03-01 23:10:53 PST
http://trac.webkit.org/changeset/131131 seems to have broken http://www.google.com/insidesearch/howsearchworks/thestory/

The page loads, but the animations don't start.
Comment 1 Simon Fraser (smfr) 2013-03-01 23:11:08 PST
<rdar://problem/13330885>
Comment 2 Simon Fraser (smfr) 2013-03-15 09:21:05 PDT
nduca@chromium.org, do you plan to look at this?
Comment 3 Nat Duca 2013-03-18 17:06:43 PDT
Iirw, we tweaked that patch such that webkitRequestAnimFrame delivers a DOMTimestamp [old style] and the unprefixed requestAnimationFrame delivers a DOMHighResolutionTimestamp. @simonjam can confirm...
Comment 4 James Simonsen 2013-03-18 17:15:41 PDT
Exactly right.

https://bugs.webkit.org/show_bug.cgi?id=106697

We'd love to take out the old behavior though. We should track down whoever owns that and ask them to update.
Comment 5 Andy Estes 2013-03-19 14:09:55 PDT
(In reply to comment #4)
> Exactly right.
> 
> https://bugs.webkit.org/show_bug.cgi?id=106697
> 
> We'd love to take out the old behavior though. We should track down whoever owns that and ask them to update.

Are you saying that r139509 should have fixed this bug, too? It still looks broken to me in ToT.
Comment 6 James Simonsen 2013-03-19 15:06:36 PDT
It looks like r139509 won't help here. This site has a proper polyfill, so it should pick up the unprefixed requestAnimationFrame() first, which is based on performance.now() values.

Does ToT have window.performance.now() defined? Without that, it'd definitely be broken.

If that's the case, we need to either enable performance.now(), or disable requestAnimationFrame() and only provide webkitRequestAnimationFrame() if now() isn't available.
Comment 7 zalan 2013-04-26 17:13:42 PDT
Created attachment 199877 [details]
Patch
Comment 8 zalan 2013-04-27 09:56:52 PDT
Comment on attachment 199877 [details]
Patch

missing testcase
Comment 9 zalan 2013-04-29 07:11:48 PDT
Created attachment 200004 [details]
Patch
Comment 10 David Kilzer (:ddkilzer) 2013-04-29 14:47:26 PDT
Comment on attachment 200004 [details]
Patch

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

r=me, but consider the feedback.

> Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig:183
> +ENABLE_WEB_TIMING_MINIMAL = ENABLE_WEB_TIMING_MINIMAL;
>  ENABLE_WEB_TIMING = ;

Nit:  I would put ENABLE_WEB_TIMING_MINIMAL after ENABLE_WEB_TIMING (to match FEATURE_DEFINES below).  If you change this, please remember to make the same change to all FeatureDefines.xcconfig files.

> Source/WTF/wtf/FeatureDefines.h:825
> +#if !defined(ENABLE_WEB_TIMING_MINIMAL)
> +#define ENABLE_WEB_TIMING_MINIMAL 0
> +#endif
> +
>  #if !defined(ENABLE_WEB_TIMING)
>  #define ENABLE_WEB_TIMING 0
>  #endif

Should we add an #error if both WEB_TIMING and WEB_TIMING_MINIMAL are enabled?

Nit:  I would reverse the order of these as well.
Comment 11 zalan 2013-04-30 01:39:03 PDT
Created attachment 200090 [details]
Patch
Comment 12 WebKit Commit Bot 2013-04-30 03:53:10 PDT
Comment on attachment 200090 [details]
Patch

Clearing flags on attachment: 200090

Committed r149359: <http://trac.webkit.org/changeset/149359>
Comment 13 WebKit Commit Bot 2013-04-30 03:53:12 PDT
All reviewed patches have been landed.  Closing bug.
Comment 14 David Kilzer (:ddkilzer) 2013-07-21 08:46:04 PDT
Re-opening since most of this change was rolled out for Bug 115601 in r149999:
<http://trac.webkit.org/changeset/149999>
Comment 15 Ahmad Saleem 2024-04-11 07:01:21 PDT
Seems to work fine now.