Resource Timing Buffer/Secondary Buffer properties have vague location
Open
@yoavweiss is already working on this.
Since May 9, 2025.
- Dominant language
- Bikeshed
- Stars
- 135
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
https://w3c.github.io/resource-timing/#sec-extensions-performance-interface says "Each ECMAScript global environment has ..." followed by a bunch of buffer and integer properties.
- A resource timing buffer size limit which should initially be 250 or greater.
- A resource timing buffer current size which is initially 0.
- A resource timing buffer full event pending flag which is initially false.
- A resource timing secondary buffer current size which is initially 0.
- A resource timing secondary buffer to store PerformanceResourceTiming objects that is initially empty.
The statement "ECMAScript global environment" links to https://webidl.spec.whatwg.org/#es-environment, which is not nearly specific enough for an implementation to decide where to place the properties.
I would expect them to be defined as existing on one of:
- Every WindowOrWorkerGlobalScope instance
- Every HTML Environment Settings Object
- Certain categories of ESOs
- Each Agent
- Each Agent Cluster
- One instance for the User Agent itself (still vague, but better vague)
What entity is supposed to own these buffers? cc @noamr
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.