@mozilla.org/globalprefsecuritycheck;1

This component implements the following interfaces:

Constants

Default CheckLoadURI permissions
PRUint32 nsIScriptSecurityManager.STANDARD = 0
PRUint32 nsIScriptSecurityManager.DISALLOW_FROM_MAIL = 1
PRUint32 nsIScriptSecurityManager.ALLOW_CHROME = 2
PRUint32 nsIScriptSecurityManager.DISALLOW_SCRIPT_OR_DATA = 4
PRUint32 nsIScriptSecurityManager.DISALLOW_SCRIPT = 8
These flags are used when calling nsIXPConnect::SetSecurityManager
PRUint32 nsIXPCSecurityManager.HOOK_CREATE_WRAPPER = 1
PRUint32 nsIXPCSecurityManager.HOOK_CREATE_INSTANCE = 2
PRUint32 nsIXPCSecurityManager.HOOK_GET_SERVICE = 4
PRUint32 nsIXPCSecurityManager.HOOK_CALL_METHOD = 8
PRUint32 nsIXPCSecurityManager.HOOK_GET_PROPERTY = 16
PRUint32 nsIXPCSecurityManager.HOOK_SET_PROPERTY = 32
PRUint32 nsIXPCSecurityManager.HOOK_ALL = 63
PRUint32 nsIXPCSecurityManager.ACCESS_CALL_METHOD = 0
PRUint32 nsIXPCSecurityManager.ACCESS_GET_PROPERTY = 1
PRUint32 nsIXPCSecurityManager.ACCESS_SET_PROPERTY = 2

Methods

InterfaceMethod
nsIXPCSecurityManager void CanAccess ( PRUint32 action , nsIXPCNativeCallContext callContext , JSContextPtr* JSContext , JSObjectPtr* JSObject , nsISupports obj , nsIClassInfo classInfo , JSVal name , inout voidPtr* policy )
nsIXPCSecurityManager void CanCreateInstance ( JSContextPtr* JSContext , nsCIDRef CID )
nsIXPCSecurityManager void CanCreateWrapper ( JSContextPtr* JSContext , nsIIDRef IID , nsISupports obj , nsIClassInfo classInfo , inout voidPtr* policy )
nsIScriptSecurityManager [noscript] PRBool canExecuteScripts ( JSContextPtr* cx , nsIPrincipal principal )
nsIXPCSecurityManager void CanGetService ( JSContextPtr* JSContext , nsCIDRef CID )
nsIScriptSecurityManager [noscript] void checkConnect ( JSContextPtr* JSContext , nsIURI targetURI , char* className , char* property )
nsIScriptSecurityManager [noscript] void checkFunctionAccess ( JSContextPtr* cx , voidPtr* funObj , voidPtr* targetObj )
nsIScriptSecurityManager void checkLoadURI ( nsIURI from , nsIURI uri , PRUint32 flags )
nsIScriptSecurityManager [noscript] void checkLoadURIFromScript ( JSContextPtr* cx , nsIURI uri )
nsIScriptSecurityManager void checkLoadURIStr ( AUTF8String from , AUTF8String uri , PRUint32 flags )
nsIScriptSecurityManager [noscript] void checkLoadURIWithPrincipal ( nsIPrincipal principal , nsIURI uri , PRUint32 flags )
nsIScriptSecurityManager [noscript] void checkPropertyAccess ( JSContextPtr* JSContext , JSObjectPtr* JSObject , char* className , JSVal property , PRUint32 action )
nsIScriptSecurityManager [noscript] void checkSameOrigin ( JSContextPtr* JSContext , nsIURI targetURI )
nsIScriptSecurityManager [noscript] void checkSameOriginPrincipal ( nsIPrincipal sourcePrincipal , nsIPrincipal targetPrincipal )
nsIScriptSecurityManager void checkSameOriginURI ( nsIURI sourceURI , nsIURI targetURI )
nsIScriptSecurityManager void disableCapability ( char* capability )
nsIScriptSecurityManager void enableCapability ( char* capability )
nsIScriptSecurityManager [noscript] nsIPrincipal getCertificatePrincipal ( AUTF8String certFingerprint , AUTF8String subjectName , AUTF8String prettyName , nsISupports cert , nsIURI URI )
nsIScriptSecurityManager [noscript] nsIPrincipal getCodebasePrincipal ( nsIURI URI )
nsIScriptSecurityManager [noscript] nsIPrincipal getObjectPrincipal ( JSContextPtr* cx , JSObjectPtr* obj )
nsIScriptSecurityManager [noscript] nsIPrincipal getPrincipalFromContext ( JSContextPtr* cx )
nsIScriptSecurityManager [noscript] nsIPrincipal getSubjectPrincipal ( )
nsIScriptSecurityManager [noscript] nsIPrincipal getSystemPrincipal ( )
nsIScriptSecurityManager PRBool isCapabilityEnabled ( char* capability )
nsIObserver void observe ( nsISupports subject , char* topic , PRUnichar* data )
nsIScriptSecurityManager [noscript] PRInt16 requestCapability ( nsIPrincipal principal , char* capability )
nsIScriptSecurityManager void revertCapability ( char* capability )
nsIScriptSecurityManager [noscript] PRBool securityCompareURIs ( nsIURI subjectURI , nsIURI objectURI )
nsIScriptSecurityManager void setCanEnableCapability ( AUTF8String certificateFingerprint , char* capability , PRInt16 canEnable )
nsIScriptSecurityManager [noscript] PRBool subjectPrincipalIsSystem ( )

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com