RESOLVED INVALID179720
[GTK] Missing API method: new_with_context_and_content_manager()
https://bugs.webkit.org/show_bug.cgi?id=179720
Summary [GTK] Missing API method: new_with_context_and_content_manager()
Cédric Bellegarde
Reported 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/
Attachments
Carlos Garcia Campos
Comment 1 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.
Cédric Bellegarde
Comment 2 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
Michael Catanzaro
Comment 3 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.
Note You need to log in before you can comment on or make changes to this bug.