|
Revert 178571 "Teach ContentSecurityPolicy about WebURLRequest::..."
Due to bug 396582.
> 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
>
> Review URL: https://codereview.chromium.org/398313002
TBR=mkwst@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178797
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+52 lines, -108 lines) |
Patch |
 |
M |
trunk/Source/core/fetch/CachingCorrectnessTest.cpp
|
View
|
|
5 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
trunk/Source/core/fetch/ResourceFetcher.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
trunk/Source/core/fetch/ResourceFetcher.cpp
|
View
|
|
8 chunks |
+48 lines, -11 lines |
0 comments
|
Download
|
 |
M |
trunk/Source/core/frame/UseCounter.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
trunk/Source/core/frame/csp/ContentSecurityPolicy.h
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
trunk/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
View
|
|
1 chunk |
+0 lines, -72 lines |
0 comments
|
Download
|
 |
M |
trunk/Source/core/html/parser/HTMLResourcePreloader.cpp
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
trunk/Source/core/loader/ImageLoader.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
trunk/Source/core/xml/XSLTProcessorLibxslt.cpp
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
trunk/Source/core/xml/parser/XMLDocumentParser.cpp
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
trunk/Source/web/tests/WebFrameTest.cpp
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
Total messages: 2 (0 generated)
|