WebKit2.WebView.new_with_context

function new_with_context(context: WebKit2.WebContext): Gtk.Widget {
    // Gjs wrapper for webkit_web_view_new_with_context()
}
  

Creates a new WebKit2.WebView with the given WebKit2.WebContext and no WebKit2.UserContentManager associated with it. See also WebKit2.WebView.new_with_user_content_manager and WebKit2.WebView.new_with_settings.

context

the WebKit2.WebContext to be used by the WebKit2.WebView

Returns

The newly created WebKit2.WebView widget