RESOLVED FIXED 193429
Split headerValueForVary into specialized functions for NetworkProcess and WebProcess/WebKitLegacy
https://bugs.webkit.org/show_bug.cgi?id=193429
Summary Split headerValueForVary into specialized functions for NetworkProcess and We...
Alex Christensen
Reported 2019-01-14 20:45:14 PST
Split headerValueForVary into specialized functions for NetworkProcess and WebProcess/WebKitLegacy
Attachments
Patch (15.99 KB, patch)
2019-01-14 20:52 PST, Alex Christensen
joepeck: review+
Alex Christensen
Comment 1 2019-01-14 20:52:27 PST
Joseph Pecoraro
Comment 2 2019-01-14 21:08:24 PST
Comment on attachment 359127 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=359127&action=review r=me > Source/WebCore/platform/network/CacheValidation.cpp:346 > + return cookieRequestHeaderFieldValue(); I was confused for a while that this was the parameter name and not one of the static functions. Might be nice to give this a different name that doesn't clash, or maybe that was your intention. > Source/WebCore/platform/network/CacheValidation.cpp:407 > + return verifyVaryingRequestHeaders(varyingRequestHeaders, [&] (const String& headerName) { Do we want to maintain the assert, and potentially change it later? ASSERT(sessionID == PAL::SessionID::defaultSessionID());
Alex Christensen
Comment 3 2019-01-14 21:10:43 PST
Comment on attachment 359127 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=359127&action=review >> Source/WebCore/platform/network/CacheValidation.cpp:346 >> + return cookieRequestHeaderFieldValue(); > > I was confused for a while that this was the parameter name and not one of the static functions. Might be nice to give this a different name that doesn't clash, or maybe that was your intention. Yeah, I'll add -Function and -Internal suffixes to make this less confusing. >> Source/WebCore/platform/network/CacheValidation.cpp:407 >> + return verifyVaryingRequestHeaders(varyingRequestHeaders, [&] (const String& headerName) { > > Do we want to maintain the assert, and potentially change it later? > > ASSERT(sessionID == PAL::SessionID::defaultSessionID()); The assertion is not valid here. It is valid in the versions that use a NetworkStorageSession&, and I'm using defaultStorageSession in this patch which accomplishes the same thing as the assertion in a better way.
Alex Christensen
Comment 4 2019-01-14 21:16:12 PST
Radar WebKit Bug Importer
Comment 5 2019-01-14 21:17:29 PST
Note You need to log in before you can comment on or make changes to this bug.