Bug 69733 - Web Inspector: certain cookies not being listed on Resources -> Cookies
Summary: Web Inspector: certain cookies not being listed on Resources -> Cookies
Status: RESOLVED DUPLICATE of bug 65770
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-09 14:12 PDT by Julián Landerreche
Modified: 2011-10-09 16:51 PDT (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julián Landerreche 2011-10-09 14:12:14 PDT
==Overview==

I was setting up the Google Analytics tracking code in a way that it sets the cookie's host for a particular subdomain (www.example.com), and not for the whole domain (.example.com).
Once I set it up, and after cleaning the cookies and re-loading the page, I checked the "Resources -> Cookies" tab just to see the "This sites has no cookies" message.
I though I did something wrong so I re-checked the code, and refreshed the page again. Checked the Cookies tab once more... and nothing, totally empty.

I started to suspect that it was an issue on the GA tracking code, but then, I decided to check the cookies on the Chromium Preferences panel: 
"Preferences -> Under The Hood -> Content Settings ->  All Cookies and Site data"

There, I searched for the domain name and I found the cookies! 
The cookies were correctly.

==Steps to reproduce==

1) on your website, set the GA Tracking Code snippet in a way that it sets its cookie only for a certain subdomain.

    _gaq.push(['_setDomainName', 'www.example.com']);

2) Clean the cookies in your browser

3) Reload the page

4) Open the WebInspector and check the "Resources -> Cookies" tab. It may show up empty!

5) Check cookies on the "Preferences -> Under The Hood -> Content Settings ->  All Cookies and Site data". You may find the cookies there.

==Build Date & Platform==

Chromium	13.0.782.220 (Developer Build 99552) Built on Debian unstable, running on Debian wheezy/sid
OS	Linux
WebKit	535.1 (trunk@87771)
JavaScript	V8 3.3.10.30
Flash	11.0 d1
User Agent	Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Command Line	 /usr/lib/chromium/chromium --password-store=detect --flag-switches-begin --enable-experimental-extension-apis --new-tab-page-4 --flag-switches-end
Executable Path
Comment 1 Vsevolod Vlasov 2011-10-09 16:51:01 PDT
This was already fixed. 
This should work in chromium starting from version 14.

*** This bug has been marked as a duplicate of bug 65770 ***