Create an interface for <xul:deck> and implement it in XBL.




10 years ago
10 years ago


(Reporter: jakesays, Unassigned)


Firefox Tracking Flags

(Not tracked)



(2 attachments)



10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)
Build Identifier: 1.9.1b3

Since <deck> elements are implemented in XBL, there is no easy way to manipulate an instance from C++ (to change the selected child, for instance). Having the XBL binding implement a standard xpcom interface would provide a convenient way to manipulate the element from C++.

What I propose is the creation of an nsIDOMXULDeckElement interface and corresponding .idl file, and modification to the deck binding in general.xml to implement it.

I have attached an idl file and a patch for the XBL. I am currently using this method to manipulate a <deck>, and it seems to work fine.

Reproducible: Always

Comment 1

10 years ago
Created attachment 370471 [details] [diff] [review]
Patches the <deck> xbl binding to implement nsIDOMXULDeckElement

Comment 2

10 years ago
Created attachment 370472 [details]
Definition of nsIDOMXULDecElement

Comment 3

10 years ago
If you want somebody to have a look at your patch, you'll have to set its review flag to a Toolkit peer such as Neil Deakin (see <>).

It'd also help if you could post both changes in the same patch (just hg add the IDL before diff'ing).
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.