Closed
Bug 823088
Opened 12 years ago
Closed 12 years ago
Add a static assertion that bindings with descriptor.nativeOwnership == 'nsisupports' inherit from nsISupports
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.27 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
I noticed that we'd happily build when you make a class not inherit from nsISupports without updating the nativeOwnership. This adds static assertions in the code that reinterpret_casts to nsISupports*.
Attachment #693912 -
Flags: review?(peterv)
Comment 1•12 years ago
|
||
Comment on attachment 693912 [details] [diff] [review]
Patch v1
r=me
Attachment #693912 -
Flags: review?(peterv) → review+
Assignee | ||
Comment 2•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•