<!--
{
  "availability" : [
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SafariServices",
  "identifier" : "/documentation/SafariServices/SFSafariPage",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Safari Services"
    ],
    "preciseIdentifier" : "c:objc(cs)SFSafariPage"
  },
  "title" : "SFSafariPage"
}
-->

# SFSafariPage

A proxy for a Safari webpage.

```
class SFSafariPage
```

## Overview

Use an `SFSafariPage` object in your Safari app extension to send messages to injected content scripts, access page properties, and reload the page.

## Topics

### Messaging Injected Scripts

[`-  dispatchMessageToScriptWithName:userInfo:`](/documentation/SafariServices/SFSafariPage/dispatchMessageToScript(withName:userInfo:))

Dispatches a message from the app extension to the content script injected in this page.

### Getting Page Information

[`-  getPagePropertiesWithCompletionHandler:`](/documentation/SafariServices/SFSafariPage/getPropertiesWithCompletionHandler(_:))

Retrieves the properties of the webpage.

### Reloading the Page

[`-  reload`](/documentation/SafariServices/SFSafariPage/reload())

Tells Safari to reload the webpage.

### Instance Methods

[`-  getContainingTabWithCompletionHandler:`](/documentation/SafariServices/SFSafariPage/getContainingTab(completionHandler:))

[`-  getScreenshotOfVisibleAreaWithCompletionHandler:`](/documentation/SafariServices/SFSafariPage/getScreenshotOfVisibleArea(completionHandler:))

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)