Contents

goBack(for:completionHandler:)

Called to navigate the tab to the previous page in its history.

Declaration

optional func goBack(for context: WKWebExtensionContext, completionHandler: @escaping ((any Error)?) -> Void)
optional func goBack(for context: WKWebExtensionContext) async throws

Parameters

  • 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

Navigates to the previous page in the tab’s web view via goBack() if not implemented.