8297609: Add application/wasm MIME type for wasm file extension

Reviewed-by: jpai, michaelm
This commit is contained in:
Michal Karm Babacek 2022-12-05 01:59:20 +00:00 committed by Jaikiran Pai
parent a71d91b96f
commit 914ef07fed
3 changed files with 22 additions and 13 deletions

View File

@ -258,8 +258,8 @@ image/webp: \
file_extensions=.webp;
text/css: \
description=CSS File;\
file_extensions=.css;
description=CSS File;\
file_extensions=.css;
text/html: \
description=HTML Document;\
@ -267,8 +267,8 @@ text/html: \
icon=html
text/javascript: \
description=JavaScript File;\
file_extensions=.js;
description=JavaScript File;\
file_extensions=.js;
text/plain: \
description=Plain Text;\
@ -289,8 +289,8 @@ text/csv: \
file_extensions=.csv;
text/markdown: \
description=Markdown File;\
file_extensions=.md,.markdown
description=Markdown File;\
file_extensions=.md,.markdown
video/mp4: \
description=MPEG-4 Video;\
@ -353,7 +353,7 @@ application/vnd.oasis.opendocument.text: \
file_extensions=.odt;
application/vnd.ms-excel: \
description=Microsoft Excel File;\
description=Microsoft Excel File;\
file_extensions=.xls;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: \
@ -395,3 +395,7 @@ application/bz2: \
application/java-archive: \
description=JAR File;\
file_extensions=.jar;
application/wasm: \
description=WebAssembly File;\
file_extensions=.wasm;

View File

@ -259,8 +259,8 @@ image/webp: \
file_extensions=.webp;
text/css: \
description=CSS File;\
file_extensions=.css;
description=CSS File;\
file_extensions=.css;
text/html: \
description=HTML Document;\
@ -290,8 +290,8 @@ text/csv: \
file_extensions=.csv;
text/markdown: \
description=Markdown File;\
file_extensions=.md,.markdown
description=Markdown File;\
file_extensions=.md,.markdown
video/mp4: \
description=MPEG-4 Video;\
@ -387,4 +387,8 @@ application/bz2: \
application/java-archive: \
description=JAR File;\
file_extensions=.jar;
file_extensions=.jar;
application/wasm: \
description=WebAssembly File;\
file_extensions=.wasm;

View File

@ -22,7 +22,7 @@
*/
/* @test
* @bug 4313887 8129632 8129633 8162624 8146215 8162745 8273655 8274171 8287237
* @bug 4313887 8129632 8129633 8162624 8146215 8162745 8273655 8274171 8287237 8297609
* @summary Unit test for probeContentType method
* @library ../..
* @build Basic SimpleFileTypeDetector
@ -187,6 +187,7 @@ public class Basic {
new ExType("xls", List.of("application/vnd.ms-excel")),
new ExType("xlsx", List.of("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")),
new ExType("7z", List.of("application/x-7z-compressed")),
new ExType("wasm", List.of("application/wasm")),
};
failures += checkContentTypes(exTypes);