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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptLoader.cpp

Issue 1561903002: Fix double resource request for script resources with integrity attr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/Source/core/dom/ScriptLoader.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
index 803253989b2fe8626add173db2851c50234da2b1..136c61475c5a54039514edd16fd743b638cfcaba 100644
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
@@ -308,8 +308,6 @@ bool ScriptLoader::fetchScript(const String& sourceUrl, FetchRequest::DeferOptio
}
m_resource = ScriptResource::fetch(request, elementDocument->fetcher());
- if (m_resource && !integrityAttr.isEmpty())
- m_resource->setIntegrityMetadata(metadataSet);
m_isExternalScript = true;
}

Powered by Google App Engine
This is Rietveld 408576698