Closed Bug 799465 Opened 12 years ago Closed 12 years ago

Add complete support for non-nsISupports objects in new DOM bindings

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: peterv, Assigned: peterv)

Details

Attachments

(3 files)

Two things still assume that the native is an nsISupports: parent wrapping and anything related to the CC (traversal of the binding and wrapper preservation).
Attachment #669520 - Flags: review?(bzbarsky)
Attachment #669521 - Flags: review?(bzbarsky)
This was my testcase for the other two patches.
Attachment #669522 - Flags: review?(ehsan)
Comment on attachment 669522 [details] [diff] [review] Make AudioBuffer not inherit from nsISupports v1 Review of attachment 669522 [details] [diff] [review]: ----------------------------------------------------------------- Yay!
Attachment #669522 - Flags: review?(ehsan) → review+
Can I do this for the rest of the web audio objects as well?
Sure, if they only have nsISupports to deal with CC it'd be good to do that. If you run into any trouble let us know, but it should work with these patches.
(In reply to comment #6) > Sure, if they only have nsISupports to deal with CC it'd be good to do that. If > you run into any trouble let us know, but it should work with these patches. OK will do. (I'll wait for this to land first)
Comment on attachment 669520 [details] [diff] [review] Fix CC traversal and wrapper preservation v1 r=me assuming NoteNativeRoot is the right thing to call there at the end.
Attachment #669520 - Flags: review?(bzbarsky) → review+
Comment on attachment 669521 [details] [diff] [review] Allow non-nsISupports object to be parents v1 >+inline T >+GetParentPointer(T aObject) I would prefer that as: inline T* GetParentPointer(T* aObject) so we definitely get useful compile failures if a type that's not a pointer and not a ParentObject is passed to GetParentPointer. r=me with that. Very nice!
Attachment #669521 - Flags: review?(bzbarsky) → review+
Target Milestone: --- → mozilla19
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: