Skip to content

PerformanceContainerTiming.toJSON() redefined - #30451

Merged
Elchi3 merged 1 commit into
mdn:mainfrom
hamishwillee:ff156_performancecontainertiming_tojson
Sep 8, 2026
Merged

Elchi3 merged 1 commit into
mdn:mainfrom
hamishwillee:ff156_performancecontainertiming_tojson

Conversation

@hamishwillee

@hamishwillee hamishwillee commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

FF156 adds support for PerformanceContainerTiming behind a pref. Most features were updated already, but omits toJSON() which has been defined on the object too.

This is not in the spec, but testing shows it is has been redefined on the object in FF (in devtools) and in the Chromium source code. This is non-standard because the redefinition is not indicated by the spec IDL. Claude tells me this is likely a spec ommission.
As such I have marked this as non-standard.

Note that the errors on the tagging predate my change.

Related docs work can be tracked in mdn/content#45428

@github-actions github-actions Bot added data:api Compatibility data for Web API features. https://developer.mozilla.org/docs/Web/API size:m Pull request changing 25-100 lines of code. labels Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@Elchi3 Elchi3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had the same topic in #30334.

@tunetheweb does the spec need fixing here?

@tunetheweb

Copy link
Copy Markdown
Contributor

Yup. And there's an open issue for that: w3c/container-timing#70

I've confirmed that both Chrome and Firefox have implemented the overridden method. I presumed they were just using the PerformanceEntry default when I added this to BCD since it wasn't in the spec so didn't add it then. Good spot @hamishwillee !

So yes this should be added to BCD as non-standard for now, until it's added to the spec.

FYI: @jasonwilliams

@Elchi3 Elchi3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks both! 👍

@Elchi3
Elchi3 merged commit 79223ff into mdn:main Sep 8, 2026
9 checks passed
@mdn-bot mdn-bot mentioned this pull request Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compatibility data for Web API features. https://developer.mozilla.org/docs/Web/API size:m Pull request changing 25-100 lines of code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants