Moved URI fixup code out of docshell and into a global service. b=51702, sr=waterson@netscape.com

git-svn-id: svn://10.0.0.236/trunk@82434 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
locka%iol.ie
2000-11-08 21:00:37 +00:00
parent 4f5e93f6f6
commit fc5ff9fc9c
10 changed files with 430 additions and 196 deletions

View File

@@ -23,8 +23,10 @@
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsWebShell.h"
#include "nsDefaultURIFixup.h"
NS_GENERIC_FACTORY_CONSTRUCTOR(nsWebShell);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDefaultURIFixup);
// Currently no-one is instanciating docshell's directly because
// nsWebShell is still our main "shell" class. nsWebShell is a subclass
@@ -37,7 +39,11 @@ static nsModuleComponentInfo gDocShellModuleInfo[] = {
{ "WebShell",
NS_WEB_SHELL_CID,
"@mozilla.org/webshell;1",
nsWebShellConstructor }
nsWebShellConstructor },
{ "Default keyword fixup",
NS_DEFAULTURIFIXUP_CID,
NS_URIFIXUP_CONTRACTID,
nsDefaultURIFixupConstructor }
};
// "docshell provider" to illustrate that this thing really *should*