Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

requestAnimationFrame is also available in Dedicated Workers #3749

Closed
1 of 3 tasks
chrisdavidmills opened this issue Oct 5, 2020 · 1 comment
Closed
1 of 3 tasks
Labels
1 hour task Slightly more involved issue; might take an hour or possibly two. Content:WebAPI For content triage purposes: This is related to WebAPI content

Comments

@chrisdavidmills
Copy link
Contributor

@Kaiido commented on Mon Oct 05 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).

@chrisdavidmills chrisdavidmills added Content:WebAPI For content triage purposes: This is related to WebAPI content 1 hour task Slightly more involved issue; might take an hour or possibly two. labels Oct 5, 2020
@chrisdavidmills
Copy link
Contributor Author

Issue moved to mdn/content #1519 via ZenHub

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 hour task Slightly more involved issue; might take an hour or possibly two. Content:WebAPI For content triage purposes: This is related to WebAPI content
Projects
Development

No branches or pull requests

1 participant