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

Unified Diff: Source/core/loader/ResourceLoader.cpp

Issue 14949017: Implementation of W3C compliant CSP script-src nonce. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixes from comments and nits from Adam and Mike. Created 7 years, 7 months 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
Index: Source/core/loader/ResourceLoader.cpp
diff --git a/Source/core/loader/ResourceLoader.cpp b/Source/core/loader/ResourceLoader.cpp
index 16faac7d0684a9a67787c7388ae4b0228fc83ac5..fd7e7a305b70480ffdd4b2b45566b6a4b9186582 100644
--- a/Source/core/loader/ResourceLoader.cpp
+++ b/Source/core/loader/ResourceLoader.cpp
@@ -323,7 +323,8 @@ void ResourceLoader::willSendRequest(ResourceHandle*, ResourceRequest& request,
ASSERT(!request.isNull());
if (!redirectResponse.isNull()) {
- if (!m_documentLoader->cachedResourceLoader()->canRequest(m_resource->type(), request.url())) {
+ if
+ (!m_documentLoader->cachedResourceLoader()->canRequest(m_resource->type(), request.url(), NULL)) {
abarth-chromium 2013/05/14 21:11:08 These two lines should be merged. Also, we don't
jww 2013/05/14 22:55:30 Can you elaborate on the example you're concerned
cancel();
return;
}

Powered by Google App Engine
This is Rietveld 408576698