|
Basic experimental suborigin CSP directive and SecurityOrigin mods
This adds a basic CSP directive 'suborigin' behind an experimental flag.
The implementation also adds plumbing in SecurityOrigin to support
suborigins, although nothing is explicitly enforced. However, if a
suborigin is used, it will be serialized into the SecurityOrigin's
string on a toString call, so this will have lots of side effects that
will be addressed in a subsequent CL.
BUG= 336894
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196231
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+265 lines, -102 lines) |
Patch |
 |
M |
LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-script-window-onerror-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-script-window-onerror-redirected-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception.php
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-event-exception-expected.txt
|
View
|
|
1 chunk |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-open-exception.php
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/crossorigin/suborigin-cross-origin-window-open-exception-expected.txt
|
View
|
|
1 chunk |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/multiple-suborigins-disallowed-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/suborigin-allow-in-http-header-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/suborigin-blocked-different-suborigins-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/suborigin-blocked-not-in-suborigin-to-suborigin-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
D |
LayoutTests/http/tests/security/suborigins/suborigin-blocked-notifications.php
|
View
|
1
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
 |
D |
LayoutTests/http/tests/security/suborigins/suborigin-blocked-notifications-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/suborigin-change-document-domain-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/suborigin-document-domain-expected.txt
|
View
|
1
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/suborigin-document-suborigin-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/suborigin-in-meta-disallowed-expected.txt
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/suborigin-invalid-names-expected.txt
|
View
|
1
2
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/security/suborigins/suborigin-valid-names-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/Document.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/Document.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/ExecutionContext.h
|
View
|
1
2
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/ExecutionContext.cpp
|
View
|
1
2
|
3 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/frame/csp/CSPDirectiveList.h
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/frame/csp/CSPDirectiveList.cpp
|
View
|
1
2
|
5 chunks |
+56 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/frame/csp/ContentSecurityPolicy.h
|
View
|
1
2
|
5 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/frame/csp/ContentSecurityPolicy.cpp
|
View
|
1
2
|
7 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/testing/NullExecutionContext.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/workers/WorkerGlobalScope.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/platform/RuntimeEnabledFeatures.in
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/platform/weborigin/SecurityOrigin.h
|
View
|
1
2
|
3 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/platform/weborigin/SecurityOrigin.cpp
|
View
|
1
2
|
8 chunks |
+43 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/platform/weborigin/SecurityOriginTest.cpp
|
View
|
|
5 chunks |
+68 lines, -5 lines |
0 comments
|
Download
|
Total messages: 11 (2 generated)
|