diff --git a/README.md b/README.md index fce843f..5b99903 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,9 @@ window.addEventListener('load', collectAndSendTrace); ## Markers Extensions -See [markers](markers.md) for detailed description of the proposal. +The API supports optional markers that identify browser activity during sampling. Markers are conditionally exposed based on security context - all markers are available in cross-origin isolated contexts, while only safe markers (`style`, `layout`) are available in regular contexts. + +See [markers](markers.md) for detailed description of the proposal and [Conditional Markers Exposure](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/ConditionalMarkersExposure/explainer.md) for technical implementation details. ## Privacy and Security diff --git a/index.html b/index.html index 8c82897..8ea30bd 100644 --- a/index.html +++ b/index.html @@ -303,17 +303,23 @@
+ enum ProfilerMarker { "script", "gc", "style", "layout", "paint", "other" };
+
dictionary ProfilerSample {
required DOMHighResTimeStamp timestamp;
unsigned long long stackId;
+ ProfilerMarker? marker;
};
timestamp MUST return the value it was initialized to.
stackId MUST return the value it was initialized to.
+marker MUST return the value it was initialized to, if present. The availability of markers depends on the context's cross-origin isolation status.
+
+ In cross-origin isolated contexts, all marker types are available. In non-isolated contexts, only style and layout markers are exposed for security reasons.
+