Specifies a process model for WebViews.
Specifies a process model for WebViews, which WebKit will use to determine how auxiliary processes are handled.
webkit_process_model_multiple_secondary_processes will use one process per view most of the time, while still allowing for web views to share a process when needed (for example when different views interact with each other). Using this model, when a process hangs or crashes, only the WebViews using it stop working, while the rest of the WebViews in the application will still function normally.
webkit_process_model_shared_secondary_process is deprecated since 2.26, using it has no effect for security reasons.
This method **must be called before any web process has been created**, as early as possible in your application. Calling it later will make your application crash.
this |
the WebContext |
process_model |