I'm not finding what's the type of this "xpcomInterface", and there's no documentation of any class with this name. Any idea?
This snippet is from Mozilla's website:
var next = elements.item(i+1);
var xpcomInterface = scroll.boxObject.QueryInterface(
Components.interfaces.nsIScrollBoxObject);
xpcomInterface.ensureElementIsVisible(elements);
--update
I found boxObject that leads to nslBoxObject, but it have no reference to any QueryInterface
as used above. There's also references to xulplanet.com which is no more there.