The following interface is not scriptable and MUST NEVER BE MADE scriptable. Native treeselections implement it, and we use this to check whether a treeselection is native (and therefore suitable for use by untrusted content).