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

chore(macros/AvailableinWorkers): add last 5 possible cases #11907

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

skyclouds2001
Copy link
Contributor

@skyclouds2001 skyclouds2001 commented Oct 3, 2024

Summary

Problem

the Performance.measureUserAgentSpecificMemory() is only expose to Window, SharedWorker and ServiceWorker (see https://wicg.github.io/performance-measure-memory/ and https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/timing/performance.idl;l=72?q=performance.idl), but currently the macros does not support this case

previously another case is just added, I think simply add all left cases together in one PR to avoid more edit to this macros in the future

see mdn/content#36060 (comment) for the research
total is 16 cases, 9 cases included yet, 2 cases omited (not handled by this macros), and this is 5 cases left here

these are window_and_worker_except_dedicated, worker_except_shared, worker_except_dedicated, window_and_shared, shared

previous work include: #11888, #10968, #10029 (#10009)

Also adjust cases order to make it more clear and organized.

zh-CN translation included yet, /cc @yin1999 @JasonLamv-t @jasonren0403

Solution

same as title


Screenshots

Before

None.

After

image


How did you test this change?

included the macro call with new arguments in a page locally and watch the develop preview and observe the terminal output

@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Oct 3, 2024
@skyclouds2001 skyclouds2001 changed the title chore(macros/AvailableinWorkers): add last 6 possible cases chore(macros/AvailableinWorkers): add last 5 possible cases Oct 3, 2024
@skyclouds2001 skyclouds2001 marked this pull request as ready for review October 3, 2024 23:27
@skyclouds2001 skyclouds2001 requested a review from a team as a code owner October 3, 2024 23:27
Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions for zh-CN translation:

kumascript/macros/AvailableInWorkers.ejs Outdated Show resolved Hide resolved
kumascript/macros/AvailableInWorkers.ejs Show resolved Hide resolved
Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the zh-CN translation 👍

Copy link
Contributor

github-actions bot commented Nov 6, 2024

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot added the merge conflicts 🚧 Please rebase onto or merge the latest main. label Nov 6, 2024
@github-actions github-actions bot removed the merge conflicts 🚧 Please rebase onto or merge the latest main. label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants