[network] Add non-overrideable default MIME types for js, jsm and json.

This ensures the browser always recognizes these file type extensions
appropriately, even if not otherwise registered in the system.
This commit is contained in:
Moonchild 2022-01-19 13:40:15 +00:00 committed by roytam1
commit bca191c2b9

View file

@ -384,6 +384,9 @@ static const nsDefaultMimeTypeEntry defaultMimeEntries[] =
{ "application/xhtml+xml", "xhtml" },
{ "application/xhtml+xml", "xht" },
{ TEXT_PLAIN, "txt" },
{ APPLICATION_JSON, "json"},
{ APPLICATION_XJAVASCRIPT, "js"},
{ APPLICATION_XJAVASCRIPT, "jsm"},
{ VIDEO_OGG, "ogv" },
{ VIDEO_OGG, "ogg" },
{ APPLICATION_OGG, "ogg" },