From 7ba3b9726d8db6282d05a09dc3d5b3c60344e6d4 Mon Sep 17 00:00:00 2001 From: "rickg%netscape.com" Date: Tue, 16 Feb 1999 07:37:53 +0000 Subject: [PATCH] allow plain text file to be handled by HTML document --- uriloader/base/nsDocLoader.cpp | 3 +-- webshell/src/nsDocLoader.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/uriloader/base/nsDocLoader.cpp b/uriloader/base/nsDocLoader.cpp index cc67f7cd4b1..1abe1c085ed 100644 --- a/uriloader/base/nsDocLoader.cpp +++ b/uriloader/base/nsDocLoader.cpp @@ -221,7 +221,7 @@ nsDocFactoryImpl::nsDocFactoryImpl() */ NS_IMPL_ISUPPORTS(nsDocFactoryImpl,kIDocumentLoaderFactoryIID); -static char* gValidTypes[] = {"text/html","application/rtf",0}; +static char* gValidTypes[] = {"text/html","application/rtf","text/plain",0}; static char* gXMLTypes[] = {"text/xml", "application/xml", 0}; static char* gRDFTypes[] = {"text/rdf", "text/xul", 0}; @@ -243,7 +243,6 @@ static char* gPluginTypes[] = { "audio/x-aiff", "audio/basic", "application/x-shockwave-flash", - "text/plain", 0 }; diff --git a/webshell/src/nsDocLoader.cpp b/webshell/src/nsDocLoader.cpp index cc67f7cd4b1..1abe1c085ed 100644 --- a/webshell/src/nsDocLoader.cpp +++ b/webshell/src/nsDocLoader.cpp @@ -221,7 +221,7 @@ nsDocFactoryImpl::nsDocFactoryImpl() */ NS_IMPL_ISUPPORTS(nsDocFactoryImpl,kIDocumentLoaderFactoryIID); -static char* gValidTypes[] = {"text/html","application/rtf",0}; +static char* gValidTypes[] = {"text/html","application/rtf","text/plain",0}; static char* gXMLTypes[] = {"text/xml", "application/xml", 0}; static char* gRDFTypes[] = {"text/rdf", "text/xul", 0}; @@ -243,7 +243,6 @@ static char* gPluginTypes[] = { "audio/x-aiff", "audio/basic", "application/x-shockwave-flash", - "text/plain", 0 };