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

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

Issue 2941883003: [ServiceWorker] Fetch event should return integrity value (Closed)
Patch Set: Address yhirano's comment #78 Created 3 years, 5 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 067b2a8e4433d0e64686945e0bbde5f107275cb9..ca42fe74ce615943f02c0578136ed4941788a2ea 100644
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
@@ -728,6 +728,10 @@ bool ScriptLoader::FetchClassicScript(
// "... integrity metadata, ..."
params.SetIntegrityMetadata(integrity_metadata);
+ // "... integrity value, ..."
+ params.MutableResourceRequest().SetFetchIntegrity(
+ element_->IntegrityAttributeValue());
+
// "... parser state, ..."
params.SetParserDisposition(parser_state);

Powered by Google App Engine
This is Rietveld 408576698