<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -",
    "macOS: 15.4.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebExtensionTab/reload(fromOrigin:for:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WKWebExtensionTab(im)reloadFromOrigin:forWebExtensionContext:completionHandler:"
  },
  "title" : "reload(fromOrigin:for:completionHandler:)"
}
-->

# reload(fromOrigin:for:completionHandler:)

Called to reload the current page in the tab.

```
optional func reload(fromOrigin: Bool, for context: WKWebExtensionContext, completionHandler: @escaping ((any Error)?) -> Void)
```

## Parameters

`fromOrigin`

A boolean value indicating whether to reload the tab from the origin, bypassing the cache.

`context`

The context in which the web extension is running.

`completionHandler`

A block that must be called upon completion. It takes a single error argument, which should be provided if any errors occurred.

## Discussion

Reloads the tab’s web view via [`reload()`](/documentation/WebKit/WKWebView/reload()) or [`reloadFromOrigin()`](/documentation/WebKit/WKWebView/reloadFromOrigin()) if not implemented.

---

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)