Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance.memory is incorrectly marked as available in Web Workers #36402

Closed
Le0Developer opened this issue Oct 18, 2024 · 4 comments · Fixed by #36405
Closed

performance.memory is incorrectly marked as available in Web Workers #36402

Le0Developer opened this issue Oct 18, 2024 · 4 comments · Fixed by #36405
Labels
Content:WebAPI Web API docs

Comments

@Le0Developer
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Performance/memory

What specific section or headline is this issue about?

"Note: This feature is available in Web Workers."

What information was incorrect, unhelpful, or incomplete?

#36181 incorrectly marked performance.memory as being available in Web Workers – it isn't.

What did you expect to see?

No "Note: This feature is available in Web Workers" alert.

Do you have any supporting links, references, or citations?

  1. Run new Worker("data:text/javascript," + encodeURIComponent("console.log(performance.memory)")) in your console
  2. Observe undefined being logged

Do you have anything more you want to share?

No response

@Le0Developer Le0Developer added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Oct 18, 2024
@github-actions github-actions bot added the Content:WebAPI Web API docs label Oct 18, 2024
@Josh-Cena
Copy link
Member

@skyclouds2001 FYI

@Josh-Cena Josh-Cena removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Oct 18, 2024
@skyclouds2001
Copy link
Contributor

skyclouds2001 commented Oct 18, 2024

per BCD, this feature is not standard and only supported in chromium-based browsers

as for my test using https://worker-playground.glitch.me/ also indicate this feature is only available in window scope

also confirmed in chromium source code

@Josh-Cena
Copy link
Member

I think you mean "only available on window"? The IDL in Chromium also says it's only exposed on window.

@skyclouds2001
Copy link
Contributor

I think you mean "only available on window"? The IDL in Chromium also says it's only exposed on window.

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants