SafariNamespace Class Reference

Technology area
Safari Extensions
Availability
Available in Safari 5.0 and later.

Overview

The SafariNamespace class is a namespace that provides access to the Safari Extensions functionality outside of the web content area.

The corresponding class, SafariContentNamespace, is used from inside a web content area.

Tasks

Accessing Functionality

Properties

application

The Safari application.

readonly attribute SafariApplication application
Availability

extension

The current Safari extension.

readonly attribute SafariExtension extension
Availability

self

The SafariExtensionGlobalPage or SafariExtensionBar object that owns the DOM window that this instance of the SafariNamespace class was accessed from.

readonly attribute any self
Discussion

For example, the following is always true:

window.safari.self.contentWindow === window;
Availability