cancelAnimationFrame doesn't behave according to the spec
Reported by
ragzovs...@gmail.com,
Dec 15
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Steps to reproduce the problem:
Execute this code snippet in the console:
var a = function(){console.log('foo');}, b = null;
requestAnimationFrame(function() { cancelAnimationFrame(b); });
b = requestAnimationFrame(function () { a(); });
What is the expected behavior?
'foo' should be logged.
What went wrong?
'foo' is not logged to the console
Did this work before? N/A
Chrome version: 71.0.3578.98 Channel: stable
OS Version: 10.0
Flash Version:
Well, to be honest, I do not think chromium has a bug with this API. It works as I would expect. Problem is with firefox, but when I reported problem to them, I was told FF behaves according to the specification (https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#run-the-animation-frame-callbacks) and every other browser is not. So this ticket is meant to start a discussion and sync understanding of the specification.
Ideal result would be if chromium developers could convince firefox developers that their cancelAnimationFrame doesn't work properly.
Ticket on bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1509466
,
Dec 17
,
Dec 17
Thanks for filing the issue... Tried to reproduce the issue on reported chrome version 71.0.3578.98 using Windows 10. Attaching screen-cast for reference. Steps: ------ 1. Launched reported chrome 2. Opened Dev tools >> Console 3. Executed this code snippet in the console As we have not observed foo value/logged. @Reporter: Could you please check the attached screencast and let us know if we missed anything form our end and if possible provide screencast/screenshot of expected behavior. Thanks..!
,
Dec 17
Hello. You see it right, 'foo' is not logged to the console. Firefox developers claim this is against the spec. So, according to them, 'foo' not being logged is a bug.
,
Dec 17
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Dec 17
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by phanindra.mandapaka@chromium.org
, Dec 15