WebKit2.WebView.new

function new(): Gtk.Widget {
    // Gjs wrapper for webkit_web_view_new()
}
  

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

Returns

The newly created WebKit2.WebView widget