invalidate()
Stops the web content process.
Declaration
func invalidate()Discussion
The system halts the web content process for your browser app when you call this function. In platform versions earlier than iOS 18, the system marks the web content process as no longer in use, and might stop it at a later time to free its resources. The system doesn’t call the interruption handler that you passed when you launched the extension.
After you call this method, other method calls on the web content process throw errors.