|
CSP: Fire 'SecurityPolicyViolation' on the offending element.
If we can identify a specific element for a CSP violation (e.g. in the
cases of inline script, style, or event handlers), then target those
elements when firing a 'SecurityPolicyViolation' event.
We'll also need to ensure that the event bubbles so that we don't break
existing collection endpoints that listen on 'Document'.
Committed: https://crrev.com/357d8e12ff388c450cdc431a3e5865737d84d2e2
Cr-Commit-Position: refs/heads/master@{#425937}
Total comments: 1
Total comments: 12
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+414 lines, -322 lines) |
Patch |
 |
M |
third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor.html
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/events/constructors/security-policy-violation-event-constructor-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-handler-allowed.html
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-handler-blocked.html
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/nonces/script-enforce-blocked.php
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+38 lines, -60 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/securitypolicyviolation-helper.js
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/targeting.html
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+160 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/strict-dynamic/script-src-multiple-allowed.php
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+13 lines, -77 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/strict-dynamic/script-src-strict-dynamic.html
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+13 lines, -77 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/strict-dynamic/script-src-strict-dynamic-whitelist.html
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -26 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/ScriptController.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/Document.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/Element.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/ScriptLoader.cpp
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/StyleElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.h
|
View
|
|
3 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
|
View
|
1
2
3
4
5
6
7
|
9 chunks |
+22 lines, -11 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+22 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
View
|
1
2
3
4
5
6
7
8
9
|
7 chunks |
+49 lines, -17 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicyTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
6 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/HTMLFormElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/HTMLMetaElement.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/loader/HttpEquiv.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/loader/HttpEquiv.cpp
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 53 (37 generated)
|