mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 658359 - Register .frag and .vert extensions as text/plain to prevent crashing due to buggy plugins in WebGL mochitest - r=ehsan
These file types were unknown, leading to querying plugins to check if any would recognize these types, leading to xpcshell crashes due to bad plugins on linux, leading to mochitest failure on my machine.
This commit is contained in:
parent
27040fd475
commit
e6a6f31e00
@ -240,6 +240,8 @@ function createMochitestServer(serverBasePath)
|
||||
server.registerContentType("ogv", "video/ogg");
|
||||
server.registerContentType("oga", "audio/ogg");
|
||||
server.registerContentType("dat", "text/plain; charset=utf-8");
|
||||
server.registerContentType("frag", "text/plain"); // .frag == WebGL fragment shader
|
||||
server.registerContentType("vert", "text/plain"); // .vert == WebGL vertex shader
|
||||
server.setIndexHandler(defaultDirHandler);
|
||||
|
||||
var serverRoot =
|
||||
|
Loading…
Reference in New Issue
Block a user