Content Security Policy error message when frame load is blocked does not read well
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jun 2015 15:54:23 +0000 (15:54 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jun 2015 15:54:23 +0000 (15:54 +0000)
commitc8e9f3097491e10b7a57e5f5597e0d03292c5a34
tree3365adbc6f24abdd2912b5f1209846807a25e08d
parent920bee5e11ffeea8a12dbcb14dc02c4080fe09f9
Content Security Policy error message when frame load is blocked does not read well
https://bugs.webkit.org/show_bug.cgi?id=146279

Reviewed by Csaba Osztrogon√°c.

Source/WebCore:

Substitute "Refused to load frame" for "Refused to frame" as the prefix of the error message
emitted when the Content Security Policy of the page blocks a frame load.

* page/ContentSecurityPolicy.cpp:
(WebCore::CSPDirectiveList::checkSourceAndReportViolation):

LayoutTests:

Update expected results.

* http/tests/security/contentSecurityPolicy/frame-src-blocked-expected.txt:
* http/tests/security/contentSecurityPolicy/frame-src-redirect-blocked-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@185912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-blocked-expected.txt
LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-redirect-blocked-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/page/ContentSecurityPolicy.cpp