WebKit2.WebView::create

connect('create', function (webView, navigation_action: WebKit2.NavigationAction, ): Gtk.Widget);
  

Emitted when the creation of a new WebKit2.WebView is requested. If this signal is handled the signal handler should return the newly created WebKit2.WebView.

The WebKit2.NavigationAction parameter contains information about the navigation action that triggered this signal.

When using WebKit2.ProcessModel.multiple_secondary_processes process model, the new WebKit2.WebView should be related to @web_view to share the same web process, see WebKit2.WebView.prototype.new_with_related_view for more details.

The new WebKit2.WebView should not be displayed to the user until the WebKit2.WebView::ready-to-show signal is emitted.

webView

instance of WebKit2.WebView that is emitting the signal

navigation_action

a WebKit2.NavigationAction