W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2009

[whatwg] Accessing cookies from workers

From: Michael Nordman <michaeln@google.com>
Date: Thu, 5 Mar 2009 20:53:33 -0800
Message-ID: <fa2eab050903052053h22f7f4abh12337b7bc74708ca@mail.gmail.com>
> Jonas (and I) were talking about setRequestHeader(),
> getAllResponseHeaders(), and getResponseHeader().

Sure.

> postMessage()? :-)

That certainly works for "dedicated workers". Not so great for shared
workers or persistent workers. In the shared case, the postMessage
sender and receiver would have to know the locations of each other to
access and associate cookies at the right level in the path (and a
given shared worker may or may not have a channel open with a "page"
context). In the persistent case, there may not be anyone to
postMessage with at all.

I don't see any fundamental reason to not allow cookies to be
read/written from a worker context? I think of them as DOM/UI 'less
frames in many respects.
Received on Thursday, 5 March 2009 20:53:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:49 GMT