Bug 244909 - toJSON() in IDL doesn't serialize attributes from child interfaces
Summary: toJSON() in IDL doesn't serialize attributes from child interfaces
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Minor
Assignee: Nobody
URL: https://webidl.spec.whatwg.org/#es-de...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-07 14:57 PDT by Chris Dumez
Modified: 2022-09-14 14:58 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2022-09-07 14:57:08 PDT
toJSON() in IDL doesn't serialize attributes from child interfaces but should:
- https://webidl.spec.whatwg.org/#es-default-tojson

This is causing issues with ReportBody / CSPViolationReportBody / TestReportBody.
Comment 1 Alexey Shvayka 2022-09-08 11:27:00 PDT
Example: ReportBody's toJSON(), when marked as [Default] as per spec, when called on CSPViolationReportBody should return the same result as CSPViolationReportBody's toJSON(), with all the CSP values.

However, since CSPViolationReportBody and other subclasses now have own toJSON() methods (https://github.com/w3c/webappsec-csp/issues/546), this issue isn't the high priority to fix.
Comment 2 Radar WebKit Bug Importer 2022-09-14 14:58:17 PDT
<rdar://problem/99937603>