Index: chrome/common/render_messages.h |
=================================================================== |
--- chrome/common/render_messages.h (revision 8522) |
+++ chrome/common/render_messages.h (working copy) |
@@ -1349,8 +1349,10 @@ |
typedef scoped_refptr<net::HttpResponseHeaders> param_type; |
static void Write(Message* m, const param_type& p) { |
WriteParam(m, p.get() != NULL); |
- if (p) |
- p->Persist(m, false); |
+ if (p) { |
+ // Do not disclose Set-Cookie headers over IPC. |
+ p->Persist(m, net::HttpResponseHeaders::PERSIST_SANS_COOKIES); |
+ } |
} |
static bool Read(const Message* m, void** iter, param_type* r) { |
bool has_object; |