[Webkit-unassigned] [Bug 69733] New: Web Inspector: certain cookies not being listed on Resources -> Cookies

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 9 14:12:15 PDT 2011


           Summary: Web Inspector: certain cookies not being listed on
                    Resources -> Cookies
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: maniqui at gmail.com
                CC: timothy at apple.com, rik at webkit.org, keishi at webkit.org,
                    pmuellr at yahoo.com, joepeck at webkit.org,
                    pfeldman at chromium.org, yurys at chromium.org,
                    bweinstein at apple.com, apavlov at chromium.org,
                    loislo at chromium.org


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 at 87771)
JavaScript    V8
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

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list