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

Unified Diff: third_party/WebKit/Source/core/html/LinkStyle.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/html/LinkStyle.cpp
diff --git a/third_party/WebKit/Source/core/html/LinkStyle.cpp b/third_party/WebKit/Source/core/html/LinkStyle.cpp
index df3ef936243890022a8b433b51bd93080f5fbbac..2b24a45f1c03f6bea903d88bb867bbb90ec0d691 100644
--- a/third_party/WebKit/Source/core/html/LinkStyle.cpp
+++ b/third_party/WebKit/Source/core/html/LinkStyle.cpp
@@ -352,6 +352,7 @@ LinkStyle::LoadReturnValue LinkStyle::LoadStylesheetIfNeeded(
IntegrityMetadataSet metadata_set;
SubresourceIntegrity::ParseIntegrityAttribute(integrity_attr, metadata_set);
params.SetIntegrityMetadata(metadata_set);
+ params.MutableResourceRequest().SetFetchIntegrity(integrity_attr);
}
SetResource(CSSStyleSheetResource::Fetch(params, GetDocument().Fetcher()));
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698