[Webkit-unassigned] [Bug 22624] [SOUP][GTK] Need API to get SoupSession from WebKit.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 12 17:51:09 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=22624
------- Comment #8 from xan.lopez at gmail.com 2009-01-12 17:51 PDT -------
Some points from a discussion on IRC between Christian, Gustavo and me:
It seems to us the following API should be enough to cover all use cases for
global an per-view soup sessions.
- SoupSession* webkit_get_global_session()
Returns the global session used by all views by default.
- SoupSession* webkit_web_view_get_session (WebKitWebView *view)
Returns a private soup session for the view, created on demand the first time
it's requested. The view will use that session from now on.
- void webkit_web_view_set_session (WebKitWebView *view, SoupSession *session)
Makes view use the given session from now on. Useful for: reset views to use
the global session, create groups of "private" views all using the same session
different from the global one.
The documentation should probably mention that creating sessions from scratch
and setting them on views shouldn't be done unless you really know what you are
doing. It should also probably say all WebKit-GTK soup sessions have to be
async (and _set_session should check the type of the session given to make sure
of this).
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list