Closed Bug 1874665 Opened 1 year ago Closed 1 year ago

Distinguish between Callback and Dict in IDL

Categories

(Core :: DOM: Bindings (WebIDL), enhancement)

Firefox 121
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: nobody → mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
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

Backed out for causing linting opt failures.

Flags: needinfo?(mozilla)

Ack. I'll keep working on it.

Flags: needinfo?(mozilla)

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
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
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: