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:
Benoit Jacob 2011-05-20 17:50:53 -04:00
parent 27040fd475
commit e6a6f31e00

View File

@ -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 =