Skip to content

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

2 participants