|
Teach ContentSecurityPolicy about WebURLRequest::RequestContext.
Rather than using `Resource::Type` to make decisions about what CSP
directive to apply to a resource request, we should be using
WebURLRequest::RequestContext. This patch teaches ContentSecurityPolicy
to correctly compare a URL against the right policy directive when given
a 'ResourceContext', and pipes the value through
'ResourceFetcher::canRequest' to make sure its available when it needs
to be.
BUG= 390497
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178571
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+108 lines, -52 lines) |
Patch |
|
M |
Source/core/fetch/CachingCorrectnessTest.cpp
|
View
|
1
2
3
|
5 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/fetch/ResourceFetcher.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/fetch/ResourceFetcher.cpp
|
View
|
1
2
3
|
8 chunks |
+11 lines, -48 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/UseCounter.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/csp/ContentSecurityPolicy.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/csp/ContentSecurityPolicy.cpp
|
View
|
1
2
3
|
1 chunk |
+72 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/html/parser/HTMLResourcePreloader.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/loader/ImageLoader.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/xml/XSLTProcessorLibxslt.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/xml/parser/XMLDocumentParser.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/web/tests/WebFrameTest.cpp
|
View
|
1
2
3
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|