Bug 1299483 - CSP: Implement 'strict-dynamic', enforcement changes. r=dveditz,freddyb

This commit is contained in:
Christoph Kerschbaumer
2016-11-08 12:55:23 +01:00
parent 1df5f79cfe
commit 315b38541b
11 changed files with 166 additions and 70 deletions

View File

@@ -773,7 +773,9 @@ nsStyleUtil::CSPAllowsInlineStyle(nsIContent* aContent,
bool allowInlineStyle = true;
rv = csp->GetAllowsInline(nsIContentPolicy::TYPE_STYLESHEET,
nonce, aStyleText, aLineNumber,
nonce,
false, // aParserCreated only applies to scripts
aStyleText, aLineNumber,
&allowInlineStyle);
NS_ENSURE_SUCCESS(rv, false);