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

# WebContentProcess

A process that manages webpage content in an app extension.

```
struct WebContentProcess
```

## Overview

A browser app can launch multiple web content extension processes. Each instance of this structure represents a separate process.

## Topics

### Creating and invalidating extension processes

[`init(bundleIdentifier: String?, onInterruption: () -> Void) async throws`](/documentation/BrowserEngineKit/WebContentProcess/init(bundleIdentifier:onInterruption:))

Launches a web content process asynchronously.

[`func invalidate()`](/documentation/BrowserEngineKit/WebContentProcess/invalidate())

Stops the web content process.

### Creating XPC connections

[`func makeLibXPCConnection() throws -> xpc_connection_t`](/documentation/BrowserEngineKit/WebContentProcess/makeLibXPCConnection())

Creates a new XPC connection to the extension process.

### Coordinating processes

[`func grantCapability(ProcessCapability) throws -> ProcessCapability.Grant`](/documentation/BrowserEngineKit/WebContentProcess/grantCapability(_:))

Grants the specified capability to the process.

[`func grantCapability(ProcessCapability, invalidationHandler: () -> Void) throws -> ProcessCapability.Grant`](/documentation/BrowserEngineKit/WebContentProcess/grantCapability(_:invalidationHandler:))

Grants the specified capability to the process and observes an invalidation closure.

[`func createVisibilityPropagationInteraction() -> any UIInteraction`](/documentation/BrowserEngineKit/WebContentProcess/createVisibilityPropagationInteraction())

Returns an interaction that associates a view with the web content process.



---

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)