New issue
Advanced search Search tips

Issue 915466 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

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
 
Labels: Needs-Triage-M71
Components: -Blink Blink>Animation
Labels: Hotlist-Interop
Cc: phanindra.mandapaka@chromium.org
Labels: Triaged-ET Needs-Feedback
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..!
915466.mp4
1.1 MB View Download
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.
Project Member

Comment 5 by sheriffbot@chromium.org, Dec 17

Labels: -Needs-Feedback
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
Labels: -Pri-2 Pri-3
Status: Available (was: Unconfirmed)

Sign in to add a comment