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

Unified Diff: third_party/WebKit/Source/core/fetch/DocumentResource.h

Issue 1706243002: Don't use SVG resource documents with an unrecognized MIME-type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use testharness; add unit test for extractMIMETypeFromMediaType Created 4 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/core/fetch/DocumentResource.h
diff --git a/third_party/WebKit/Source/core/fetch/DocumentResource.h b/third_party/WebKit/Source/core/fetch/DocumentResource.h
index 296ca45e74124ed0991a4a267ab1a09c4d7377e0..6543379782cb7ed8c7da23d6c3ef0ce9b3df6874 100644
--- a/third_party/WebKit/Source/core/fetch/DocumentResource.h
+++ b/third_party/WebKit/Source/core/fetch/DocumentResource.h
@@ -60,6 +60,7 @@ private:
};
DocumentResource(const ResourceRequest&, Type);
+ bool mimeTypeAllowed() const;
PassRefPtrWillBeRawPtr<Document> createDocument(const KURL&);
RefPtrWillBeMember<Document> m_document;

Powered by Google App Engine
This is Rietveld 408576698