Bug 1106713 - fixing up CSP checks for imports. r=mrbkap
This commit is contained in:
@@ -438,6 +438,8 @@ static bool
|
||||
CSPAllowsInlineScript(nsIScriptElement *aElement, nsIDocument *aDocument)
|
||||
{
|
||||
nsCOMPtr<nsIContentSecurityPolicy> csp;
|
||||
// Note: For imports NodePrincipal and the principal of the master are
|
||||
// the same.
|
||||
nsresult rv = aDocument->NodePrincipal()->GetCsp(getter_AddRefs(csp));
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user