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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/fetch/chromium/mime-sniffing.html

Issue 2323623002: Do not sniff mime type for fetch() requests (Closed)
Patch Set: fix Created 4 years, 3 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/LayoutTests/http/tests/fetch/chromium/mime-sniffing.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/fetch/chromium/mime-sniffing.html b/third_party/WebKit/LayoutTests/http/tests/fetch/chromium/mime-sniffing.html
new file mode 100644
index 0000000000000000000000000000000000000000..c072ae4f13d014ef3b210d566e7a45b76d2fcd45
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/fetch/chromium/mime-sniffing.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<script src = "/resources/testharness.js"></script>
+<script src = "/resources/testharnessreport.js"></script>
+<script>
+promise_test(() => {
+ return fetch('/fetch/chromium/resources/mime-sniffing.php').then(res => {
+ return res.blob();
+ }).then(blob => {
+ assert_equals(blob.type, 'unknown/unknown');
+ });
+ }, 'Mime sniffing should not run.');
+</script>
mmenke 2016/09/15 15:08:39 Should we do a browser test instead? We don't run
yhirano 2016/09/20 12:12:31 I don't have a strong opinion. Should I create con
mmenke 2016/09/20 15:00:57 It looks to me like content/browser/loader/ change

Powered by Google App Engine
This is Rietveld 408576698