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

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

Issue 1578993002: Fix double resource request for script resources with integrity attr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@2564
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 1c5059898bcae4fa2f5d517b57503df8739b9d07..dd65a00b025d567cf3abd04530f0ef159858ed27 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