Skip to content

feat: Add conditional marker exposure based on cross-origin isolation #85

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HeathcliffAC
Copy link

@HeathcliffAC HeathcliffAC commented Jun 18, 2025

feat: Add conditional marker exposure based on cross-origin isolation

Enable selective marker disclosure based on security context:

  • COI contexts: all markers (gc, script, paint, layout, style, other)
  • Regular contexts: safe markers only (layout, style)

This allows access to layout/style timing (already available via DOM APIs)
in regular contexts while protecting sensitive timing information.

Maintains full backward compatibility with existing API surface.


Preview | Diff

@HeathcliffAC
Copy link
Author

@arturjanc @ArthurSonzogni I am trying to do a modification on the JS Self Profiler API. Could you help me with any feedback that you could provide?

@ArthurSonzogni
Copy link

Thanks! Looping in +@camillelamy as I’m currently on paternity leave and won’t be able to reply confidently immediately from what I recall. This feature dates back to ~4 years ago: here is the previous discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants