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

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: 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..4e48533fc606fc2237d53b1f72753f9fdd11694d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/fetch/chromium/mime-sniffing.html
@@ -0,0 +1,13 @@
+<!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');
+ });
+ });
+</script>
+<p>This test checks that the mime sniffing is not applied to fetches.</p>
tyoshino (SeeGerritForStatus) 2016/09/08 06:04:31 pass this to promise_test?
yhirano 2016/09/08 06:08:39 Done.

Powered by Google App Engine
This is Rietveld 408576698