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
|