Closed
Bug 818263
Opened 13 years ago
Closed 13 years ago
Make EventTarget binding work reliably for nodes
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
10.04 KB,
patch
|
smaug
:
review+
peterv
:
review+
|
Details | Diff | Splinter Review |
In particular, nsINode does not inherit from nsDOMEventTargetHelper. It sort of works out right this second because they have identical vtable layouts for the parts that matter, but relying on that is chancy.
![]() |
Assignee | |
Comment 1•13 years ago
|
||
Attachment #688480 -
Flags: review?(peterv)
Attachment #688480 -
Flags: review?(bugs)
![]() |
Assignee | |
Comment 2•13 years ago
|
||
Peter, is the castability bit at all right? Or do I need to also implement QueryInterface on EventTarget?
Whiteboard: [need review]
Comment 3•13 years ago
|
||
Comment on attachment 688480 [details] [diff] [review]
Make the EventTarget binding work for nodes.
> #undef DOMCI_CASTABLE_INTERFACE
> #define DOMCI_CASTABLE_INTERFACES(_extra) \
> DOMCI_CASTABLE_INTERFACE(nsINode, nsINode, 0, _extra) \
> DOMCI_CASTABLE_NODECL_INTERFACE(mozilla::dom::Element, mozilla::dom::Element,\
> 1, _extra) \
>+/* If this is ever removed, the IID for EventTarget can to go away */ \
>+DOMCI_CASTABLE_NODECL_INTERFACE(mozilla::dom::EventTarget, \
>+ mozilla::dom::EventTarget, 2, _extra) \
'can to go'?
> 'EventTarget': [
> {
>- 'nativeType': 'nsDOMEventTargetHelper',
> 'hasInstanceInterface': 'nsIDOMEventTarget',
>+ 'hasXPConnectImpls': True,
> 'concrete': False,
>- 'prefable': True,
> },
I'm not familiar with this stuff
Attachment #688480 -
Flags: review?(bugs) → review+
![]() |
Assignee | |
Comment 4•13 years ago
|
||
> 'can to go'?
Should be just "can go". ;) I'll fix.
> I'm not familiar with this stuff
Yeah, Peter can handle that end of it.
![]() |
Assignee | |
Comment 5•13 years ago
|
||
Try run looks ok.
Updated•13 years ago
|
Attachment #688480 -
Flags: review?(peterv) → review+
![]() |
Assignee | |
Comment 6•13 years ago
|
||
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla20
![]() |
||
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•