diff --git a/dom/tests/mochitest/general/test_interfaces.js b/dom/tests/mochitest/general/test_interfaces.js index 2617852295bf..17bdcac155ff 100644 --- a/dom/tests/mochitest/general/test_interfaces.js +++ b/dom/tests/mochitest/general/test_interfaces.js @@ -825,7 +825,7 @@ var interfaceNamesInGlobalScope = // IMPORTANT: Do not change this list without review from a DOM peer! "ScrollAreaEvent", // IMPORTANT: Do not change this list without review from a DOM peer! - "SecurityPolicyViolationEvent", + {name: "SecurityPolicyViolationEvent", release: false}, // IMPORTANT: Do not change this list without review from a DOM peer! "Selection", // IMPORTANT: Do not change this list without review from a DOM peer! diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 0682b7b41b72..dcc54e6e6227 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -2559,7 +2559,7 @@ pref("security.notification_enable_delay", 500); pref("security.csp.enable", true); pref("security.csp.experimentalEnabled", false); pref("security.csp.enableStrictDynamic", true); -#ifdef EARLY_BETA_OR_EARLIER +#ifdef NIGHTLY_BUILD pref("security.csp.enable_violation_events", true); #else pref("security.csp.enable_violation_events", false); diff --git a/testing/web-platform/meta/content-security-policy/style-src/style-src-imported-style-blocked.html.ini b/testing/web-platform/meta/content-security-policy/style-src/style-src-imported-style-blocked.html.ini index c8e6f60704a1..3634c5dd67f1 100644 --- a/testing/web-platform/meta/content-security-policy/style-src/style-src-imported-style-blocked.html.ini +++ b/testing/web-platform/meta/content-security-policy/style-src/style-src-imported-style-blocked.html.ini @@ -1,5 +1,6 @@ [style-src-imported-style-blocked.html] type: testharness + prefs: [security.csp.enable_violation_events:true] [Should fire a securitypolicyviolation event] expected: FAIL