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.
Properties
application
The Safari application.
readonly attribute SafariApplication application
Availability
- Available in Safari 5.0 and later.
extension
The current Safari extension.
readonly attribute SafariExtension extension
Availability
- Available in Safari 5.0 and later.
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
- Available in Safari 5.0 and later.
© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-06-30)