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

Remove globals from Web/API #33019

Open
9 of 21 tasks
wbamberg opened this issue Apr 9, 2024 · 0 comments
Open
9 of 21 tasks

Remove globals from Web/API #33019

wbamberg opened this issue Apr 9, 2024 · 0 comments
Labels
Content:Meta Content in the meta docs Content:WebAPI Web API docs MDN:Project Anything related to larger core projects on MDN

Comments

@wbamberg
Copy link
Collaborator

wbamberg commented Apr 9, 2024

This issue is to remove "globals" from Web/API, by instead having separate pages under Window and WorkerGlobalScope. This was discussed in https://github.com/orgs/mdn/discussions/360.

This has been done for indexedDB (#32040) and looks all right (https://github.com/orgs/mdn/discussions/360#discussioncomment-9023867), so let's do it for all the remaining pages.

For each page, the process is:

  • yarn content move the global page to be under Window.
  • update the page under Window to be an instance property or method page, and update the content accordingly
  • create a new version of the page as an instance property or method page under WorkerGlobalScope, that's worker-specific
  • manually delete the redirect from Web/API/WorkerGlobalScope/indexedDB to Web/API/indexedDB
  • fix any domxref links so they don't incur redirects
  • update GroupData, adding entries for the two new pages into the entry for the API that defines the feature (e.g. Indexed DB API).

Once all pages are fixed, the final step in this issue is to remove the web-api-global-function and web-api-global-property page types.

  • Remove global page types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Meta Content in the meta docs Content:WebAPI Web API docs MDN:Project Anything related to larger core projects on MDN
Projects
None yet
Development

No branches or pull requests

2 participants