Issue #2405 - Add a pref to disable CSP reporting.

Resolves #2405
This commit is contained in:
Moonchild 2023-12-17 22:56:04 +01:00 committed by roytam1
commit f1f9dde29e
4 changed files with 17 additions and 2 deletions

View file

@ -14,8 +14,8 @@
#define CSPSERVICE_CONTRACTID "@mozilla.org/cspservice;1"
#define CSPSERVICE_CID \
{ 0x8d2f40b2, 0x4875, 0x4c95, \
{ 0x97, 0xd9, 0x3f, 0x7d, 0xca, 0x2c, 0xb4, 0x60 } }
{ 0x83d284d6, 0xf280, 0x48ae, \
{ 0xa5, 0x6b, 0x0f, 0x28, 0x11, 0x29, 0x83, 0x1b } }
class CSPService : public nsIContentPolicy,
public nsIChannelEventSink
{
@ -26,6 +26,7 @@ public:
CSPService();
static bool sCSPEnabled;
static bool sCSPReportingEnabled;
protected:
virtual ~CSPService();