From 342e11049b4fe3a550ca62e1b9569e99e818cc4d Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 19 May 2007 16:45:55 +0000 Subject: Store http-only flag too. 2007-05-19 Christian Persch * embed/ephy-cookie-manager.h: * embed/mozilla/EphySingle.cpp: Store http-only flag too. svn path=/trunk/; revision=7035 --- ChangeLog | 7 +++++++ embed/ephy-cookie-manager.h | 1 + embed/mozilla/EphySingle.cpp | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 08565c770..cdb6220fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-05-19 Christian Persch + + * embed/ephy-cookie-manager.h: + * embed/mozilla/EphySingle.cpp: + + Store http-only flag too. + 2007-05-19 Christian Persch * lib/egg/eggtreemultidnd.c: 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; } -- cgit v1.2.3