Bug 69733
| Summary: | Web Inspector: certain cookies not being listed on Resources -> Cookies | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Julián Landerreche <maniqui> |
| Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, vsevik, yurys |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Julián Landerreche
==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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Vsevolod Vlasov
This was already fixed.
This should work in chromium starting from version 14.
*** This bug has been marked as a duplicate of bug 65770 ***