We need the ability to purge all script-accessible cookies while leaving HttpOnly cookies in place.
<rdar://problem/48570136>
Created attachment 363806 [details] Patch
Comment on attachment 363806 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=363806&action=review > Source/WebCore/platform/network/cocoa/NetworkStorageSessionCocoa.mm:503 > + deleteCookiesForHostnames(hostnames, true); enum class IncludeHTTPOnlyCookies : bool { No, Yes }; > Source/WebKit/NetworkProcess/NetworkProcess.cpp:1603 > + static NeverDestroyed<OptionSet<WebsiteDataType>> cookieType(std::initializer_list<WebsiteDataType>({ WebsiteDataType::Cookies })); OptionSet fits in one register, so this is a little overkill.
(In reply to Alex Christensen from comment #3) > Comment on attachment 363806 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=363806&action=review > > > Source/WebCore/platform/network/cocoa/NetworkStorageSessionCocoa.mm:503 > > + deleteCookiesForHostnames(hostnames, true); > > enum class IncludeHTTPOnlyCookies : bool { No, Yes }; > > > Source/WebKit/NetworkProcess/NetworkProcess.cpp:1603 > > + static NeverDestroyed<OptionSet<WebsiteDataType>> cookieType(std::initializer_list<WebsiteDataType>({ WebsiteDataType::Cookies })); > > OptionSet fits in one register, so this is a little overkill. Thanks! Will fix both of these.
Created attachment 363830 [details] Patch
Created attachment 363832 [details] Patch
Created attachment 363833 [details] Patch
Added build fixes for ports that use soup and curl.
Comment on attachment 363833 [details] Patch Looks good. r=me. Please keep an eye on the test system after landing.
Comment on attachment 363833 [details] Patch Thanks, Brent!
Comment on attachment 363833 [details] Patch Clearing flags on attachment: 363833 Committed r242598: <https://trac.webkit.org/changeset/242598>
All reviewed patches have been landed. Closing bug.