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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/Resource.cpp

Issue 2689173002: Implement script MIME restrictions for X-Content-Type-Options: nosniff for Workers (Closed)
Patch Set: incorporated mkwst@'s comment Created 3 years, 10 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/platform/loader/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp b/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp
index d6060abd934673a50d6aa429eed747c9e48ea9f2..ea45ca8299f5b657c8ab0e854830ed5983e416cb 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp
@@ -433,8 +433,7 @@ void Resource::finish(double loadFinishTime) {
}
AtomicString Resource::httpContentType() const {
- return extractMIMETypeFromMediaType(
- response().httpHeaderField(HTTPNames::Content_Type).lower());
+ return response().httpContentType();
}
bool Resource::passesAccessControlCheck(SecurityOrigin* securityOrigin) const {

Powered by Google App Engine
This is Rietveld 408576698