Currently we have various static template functions in ContentSecurityPolicy.cpp to check if a resource request for a particular directive violates any of the CSPs that were delivered with the document. These functions are identical up to the function F they invoke and the arguments they take and pass to F. We should look to consolidate these function into a single function that has a similar prototype as std::invoke() to remove duplication and centralize the semantics for determining a directive violation against some CSP policy.
<rdar://problem/25326546>
Created attachment 274789 [details] Patch
Comment on attachment 274789 [details] Patch Clearing flags on attachment: 274789 Committed r198613: <http://trac.webkit.org/changeset/198613>
All reviewed patches have been landed. Closing bug.