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

Unified Diff: third_party/WebKit/Source/core/html/LinkStyle.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/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()));

Powered by Google App Engine
This is Rietveld 408576698