Towards supporting logging of console messages for CSP parse errors and CSP violations as well as the sending of CSP reports from NetworkProcess and workers we should abstract the logic to perform these operations into a client the the ContentSecurityPolicy object can delegate to.
<rdar://problem/40036053>
Created attachment 339760 [details] Patch This patch depends on the patches for bug 185366 and bug 185380.
Comment on attachment 339760 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=339760&action=review r=me > Source/WebKit/NetworkProcess/NetworkLoadChecker.h:77 > + WebCore::ContentSecurityPolicy* contentSecurityPolicy(); Perhaps m_contentSecurityPolicy doesn't need to be mutable if this can be non-const.
Attachment 339760 [details] did not pass style-queue: ERROR: Source/WebCore/page/csp/ContentSecurityPolicy.cpp:94: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 18 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 339785 [details] For EWS
Attachment 339785 [details] did not pass style-queue: ERROR: Source/WebCore/page/csp/ContentSecurityPolicy.cpp:94: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 18 files If any of these errors are false positives, please file a bug against check-webkit-style.
Committed r231476: <https://trac.webkit.org/changeset/231476>