Closed Bug 680462 Opened 14 years ago Closed 14 years ago

Images do not carry cookies set by script in head

Categories

(Firefox :: General, defect)

6 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: scott, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1 Steps to reproduce: When I set a cookie via a script in the head of the document, subsequent images in that document do not carry the cookie when they reach the server. Because of this, it's impossible to send images with information about the client, such as screen resolution, allowing the server to return an appropriate image size for a particular device. Note that this approach is becoming common in Responsive Design implementations. Actual results: The following demo references a mobile-friendly image in the source by default. A script in the head sets a cookie specifying whether the device is small, medium, or large. This cookie is not included with the image when it hits the server. http://filamentgroup.com/examples/responsive-images-new/demos/A-Default/demo.html This readme describes what's taking place in the demo: https://github.com/filamentgroup/Responsive-Images/tree/cookie-driven Expected results: All other browsers that I've tested will include a cookie set by JS in subsequent page requests. Unfortunately, it seems Firefox is sending this request without the cookie attached, meaning the image will not be routed appropriately until a page refresh.
Update: this appears to be a subdomain cookie path issue on the servers I was testing. Disabling the subdomain flag "." by default seems to resolve the problem. Very sorry and thank you for your time!
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.