Bug 1418236 - Correct EventTarget for CSP violation events, r=ckerschb

This commit is contained in:
Andrea Marchesini
2018-07-10 17:40:21 +02:00
parent bff8489dc9
commit ab091b9f95
22 changed files with 135 additions and 91 deletions

View File

@@ -1707,7 +1707,8 @@ HTMLFormElement::GetActionURL(nsIURI** aActionURL,
// form-action is only enforced if explicitly defined in the
// policy - do *not* consult default-src, see:
// http://www.w3.org/TR/CSP2/#directive-default-src
rv = csp->Permits(actionURL, nsIContentSecurityPolicy::FORM_ACTION_DIRECTIVE,
rv = csp->Permits(this, actionURL,
nsIContentSecurityPolicy::FORM_ACTION_DIRECTIVE,
true, &permitsFormAction);
NS_ENSURE_SUCCESS(rv, rv);
if (!permitsFormAction) {