WebKit2.WebView.new_with_user_content_manager

function new_with_user_content_manager(user_content_manager: WebKit2.UserContentManager): Gtk.Widget {
    // Gjs wrapper for webkit_web_view_new_with_user_content_manager()
}
  

Creates a new WebKit2.WebView with the given WebKit2.UserContentManager. The content loaded in the view may be affected by the content injected in the view by the user content manager.

Since 2.6

user_content_manager

a WebKit2.UserContentManager.

Returns

The newly created WebKit2.WebView widget