RESOLVED FIXED 184044
Further refine cookie read/write logging
https://bugs.webkit.org/show_bug.cgi?id=184044
Summary Further refine cookie read/write logging
Brent Fulgham
Reported 2018-03-27 10:02:24 PDT
The existing logging code for cookie reads/writes, partitioning, and blocking was not getting hit for various test cases. This patch revises the logging slightly so that we get more consistent logging during test passes.
Attachments
Patch (13.09 KB, patch)
2018-03-27 10:51 PDT, Brent Fulgham
cdumez: review+
Radar WebKit Bug Importer
Comment 1 2018-03-27 10:03:17 PDT
Brent Fulgham
Comment 2 2018-03-27 10:51:12 PDT
Chris Dumez
Comment 3 2018-03-27 10:58:43 PDT
Comment on attachment 336594 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=336594&action=review > Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:743 > +static String escapeIDForJSON(std::optional<uint64_t> value) I would use a const & here. > Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:840 > +void NetworkResourceLoader::logCookieInformation(const String& label, const void* loggedObject, const WebCore::NetworkStorageSession& networkStorageSession, const WebCore::URL& firstParty, const WebCore::URL& url, const String& referrer, std::optional<uint64_t> frameID, std::optional<uint64_t> pageID, std::optional<uint64_t> identifier) WebCore:: is not needed. > Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:847 > + auto partition = WebCore::URL(ParsedURLString, networkStorageSession.cookieStoragePartition(firstParty, url, frameID, pageID)); WebCore:: is not needed.
Brent Fulgham
Comment 4 2018-03-27 12:48:24 PDT
I'll fix the debug issue when landing.
Brent Fulgham
Comment 5 2018-03-27 13:27:57 PDT
Note You need to log in before you can comment on or make changes to this bug.