Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

requestAnimationFrame is also available in Dedicated Workers #7543

Closed
1 of 3 tasks
Kaiido opened this issue Oct 5, 2020 · 1 comment
Closed
1 of 3 tasks

requestAnimationFrame is also available in Dedicated Workers #7543

Kaiido opened this issue Oct 5, 2020 · 1 comment
Assignees
Labels
meta: content Content Team issue, should be moved over to Sprints repo.

Comments

@Kaiido
Copy link

Kaiido commented Oct 5, 2020

Content Issue

  • Please close this issue, I accidentally submitted it without adding any details
  • New documentation
  • Correction or update

URLs of page you are seeing the problem on:

Details

requestAnimationFrame and cancelAnimationFrame used to be Window only methods, but it has recently been added to DedicatedWorkerGlobalScope too. https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animationframeprovider

interface mixin AnimationFrameProvider {
  unsigned long requestAnimationFrame(FrameRequestCallback callback);
  undefined cancelAnimationFrame(unsigned long handle);
};
Window includes AnimationFrameProvider;
DedicatedWorkerGlobalScope includes AnimationFrameProvider;

I guess the page should now be Web/API/WindowOrWorkerGlobalScope/requestAnimationFrame, but I fear this would break any link to the current /Web/API/window/requestAnimationFrame. So I'm not sure how it should get handled.

Also, compat-data should probably be updated (currently these methods are supported in Blink only).

@Kaiido Kaiido added the meta: content Content Team issue, should be moved over to Sprints repo. label Oct 5, 2020
@chrisdavidmills
Copy link
Contributor

Issue moved to mdn/sprints #3749 via ZenHub

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
meta: content Content Team issue, should be moved over to Sprints repo.
Projects
None yet
Development

No branches or pull requests

2 participants