Closed
Bug 836850
Opened 11 years ago
Closed 11 years ago
Make it possible to implement several WebIDL interfaces using the same native class
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: ehsan.akhgari, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
23.62 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
Currently this seems to be impossible due to the PrototypeIdMap, and it looks like that's Ben's fault. ;-) You can see the resulting ugliness in my upcoming patch to bug 836599.
Updated•11 years ago
|
Blocks: ParisBindings
Assignee | ||
Comment 1•11 years ago
|
||
So turns out we had code that tried to make this work... it was just buggy. Patch coming up.
Assignee: nobody → bzbarsky
Whiteboard: [need review]
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #711379 -
Flags: review?(peterv)
Comment 3•11 years ago
|
||
Comment on attachment 711379 [details] [diff] [review] Patch and use of the new ability for sharedlist Review of attachment 711379 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/bindings/Configuration.py @@ +60,3 @@ > otherDescriptors = [d for d in self.descriptors > + if d.nativeType == nativeType] > + descriptor.unsharedImplementation = len(otherDescriptors) == 1 Maybe: any(d.nativeType == descriptor.nativeType and d != descriptor for d in self.descriptors)?
Attachment #711379 -
Flags: review?(peterv) → review+
Assignee | ||
Comment 4•11 years ago
|
||
> Maybe:
I'd need a negation of that, so I wrote it like so:
descriptor.unsharedImplementation = all(
d.nativeType != descriptor.nativeType or d == descriptor
for d in self.descriptors)
Assignee | ||
Comment 5•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/d32064860f36
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla21
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d32064860f36
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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
•