Interface nsIDocShellTreeItemType

The nsIDocShellTreeItem supplies the methods that are required of any item that wishes to be able to live within the docshell tree either as a middle node or a leaf.

Hierarchy

Properties

browsingContext: BrowsingContext

BrowsingContext associated with the DocShell.

childCount: number

The current number of DocShells which are immediate children of the this object.

@deprecated: Prefer using BrowsingContext::Children(), as this count will not include out-of-process iframes.

domWindow: mozIDOMWindowProxy

Returns the DOM outer window for the content viewer.

itemType: number

The type this item is.

name: string

name of the DocShellTreeItem

parent: nsIDocShellTreeItem

Parent DocShell.

@deprecated: Use BrowsingContext::GetParent() instead. (NOTE: BrowsingContext::GetParent() will not cross isolation boundaries)

rootTreeItem: nsIDocShellTreeItem

Returns the root DocShellTreeItem. This is a convience equivalent to getting the parent and its parent until there isn't a parent.

@deprecated: Use BrowsingContext::Top() instead. (NOTE: BrowsingContext::Top() will not cross isolation boundaries)

sameTypeParent: nsIDocShellTreeItem

This getter returns the same thing parent does however if the parent is of a different itemType, or if the parent is an