Bug 179720 - [GTK] Missing API method: new_with_context_and_content_manager()
Summary: [GTK] Missing API method: new_with_context_and_content_manager()
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-15 02:26 PST by Cédric Bellegarde
Modified: 2017-11-15 09:57 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cédric Bellegarde 2017-11-15 02:26:25 PST
WebKitGTK is missing a method to create a new webview with a defined context and a defined content manager.

Should be useful to implement something like: https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/
Comment 1 Carlos Garcia Campos 2017-11-15 03:32:57 PST
Well, it's not that is missing, it's that we can't add a new() method for every combination of the construct properties. You should use g_object_new() to create a web view with a context and a content manager.
Comment 2 Cédric Bellegarde 2017-11-15 05:57:55 PST
Not sure to understand, WebKit2.WebView.new() documentation say:
- that it uses the defautl context
- that it uses no content manager
Comment 3 Michael Catanzaro 2017-11-15 09:57:38 PST
You need to use g_object_new directly: whatever the equivalent of that in PyGObject is. That way, you can set an arbitrary number of construct properties.