Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WKHTTPCookieStoreDeleteAllCookies should wait for response from network process before invoking callback #865

Conversation

yury-s
Copy link
Contributor

@yury-s yury-s commented May 20, 2022

c5db694

WKHTTPCookieStoreDeleteAllCookies should wait for response from network process before invoking callback
https://bugs.webkit.org/show_bug.cgi?id=240743

Reviewed by NOBODY (OOPS!).

Make API::HTTPCookieStore::deleteAllCookies actually wait for the
NetworkProcess to complete the operation before calling the
completion handler.

* Source/WebKit/NetworkProcess/Cookies/WebCookieManager.cpp:
(WebKit::WebCookieManager::deleteAllCookies):
* Source/WebKit/NetworkProcess/Cookies/WebCookieManager.h:
* Source/WebKit/NetworkProcess/Cookies/WebCookieManager.messages.in:
* Source/WebKit/UIProcess/API/APIHTTPCookieStore.cpp:
(API::HTTPCookieStore::deleteAllCookies):
* Source/WebKit/UIProcess/WebCookieManagerProxy.cpp:
(WebKit::WebCookieManagerProxy::deleteAllCookies):
* Source/WebKit/UIProcess/WebCookieManagerProxy.h:

…rk process before invoking callback

https://bugs.webkit.org/show_bug.cgi?id=240743

Reviewed by NOBODY (OOPS!).

Make API::HTTPCookieStore::deleteAllCookies actually wait for the
NetworkProcess to complete the operation before calling the
completion handler.

* Source/WebKit/NetworkProcess/Cookies/WebCookieManager.cpp:
(WebKit::WebCookieManager::deleteAllCookies):
* Source/WebKit/NetworkProcess/Cookies/WebCookieManager.h:
* Source/WebKit/NetworkProcess/Cookies/WebCookieManager.messages.in:
* Source/WebKit/UIProcess/API/APIHTTPCookieStore.cpp:
(API::HTTPCookieStore::deleteAllCookies):
* Source/WebKit/UIProcess/WebCookieManagerProxy.cpp:
(WebKit::WebCookieManagerProxy::deleteAllCookies):
* Source/WebKit/UIProcess/WebCookieManagerProxy.h:
@yury-s yury-s self-assigned this May 20, 2022
@yury-s yury-s added WebKit Nightly Build WebKit2 Bugs relating to the WebKit2 API layer labels May 20, 2022
@yury-s
Copy link
Contributor Author

yury-s commented May 20, 2022

I don't see any C-API tests under Tools/TestWebKitAPI/Tests/WebKit/ that would navigate to an "http:" url, so would appreciates any pointer on how to add a test for this.

@webkit-early-warning-system webkit-early-warning-system added the merging-blocked Applied to prevent a change from being merged label May 21, 2022
@yury-s
Copy link
Contributor Author

yury-s commented Jun 1, 2022

Closing as it was addressed in b720285

@yury-s yury-s closed this Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merging-blocked Applied to prevent a change from being merged WebKit2 Bugs relating to the WebKit2 API layer
Projects
None yet
2 participants