[webkit-changes] [WebKit/WebKit] 3d80db: WebCookieJar should clear cache when cookie accept...
Sihui
noreply at github.com
Fri Mar 3 13:12:24 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3d80db87c08209096850288337c480abd7bd4131
https://github.com/WebKit/WebKit/commit/3d80db87c08209096850288337c480abd7bd4131
Author: Sihui Liu <sihui_liu at apple.com>
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
More information about the webkit-changes
mailing list