Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3d80db87c08209096850288337c480abd7bd4131
https://github.com/WebKit/WebKit/commit/3d80db87c08209096850288337c480abd7bd4131
Author: Sihui Liu <[email protected]>
Date: 2023-03-03 (Fri, 03 Mar 2023)
Changed paths:
M Source/WebKit/WebKit.xcodeproj/project.pbxproj
M Source/WebKit/WebProcess/Network/NetworkProcessConnection.cpp
Log Message:
-----------
WebCookieJar should clear cache when cookie accept policy changes
https://bugs.webkit.org/show_bug.cgi?id=253322
rdar://106198028
Reviewed by Chris Dumez.
When network process changes cookie accept policy, it will notify web process
about policy change so they have the same
policy. However, in current implementation, web process does not actually
updates its policy. If WebCookieCache is
already built with old policy, it keeps using the old policy. This means web
process could have a different view of
cookies from network process. For example, if policy is changed from Accept to
Never, network process will start
rejecting cookies, while web process will keep accepting them into cache. To
avoid this issue, this patch ensures cache
is rebuilt when cookie accept policy changes.
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/WebProcess/Network/NetworkProcessConnection.cpp:
(WebKit::NetworkProcessConnection::cookieAcceptPolicyChanged):
Canonical link: https://commits.webkit.org/261165@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes