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

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

Issue 2941883003: [ServiceWorker] Fetch event should return integrity value (Closed)
Patch Set: Rebase 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 983f91ba4602ba7e1cab805116b65a88f61a188f..c492f8e2bf79ae5964da980416326d962c2f7e14 100644
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
@@ -742,6 +742,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