mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Fix problem with nsSecurityManagerFactory conversion to be a nsIModule. Patch from peterl@netscape.com. Review: me.
This commit is contained in:
parent
88203d51ef
commit
5f3ca2b087
@ -17,7 +17,7 @@
|
||||
*/
|
||||
/*Factory for internal browser security resource managers*/
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIModule.h"
|
||||
@ -150,7 +150,7 @@ nsSecurityManagerModule::GetClassObject(nsIComponentManager *aCompMgr,
|
||||
{
|
||||
if (!mScriptSecurityManagerFactory) {
|
||||
rv = NS_NewGenericFactory(getter_AddRefs(mScriptSecurityManagerFactory),
|
||||
nsCodebasePrincipalConstructor);
|
||||
Construct_nsIScriptSecurityManager);
|
||||
}
|
||||
fact = mScriptSecurityManagerFactory;
|
||||
}
|
||||
@ -158,7 +158,7 @@ nsSecurityManagerModule::GetClassObject(nsIComponentManager *aCompMgr,
|
||||
{
|
||||
if (!mCodebasePrincipalFactory) {
|
||||
rv = NS_NewGenericFactory(getter_AddRefs(mCodebasePrincipalFactory),
|
||||
Construct_nsIScriptSecurityManager);
|
||||
nsCodebasePrincipalConstructor);
|
||||
}
|
||||
fact = mCodebasePrincipalFactory;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user