<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macOS: 14.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/WebContentExtension",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "s:16BrowserEngineKit19WebContentExtensionP"
  },
  "title" : "WebContentExtension"
}
-->

# WebContentExtension

A protocol for an app extension that manages web content for your browser app.

```
protocol WebContentExtension : RestrictedSandboxAppliable, AppExtension
```

## Overview

When you add an object that conforms to this protocol in your extension’s Xcode target, annotate the conforming object with `@main` to indicate to the framework that this object is the entry point for your extension.

## Topics

### Handling incoming XPC connections

[`func handle(xpcConnection: xpc_connection_t)`](/documentation/BrowserEngineKit/WebContentExtension/handle(xpcConnection:))

Accepts or rejects an incoming XPC connection.

## Relationships

### Inherits From

[`RestrictedSandboxAppliable`](/documentation/BrowserEngineKit/RestrictedSandboxAppliable)

[`AppExtension`](/documentation/ExtensionFoundation/AppExtension)

---

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)