aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2007-05-20 00:45:55 +0800
committerChristian Persch <chpe@src.gnome.org>2007-05-20 00:45:55 +0800
commit342e11049b4fe3a550ca62e1b9569e99e818cc4d (patch)
tree95f57c8c52cb94f9b72be3583cffa3e3ab77723e /embed
parent7e5baa77b9fd26b348b158bf9785d8b19b325fa3 (diff)
downloadgsoc2013-epiphany-342e11049b4fe3a550ca62e1b9569e99e818cc4d.tar
gsoc2013-epiphany-342e11049b4fe3a550ca62e1b9569e99e818cc4d.tar.gz
gsoc2013-epiphany-342e11049b4fe3a550ca62e1b9569e99e818cc4d.tar.bz2
gsoc2013-epiphany-342e11049b4fe3a550ca62e1b9569e99e818cc4d.tar.lz
gsoc2013-epiphany-342e11049b4fe3a550ca62e1b9569e99e818cc4d.tar.xz
gsoc2013-epiphany-342e11049b4fe3a550ca62e1b9569e99e818cc4d.tar.zst
gsoc2013-epiphany-342e11049b4fe3a550ca62e1b9569e99e818cc4d.zip
Store http-only flag too.
2007-05-19 Christian Persch <chpe@gnome.org> * embed/ephy-cookie-manager.h: * embed/mozilla/EphySingle.cpp: Store http-only flag too. svn path=/trunk/; revision=7035
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-cookie-manager.h1
-rw-r--r--embed/mozilla/EphySingle.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/embed/ephy-cookie-manager.h b/embed/ephy-cookie-manager.h
index 88463808b..bc8069ed3 100644
--- a/embed/ephy-cookie-manager.h
+++ b/embed/ephy-cookie-manager.h
@@ -50,6 +50,7 @@ typedef struct
glong real_expires;
guint is_secure : 1;
guint is_session : 1;
+ guint is_http_only : 1;
} EphyCookie;
struct _EphyCookieManagerIface
diff --git a/embed/mozilla/EphySingle.cpp b/embed/mozilla/EphySingle.cpp
index d7e04b5db..64e8c8399 100644
--- a/embed/mozilla/EphySingle.cpp
+++ b/embed/mozilla/EphySingle.cpp
@@ -348,6 +348,12 @@ mozilla_cookie_to_ephy_cookie (nsICookie *cookie)
info->real_expires = expiry;
}
+#ifdef HAVE_GECKO_1_9
+ PRBool isHttpOnly = PR_FALSE;
+ cookie2->GetHttpOnly (&isHttpOnly);
+ info->is_http_only = isHttpOnly != PR_FALSE;
+#endif
+
return info;
}