Re: [http-state] Support of nameless cookies by user agents

Maciej Stachowiak <mjs@apple.com> Wed, 16 December 2009 06:46 UTC

Return-Path: <mjs@apple.com>
X-Original-To: http-state@core3.amsl.com
Delivered-To: http-state@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 222CB3A6817 for <http-state@core3.amsl.com>; Tue, 15 Dec 2009 22:46:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.842
X-Spam-Level:
X-Spam-Status: No, score=-106.842 tagged_above=-999 required=5 tests=[AWL=-0.243, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pl-8fZZMDewX for <http-state@core3.amsl.com>; Tue, 15 Dec 2009 22:46:03 -0800 (PST)
Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by core3.amsl.com (Postfix) with ESMTP id 27BBF3A6813 for <http-state@ietf.org>; Tue, 15 Dec 2009 22:46:03 -0800 (PST)
Received: from relay16.apple.com (relay16.apple.com [17.128.113.55]) by mail-out4.apple.com (Postfix) with ESMTP id A655082A20F0 for <http-state@ietf.org>; Tue, 15 Dec 2009 22:45:49 -0800 (PST)
X-AuditID: 11807137-b7bd4ae000000f0d-e1-4b28821d0626
Received: from elliott.apple.com (elliott.apple.com [17.151.62.13]) by relay16.apple.com (Apple SCV relay) with SMTP id 27.E2.03853.D12882B4; Tue, 15 Dec 2009 22:45:49 -0800 (PST)
MIME-version: 1.0
Content-transfer-encoding: 7bit
Content-type: text/plain; charset="us-ascii"; format="flowed"; delsp="yes"
Received: from [10.0.1.5] (c-69-181-42-237.hsd1.ca.comcast.net [69.181.42.237]) by elliott.apple.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0KUQ002T0G4BT840@elliott.apple.com> for http-state@ietf.org; Tue, 15 Dec 2009 22:45:49 -0800 (PST)
From: Maciej Stachowiak <mjs@apple.com>
In-reply-to: <7789133a0912152234w3d00f382t5bd22aab97abbb4@mail.gmail.com>
Date: Tue, 15 Dec 2009 22:45:47 -0800
Message-id: <677B2D59-5B68-4D8B-978A-F6FE7A834C75@apple.com>
References: <7789133a0912152234w3d00f382t5bd22aab97abbb4@mail.gmail.com>
To: Adam Barth <ietf@adambarth.com>
X-Mailer: Apple Mail (2.1076)
X-Brightmail-Tracker: AAAAAQAAAZE=
Cc: "Roy T. Fielding" <fielding@gbiv.com>, http-state <http-state@ietf.org>
Subject: Re: [http-state] Support of nameless cookies by user agents
X-BeenThere: http-state@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discuss HTTP State Management Mechanism <http-state.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/http-state>
List-Post: <mailto:http-state@ietf.org>
List-Help: <mailto:http-state-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Dec 2009 06:46:04 -0000

On Dec 15, 2009, at 10:34 PM, Adam Barth wrote:

> I'd like to apologize to Roy.  I was mistaken about which user agents
> support nameless cookies.  That was one of the first tests I wrote and
> I misremembered the results.  Here's the compatibility matrix:
>
> Test 004: Set-Cookie: foo
>
> IE8, Firefox, Chrome: Cookie: foo
> Safari, cURL: (no header)
> Opera: Cookie: foo=
>
> I've added a TODO to the draft.


This agrees with my testing. And from script (not fully relevant to  
the protocol, but perhaps of interest), document.cookie="foo" creates  
a cookie named "foo" with an empty value, rather than a nameless  
cookie, while document.cookie="" does nothing, so we would have been  
hit by the Mozilla bankofamerica bug cited earlier.

Regards,
Maciej