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 1 commit 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)

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)

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
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.

1 participant