mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[DOM security] Be more explicit about CSP checks and reports.
This commit is contained in:
parent
ef3685dc5d
commit
95120acbb2
5 changed files with 70 additions and 10 deletions
|
|
@ -1721,7 +1721,8 @@ HTMLFormElement::GetActionURL(nsIURI** aActionURL,
|
|||
// policy - do *not* consult default-src, see:
|
||||
// http://www.w3.org/TR/CSP2/#directive-default-src
|
||||
rv = csp->Permits(actionURL, nsIContentSecurityPolicy::FORM_ACTION_DIRECTIVE,
|
||||
true, &permitsFormAction);
|
||||
true /*aSpecific */, true /* aSendViolationReports */,
|
||||
&permitsFormAction);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (!permitsFormAction) {
|
||||
return NS_ERROR_CSP_FORM_ACTION_VIOLATION;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue