From b50efa60d09aef44b524bb53ea8b7beceea636b5 Mon Sep 17 00:00:00 2001 From: "tor%cs.brown.edu" Date: Tue, 1 Mar 2005 05:17:25 +0000 Subject: [PATCH] Bug 258511 - keep svg mimetypes out of persistent repository. r+sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@170034 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/build/nsContentDLF.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mozilla/layout/build/nsContentDLF.cpp b/mozilla/layout/build/nsContentDLF.cpp index 0a7bc05267d..532048ecbcb 100644 --- a/mozilla/layout/build/nsContentDLF.cpp +++ b/mozilla/layout/build/nsContentDLF.cpp @@ -507,7 +507,8 @@ nsContentDLF::CreateRDFDocument(const char* aCommand, static nsresult RegisterTypes(nsICategoryManager* aCatMgr, - const char* const* aTypes) + const char* const* aTypes, + PRBool aPersist = PR_TRUE) { nsresult rv = NS_OK; while (*aTypes) { @@ -520,7 +521,7 @@ RegisterTypes(nsICategoryManager* aCatMgr, // to query the types of viewers layout can create. rv = aCatMgr->AddCategoryEntry("Gecko-Content-Viewers", contentType, "@mozilla.org/content/document-loader-factory;1", - PR_TRUE, PR_TRUE, nsnull); + aPersist, PR_TRUE, nsnull); if (NS_FAILED(rv)) break; } return rv; @@ -547,7 +548,7 @@ nsContentDLF::RegisterSVG() nsCOMPtr catmgr(do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv)); if (NS_FAILED(rv)) return rv; - return RegisterTypes(catmgr, gSVGTypes); + return RegisterTypes(catmgr, gSVGTypes, PR_FALSE); } NS_IMETHODIMP