From bd26e972690f71a3c9f384498a19a566f42a1567 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Fri, 7 Jul 2000 21:45:40 +0000 Subject: [PATCH] part of the fix for Bug #43661 --> need to register the browser as the handler for text/plain so we can open text documents and have them get dispatched to the browser. r=alecf --- xpfe/browser/src/nsBrowserInstance.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xpfe/browser/src/nsBrowserInstance.cpp b/xpfe/browser/src/nsBrowserInstance.cpp index e393616f666f..9542c678663e 100644 --- a/xpfe/browser/src/nsBrowserInstance.cpp +++ b/xpfe/browser/src/nsBrowserInstance.cpp @@ -1620,6 +1620,7 @@ nsBrowserInstance::IsPreferred(const char * aContentType, || nsCRT::strcasecmp(aContentType, "image/jpeg") == 0 || nsCRT::strcasecmp(aContentType, "image/png") == 0 || nsCRT::strcasecmp(aContentType, "image/tiff") == 0 + || nsCRT::strcasecmp(aContentType, "text/plain") == 0 || nsCRT::strcasecmp(aContentType, "application/http-index-format") == 0) *aCanHandleContent = PR_TRUE; } @@ -2269,6 +2270,11 @@ static nsModuleComponentInfo components[] = { NS_CONTENT_HANDLER_PROGID_PREFIX"text/css", nsBrowserContentHandlerConstructor }, + { "Browser Content Handler", + NS_BROWSERCONTENTHANDLER_CID, + NS_CONTENT_HANDLER_PROGID_PREFIX"text/plain", + nsBrowserContentHandlerConstructor + }, { "Browser Content Handler", NS_BROWSERCONTENTHANDLER_CID, NS_CONTENT_HANDLER_PROGID_PREFIX"image/gif",