Introduce ITP debug logging as an opt-in developer feature
authorwilander@apple.com <wilander@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Feb 2018 23:26:40 +0000 (23:26 +0000)
committerwilander@apple.com <wilander@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Feb 2018 23:26:40 +0000 (23:26 +0000)
commite4a5abb8f4e991daf1d575379012bac9bcb6b071
tree4ea22af304f250d8062c517030d252d04b2e5777
parent352118da21794db591d2ce9c8ca3bdaeb6a7ffa5
Introduce ITP debug logging as an opt-in developer feature
https://bugs.webkit.org/show_bug.cgi?id=183065
<rdar://problem/37803761>

Reviewed by Brent Fulgham.

Source/WebKit:

* Platform/Logging.h:
    Added a dedicated channel for Resource Load Statistics debug logging
    since this will be part of a developer-facing feature and should not
    be mixed with general Resource Load Statistics logging.
* UIProcess/Cocoa/WebResourceLoadStatisticsStoreCocoa.mm:
(WebKit::WebResourceLoadStatisticsStore::registerUserDefaultsIfNeeded):
    Now picks up the user default setting for
    ResourceLoadStatisticsDebugLoggingEnabled.
* UIProcess/WebResourceLoadStatisticsStore.cpp:
(WebKit::WebResourceLoadStatisticsStore::removeDataRecords):
    Now logs for which domains it purges website data if
    ResourceLoadStatisticsDebugLoggingEnabled is set.
(WebKit::WebResourceLoadStatisticsStore::updateCookiePartitioning):
    Now logs for which domains it partitions and blocks cookies
    in third-party contexts if ResourceLoadStatisticsDebugLoggingEnabled
    is set.
* UIProcess/WebResourceLoadStatisticsStore.h:

Source/WTF:

* wtf/Assertions.h:
    Introduces RELEASE_LOG_INFO() and RELEASE_LOG_INFO_IF().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/Assertions.h
Source/WebKit/ChangeLog
Source/WebKit/Platform/Logging.h
Source/WebKit/UIProcess/Cocoa/WebResourceLoadStatisticsStoreCocoa.mm
Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp
Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.h