Compat: Support new nsITreeView interface

See: https://bugzilla.mozilla.org/show_bug.cgi?id=407956