Closed
Bug 1874665
Opened 1 year ago
Closed 1 year ago
Distinguish between Callback and Dict in IDL
Categories
(Core :: DOM: Bindings (WebIDL), enhancement)
Tracking
()
RESOLVED
FIXED
125 Branch
| Tracking | Status | |
|---|---|---|
| firefox125 | --- | fixed |
People
(Reporter: keithamus, Assigned: keithamus)
Details
Attachments
(1 file)
Steps to reproduce:
Creating an IDL like dictionary Foo {}; type (VoidCallback or Foo) MyUnion; results in a compile error.
WebIDL.WebIDLError: error: Flat member types of a union should be distinguishable, VoidCallback is not distinguishable from Foo (Wrapper)
However https://github.com/whatwg/webidl/pull/1353 has now been merged, and the WebIDL generator should be updated to allow this.
| Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Updated•1 year ago
|
Attachment #9372987 -
Attachment description: Bug 1874665 - Distinguish between Callback & Dict in WebIDL. r=smaug → Bug 1874665 - Distinguish between Callback & Dict in WebIDL. r=peterv
Pushed by mozilla@keithcirkel.co.uk:
https://hg.mozilla.org/integration/autoland/rev/6ba32a1a0cb7
Distinguish between Callback & Dict in WebIDL. r=peterv
Comment 3•1 year ago
|
||
Backed out for causing linting opt failures.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | Should throw for 'CallbackInterface' and '(long or Callback)' because they are not distinguishable
Flags: needinfo?(mozilla)
Comment 5•1 year ago
|
||
This report appears to appertain to the (Core) DOM: HTML component as most of the IDL bugs. Please assign a better component if incorrect.
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Updated•1 year ago
|
Component: DOM: Core & HTML → DOM: Bindings (WebIDL)
Pushed by mozilla@keithcirkel.co.uk:
https://hg.mozilla.org/integration/autoland/rev/e2c10e4e66fa
Distinguish between Callback & Dict in WebIDL. r=peterv
Comment 7•1 year ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox125:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Comment 8•1 year ago
|
||
| bugherder | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•