Bug 1425993 - Make security violation events Nightly-only and update test expectations accordingly. r=smaug

This commit is contained in:
Ryan VanderMeulen 2018-01-03 12:35:49 -05:00
parent d1633ff16c
commit 460ad0274d
3 changed files with 3 additions and 2 deletions

View File

@ -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!

View File

@ -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);

View File

@ -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