Bug 179720
| Summary: | [GTK] Missing API method: new_with_context_and_content_manager() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Cédric Bellegarde <cedric.bellegarde> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | bugs-noreply, cgarcia, mcatanzaro |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Cédric Bellegarde
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Carlos Garcia Campos
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
Not sure to understand, WebKit2.WebView.new() documentation say:
- that it uses the defautl context
- that it uses no content manager
Michael Catanzaro
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.