Closed
Bug 932409
Opened 11 years ago
Closed 11 years ago
Bindings.conf should explain what it means when an entry is a list
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 932505
People
(Reporter: mccr8, Unassigned)
References
(Blocks 1 open bug)
Details
Apparently if the entry for an interface is a list, then the first element is for the main thread, and the second is for workers.
Reporter | ||
Comment 1•11 years ago
|
||
I'll have to dig around in the code that does this a bit, but it seems to me that if in these lists the second element is implicitly workers-only, we should just make it implicitly set workers=True, rather than having to add that to the Bindings.conf, in the spirit of minimality. Of course, we'd have to update the documentation for "workers" for that change.
Reporter | ||
Comment 2•11 years ago
|
||
I looked at the code a bit, and the actual bindings generation code does not really correspond to the description in comment 0. What happens is, if you have a list, just generate everything in the list no matter what. The one exception seems to be that if the list has a single item in it, and it has 'workers'=True, then automatically add an additional empty bindings conf thing, so we get a main thread binding thing, too. If you have a list with a single dictionary in it, like [{whatever}], that's exactly the same as {whatever}, as long as you don't define 'workers'=True, which seems somewhat silly. DelayNode, ImageData, and PannerNode all do that. More troublingly, it is okay to have bogus things like: 'Event': [{'nativeType': 'nsDOMEvent',}, {'nativeType': 'nsDOMEvent',}, {'nativeType': 'nsDOMEvent',}] and it will just generate bogus C++ code, because we end up defining the same enum multiple times. I'll file a separate bug on adding a little bit of sanity checking for Bindings.conf.
Reporter | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•