Closed Bug 1158957 Opened 9 years ago Closed 8 years ago

Cookies set via <meta http-equiv> ignored if set to "ask me every time"

Categories

(Core :: Networking: Cookies, defect)

31 Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: benjaminmoody, Unassigned, Mentored)

References

()

Details

(Keywords: testcase)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0
Build ID: 20150331141458

Steps to reproduce:

Set Firefox to "ask me every time" about cookies.

Load a page, on a site for which you have *not* already set cookie preferences, that sets cookies using <meta http-equiv="Set-Cookie" content="...">.  (Although this is a strange way to set cookies, Firefox does normally allow it, so some sites do so.)

A test page may be found at http://ecg.mit.edu/cgi-bin/cookietest .


Actual results:

The cookies set in the meta tag are silently ignored.


Expected results:

Firefox should prompt the user to accept these cookies, just as if they were set in an HTTP response header.

This might be related to bug 783358; I don't know.
Component: Untriaged → Networking: Cookies
Keywords: testcase
Product: Firefox → Core
For anybody who wants to investigate why this occurs, nsContentSink::ProcessHeaderData is the place to start, as that's where we end up calling nsCookieService::SetCookieString.
Mentor: josh
That being said, the test page from the URL field in this bug shows cookie values for every one of the links I clicked on that page, so maybe I can't reproduce in Firefox Nightly?
Benjamin, do you see this behaviour in more recent versions of FF?
Flags: needinfo?(benjaminmoody)
Yes, I have just tried using a fresh profile and Firefox 37.0.2.

http://ecg.mit.edu/cgi-bin/cookietest?op=session-http -> "The site ecg.mit.edu wants to set a cookie"

http://ecg.mit.edu/cgi-bin/cookietest?op=session-meta -> no prompt, existing cookie value is not changed.
Flags: needinfo?(benjaminmoody)
Oh right, I forgot to change the preference about automatically accepting cookies.
ask me everytime is gone
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.