Bug 244909
Summary: | toJSON() in IDL doesn't serialize attributes from child interfaces | ||
---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> |
Component: | Bindings | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Minor | CC: | ashvayka, bfulgham, cdumez, sam, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | https://webidl.spec.whatwg.org/#es-default-tojson |
Chris Dumez
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Shvayka
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.
Radar WebKit Bug Importer
<rdar://problem/99937603>