Bug 156092

Summary: CSP: child-src violations reported as frame-src violation
Product: WebKit Reporter: Daniel Bates <dbates>
Component: WebCore Misc.Assignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, bfulgham, commit-queue, mkwst, ryanhaddad, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed
Version: WebKit Local Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Test case
none
Patch and Layout Tests aestes: review+

Description Daniel Bates 2016-03-31 16:44:48 PDT
Frame loads blocked by directive child-src are reported as being blocked by directive frame-src in both the console message and dispatched SecurityPolicyViolation event.

You can see observe these issue by opening the attached test, test.html, and looking at the test output and the console message emitted in the Web Inspector.
Comment 1 Daniel Bates 2016-03-31 16:47:40 PDT
Created attachment 275356 [details]
Test case
Comment 2 Radar WebKit Bug Importer 2016-03-31 17:04:05 PDT
<rdar://problem/25478509>
Comment 3 Daniel Bates 2016-03-31 18:29:56 PDT
Created attachment 275364 [details]
Patch and Layout Tests
Comment 4 Daniel Bates 2016-04-01 11:40:26 PDT
Committed r198951: <http://trac.webkit.org/changeset/198951>
Comment 5 Ryan Haddad 2016-04-01 14:01:28 PDT
The tests added with this change were rebaselined in <http://trac.webkit.org/changeset/198954>