~ubuntu-branches/ubuntu/trusty/gnome-online-accounts/trusty-proposed

« back to all changes in this revision

Viewing changes to src/goabackend/goawebview.c

  • Committer: Package Import Robot
  • Author(s): Sjoerd Simons
  • Date: 2013-11-02 22:07:53 UTC
  • mfrom: (0.3.10 experimental)
  • Revision ID: package-import@ubuntu.com-20131102220753-60wagxyx27bhr7rl
Tags: 3.10.0-2
Drop debian version from breaks

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
                              "AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile",
338
338
                NULL);
339
339
}
 
340
 
 
341
void
 
342
goa_web_view_add_cookies (GoaWebView *self,
 
343
                          GSList     *cookies)
 
344
{
 
345
  SoupCookieJar *cookie_jar;
 
346
  SoupSession *session;
 
347
  GSList *l;
 
348
 
 
349
  session = webkit_get_default_session ();
 
350
  cookie_jar = SOUP_COOKIE_JAR (soup_session_get_feature (session, SOUP_TYPE_COOKIE_JAR));
 
351
 
 
352
  for (l = cookies; l != NULL; l = l->next)
 
353
    {
 
354
      SoupCookie *cookie = l->data;
 
355
      soup_cookie_jar_add_cookie (cookie_jar, soup_cookie_copy (cookie));
 
356
    }
 
357
}