WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
217393
REGRESSION: [Mac Release] 2 Cookie API are failing
https://bugs.webkit.org/show_bug.cgi?id=217393
Summary
REGRESSION: [Mac Release] 2 Cookie API are failing
Truitt Savell
Reported
2020-10-06 10:36:55 PDT
TestWebKitAPI.WebKit.CookieCacheSyncAcrossProcess /Volumes/Data/slave/catalina-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/CookiePrivateBrowsing.mm:110 Expected equality of these values: "foo=bar" (NSString *)cookie Which is: "" /Volumes/Data/slave/catalina-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/CookiePrivateBrowsing.mm:130 Expected equality of these values: "foo=bar" cookieString Which is: "" TestWebKitAPI.WebKit.RelaxThirdPartyCookieBlocking /Volumes/Data/slave/catalina-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/Proxy.mm:232 Value of: strstr(request.data(), "Cookie: a=b\r\n") Actual: false Expected: true /Volumes/Data/slave/catalina-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/Proxy.mm:232 Value of: strstr(request.data(), "Cookie: a=b\r\n") Actual: false Expected: true /Volumes/Data/slave/catalina-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/Proxy.mm:232 Value of: strstr(request.data(), "Cookie: a=b\r\n") Actual: false Expected: true
Attachments
Patch
(4.15 KB, patch)
2020-10-09 10:46 PDT
,
Alex Christensen
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(4.22 KB, patch)
2020-10-09 11:06 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(4.13 KB, patch)
2020-10-09 12:31 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-10-06 10:37:16 PDT
<
rdar://problem/70006475
>
Alex Christensen
Comment 2
2020-10-09 10:46:28 PDT
Created
attachment 410950
[details]
Patch
Alex Christensen
Comment 3
2020-10-09 11:06:23 PDT
Created
attachment 410952
[details]
Patch
Chris Dumez
Comment 4
2020-10-09 11:28:05 PDT
Comment on
attachment 410952
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=410952&action=review
> Tools/TestWebKitAPI/Tests/WebKitCocoa/CookiePrivateBrowsing.mm:81 > + [[WKWebsiteDataStore defaultDataStore].httpCookieStore _setCookieAcceptPolicy:static_cast<NSHTTPCookieAcceptPolicy>(NSHTTPCookieAcceptPolicyExclusivelyFromMainDocumentDomain) completionHandler:^{
This test does not use the default data store at all. It uses an ephemeral session so why does setting the default data store cookie policy help? Doesn't this indicate a WebKit bug of some sort?
Alex Christensen
Comment 5
2020-10-09 12:01:24 PDT
Comment on
attachment 410952
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=410952&action=review
>> Tools/TestWebKitAPI/Tests/WebKitCocoa/CookiePrivateBrowsing.mm:81 >> + [[WKWebsiteDataStore defaultDataStore].httpCookieStore _setCookieAcceptPolicy:static_cast<NSHTTPCookieAcceptPolicy>(NSHTTPCookieAcceptPolicyExclusivelyFromMainDocumentDomain) completionHandler:^{ > > This test does not use the default data store at all. It uses an ephemeral session so why does setting the default data store cookie policy help? Doesn't this indicate a WebKit bug of some sort?
CFNetwork ephemeral cookie stores inherit their initial cookie accept policy from the default store.
Alex Christensen
Comment 6
2020-10-09 12:31:22 PDT
Created
attachment 410964
[details]
Patch
EWS
Comment 7
2020-10-09 13:53:55 PDT
Committed
r268286
: <
https://trac.webkit.org/changeset/268286
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 410964
[details]
.
Alex Christensen
Comment 8
2020-10-09 15:14:43 PDT
https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.WebKit.CookieCacheSyncAcrossProcess
https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.WebKit.RelaxThirdPartyCookieBlocking
Seems to have fixed it. Hooray!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug