aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
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;
}