Bug 19658

Summary: Safari 4 Developer Preview - setting document.cookie isn't working
Product: WebKit Reporter: Robbie Paplin <rpaplin>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, jay.bhaskar, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Javascript Cookie Detection Test none

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.