Bug 19658 - Safari 4 Developer Preview - setting document.cookie isn't working
Summary: Safari 4 Developer Preview - setting document.cookie isn't working
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-18 11:49 PDT by Robbie Paplin
Modified: 2022-08-11 12:27 PDT (History)
5 users (show)

See Also:


Attachments
Javascript Cookie Detection Test (1.33 KB, text/html)
2008-06-18 11:51 PDT, Robbie Paplin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robbie Paplin 2008-06-18 11:49:19 PDT
The attached page has Javascript code to detect if cookies are enabled. The page will set a cookie, and then immediately try to read that cookie value. It appears that the cookie value isn't getting set by the script.
Comment 1 Robbie Paplin 2008-06-18 11:51:35 PDT
Created attachment 21821 [details]
Javascript Cookie Detection Test
Comment 2 Robbie Paplin 2008-06-18 11:52:21 PDT
Comment on attachment 21821 [details]
Javascript Cookie Detection Test

Change mime type to html
Comment 3 Robbie Paplin 2008-06-18 12:08:29 PDT
1. You need to empty your cookie cache before navigating to the test page in order to get the expected results.

2. The bug doesn't seem to repro consistently. When I ran this page from the local file system, it seems to repro. When I ran it from https://bugs.webkit.org, it doesn't seem to happen.
Comment 4 Ahmad Saleem 2022-08-11 04:34:05 PDT
I get following results in all browsers:

All browsers were in "Private / Incognito" mode.

*** Safari 15.6 on macOS 12.5 ***

Actual Results:
Cookies are enabled
Cookie Value: cookieTest=1

*** Firefox Nightly 105 ***

Actual Results:
Cookies are enabled
Cookie Value: cookieTest=1

*** Chrome Canary 106 ***

Actual Results:
Cookies are enabled
Cookie Value: cookieTest=1

___

Although - Safari do fail following test (Cross-site iframe cannot set lax/strict cookies via document.cookie):

https://wpt.fyi/results/cookies/samesite/iframe.document.https.html?label=master&label=experimental&aligned&view=subtest&q=document%20cookies

Appreciate if someone can mark this bug accordingly. Thanks!
Comment 5 Ryosuke Niwa 2022-08-11 12:27:31 PDT
This seems config changed to me.