Bug 267533
| Summary: | Distinguish between Callback and Dict in IDL | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Keith Cirkel <webkit> |
| Component: | Platform | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | lwarlow, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Keith Cirkel
Currently the IDL generator does not correctly generate code that distinguished between Callbacks & Dicts.
Creating an IDL like `dictionary Foo {}; type (VoidCallback or Foo) MyUnion;` results in roughly `std::variant<VoidCallback, Foo>` but it will always hit the `Foo` variant when visited.
https://github.com/whatwg/webidl/pull/1353 has been merged so this should be rectified.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Luke Warlow
https://github.com/WebKit/WebKit/compare/lukewarlow:callback-dictionary-union the core of this change is implemented on this branch just needs tests.
Radar WebKit Bug Importer
<rdar://problem/121363562>