Bug 529697 - (CSP 1.1) Implement form-action directive [3/4], r=unfocused

Make the cspFrameAncestorsBlock error page generic and use it with
the form-action directive too.
This commit is contained in:
Francois Marier
2014-11-15 03:08:00 +01:00
parent 0d0c2ff202
commit d1f1c4203b
13 changed files with 28 additions and 28 deletions

View File

@@ -4869,7 +4869,7 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI *aURI,
NS_ERROR_CSP_FORM_ACTION_VIOLATION == aError) {
// CSP error
cssClass.AssignLiteral("neterror");
error.AssignLiteral("cspFrameAncestorBlocked");
error.AssignLiteral("cspBlocked");
}
else if (NS_ERROR_GET_MODULE(aError) == NS_ERROR_MODULE_SECURITY) {
nsCOMPtr<nsINSSErrorsService> nsserr =