diff options
author | Christian Persch <chpe@gnome.org> | 2007-05-20 00:45:55 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2007-05-20 00:45:55 +0800 |
commit | 342e11049b4fe3a550ca62e1b9569e99e818cc4d (patch) | |
tree | 95f57c8c52cb94f9b72be3583cffa3e3ab77723e | |
parent | 7e5baa77b9fd26b348b158bf9785d8b19b325fa3 (diff) | |
download | gsoc2013-epiphany-342e11049b4fe3a550ca62e1b9569e99e818cc4d.tar.gz 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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | embed/ephy-cookie-manager.h | 1 | ||||
-rw-r--r-- | embed/mozilla/EphySingle.cpp | 6 |
3 files changed, 14 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2007-05-19 Christian Persch <chpe@gnome.org> + * embed/ephy-cookie-manager.h: + * embed/mozilla/EphySingle.cpp: + + Store http-only flag too. + +2007-05-19 Christian Persch <chpe@gnome.org> + * lib/egg/eggtreemultidnd.c: Include config.h. 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; } |