WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
209992
[ macOS ] TestWebKitAPI.WKHTTPCookieStore.WithoutProcessPoolDuplicates is failing
https://bugs.webkit.org/show_bug.cgi?id=209992
Summary
[ macOS ] TestWebKitAPI.WKHTTPCookieStore.WithoutProcessPoolDuplicates is fai...
Sihui Liu
Reported
2020-04-03 16:36:40 PDT
...
Attachments
Patch
(2.23 KB, patch)
2020-04-03 16:42 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Patch
(2.54 KB, patch)
2020-04-07 11:49 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Patch
(2.58 KB, patch)
2020-04-07 15:30 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Sihui Liu
Comment 1
2020-04-03 16:42:34 PDT
Created
attachment 395417
[details]
Patch
Alexey Proskuryakov
Comment 2
2020-04-03 22:30:11 PDT
Comment on
attachment 395417
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=395417&action=review
> Tools/TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm:641 > + [cookieStore deleteCookie:cookie completionHandler:nil];
What makes it so that we don’t need to wait for completion?
Sihui Liu
Comment 3
2020-04-07 11:49:14 PDT
Created
attachment 395716
[details]
Patch
Sihui Liu
Comment 4
2020-04-07 11:50:29 PDT
(In reply to Alexey Proskuryakov from
comment #2
)
> Comment on
attachment 395417
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=395417&action=review
> > > Tools/TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm:641 > > + [cookieStore deleteCookie:cookie completionHandler:nil]; > > What makes it so that we don’t need to wait for completion?
We need to wait for the completion. Updated the patch.
Alexey Proskuryakov
Comment 5
2020-04-07 14:53:29 PDT
Comment on
attachment 395716
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=395716&action=review
> Tools/TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm:649 > + if (++deletedCount == cookies.count)
Are all of these completion handlers called on the same thread? I thought that they just go on a dispatch queue, and can be executed simultaneously, in which case this should use an atomic operation instead of a plain "++". Also, please take cookies.count function call out of the loop. This array should be thread safe, but there is no need to recalculate its size.
Sihui Liu
Comment 6
2020-04-07 15:13:27 PDT
Comment on
attachment 395716
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=395716&action=review
>> Tools/TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm:649 >> + if (++deletedCount == cookies.count) > > Are all of these completion handlers called on the same thread? I thought that they just go on a dispatch queue, and can be executed simultaneously, in which case this should use an atomic operation instead of a plain "++". > > Also, please take cookies.count function call out of the loop. This array should be thread safe, but there is no need to recalculate its size.
All completion handlers will be called on the main runloop. Will move cookies.count out of the loop.
Sihui Liu
Comment 7
2020-04-07 15:30:36 PDT
Created
attachment 395749
[details]
Patch
Radar WebKit Bug Importer
Comment 8
2020-04-08 09:23:38 PDT
<
rdar://problem/61458442
>
Geoffrey Garen
Comment 9
2020-04-08 09:47:02 PDT
Comment on
attachment 395749
[details]
Patch r=me
EWS
Comment 10
2020-04-08 12:25:36 PDT
Committed
r259745
: <
https://trac.webkit.org/changeset/259745
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 395749
[details]
.
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