Instance Property

toolbarItems

All of the toolbar items of an extension.

Declaration

readonly attribute array toolbarItems;

Discussion

If there are no SafariExtensionToolbarItem instances, this is an empty array.

If multiple windows are open, there might be duplicate toolbar items in the array. Each toolbar item is indexed for every instance of SafariBrowserWindow it appears in. When updating a toolbar item, you should update it in every window.

See Also

Working with Extensions

bars

All of the bars provided by the target extension.

baseURI

The URI that corresponds to the root of the extension’s bundle.

globalPage

The extension’s global page, or null if the extension doesn’t have a global page.