WebView.with_related_view


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( since = "2.4" ) ]
public WebView.with_related_view (WebView web_view)

Creates a new WebView sharing the same web process with web_view.

This method doesn't have any effect when webkit_process_model_shared_secondary_process process model is used, because a single web process is shared for all the web views in the same WebContext . When using webkit_process_model_multiple_secondary_processes process model, this method should always be used when creating the WebView in the create signal. You can also use this method to implement other process models based on webkit_process_model_multiple_secondary_processes, like for example, sharing the same web process for all the views in the same security domain.

The newly created WebView will also have the same UserContentManager, Settings, and WebsitePolicies as web_view.

Parameters:

web_view

the related WebView

Returns:

The newly created WebView widget




2022 vala-language.org