Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 2472333003: CSP: "local schemes" should inherit policy when embedded. (Closed)
Patch Set: dcheng@ Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index 90c4187918135b4ca10e9970d0cc91b43fe0756c..8a8a81f1abaf1d1b390dde0351d85c75a01e45a0 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -397,6 +397,7 @@ void DocumentLoader::cancelLoadAfterXFrameOptionsOrCSPDenied(
// TODO(mkwst): Remove this once XFO moves to the browser.
// https://crbug.com/555418.
clearMainResourceHandle();
+ m_contentSecurityPolicy.clear();
KURL blockedURL = SecurityOrigin::urlWithUniqueSecurityOrigin();
m_originalRequest.setURL(blockedURL);
m_request.setURL(blockedURL);
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698