mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Treat a "mime type" of "replace" as "text/html". Bug 313217, r+sr=jst
This commit is contained in:
parent
0d5a3e6aa7
commit
6c4f2c04a1
@ -7403,7 +7403,8 @@ nsHTMLDocumentSH::DocumentOpen(JSContext *cx, JSObject *obj, uintN argc,
|
||||
ToLowerCase(type);
|
||||
nsCAutoString actualType, dummy;
|
||||
NS_ParseContentType(NS_ConvertUTF16toUTF8(type), actualType, dummy);
|
||||
if (!actualType.EqualsLiteral("text/html")) {
|
||||
if (!actualType.EqualsLiteral("text/html") &&
|
||||
!type.EqualsLiteral("replace")) {
|
||||
contentType = "text/plain";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user