Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions  Download package

nsIScriptSecurityManager Interface Reference

import "nsIScriptSecurityManager.idl";

Inheritance diagram for nsIScriptSecurityManager:

nsISupports

List of all members.


Detailed Description

WARNING!! The JEP needs to call GetSubjectPrincipal() to support JavaScript-to-Java LiveConnect. So every change to the nsIScriptSecurityManager interface (big enough to change its IID) also breaks JavaScript-to-Java LiveConnect on mac.

If you REALLY have to change this interface, please mark your bug as blocking bug 293973.

Definition at line 54 of file nsIScriptSecurityManager.idl.


Public Member Functions

void CanAccess (in PRUint32 aAction, in nsAXPCNativeCallContextPtr aCallContext, in JSContextPtr aJSContext, in JSObjectPtr aJSObject, in nsISupports aObj, in nsIClassInfo aClassInfo, in JSVal aName, inout voidPtr aPolicy)
void CanCreateInstance (in JSContextPtr aJSContext, in nsCIDRef aCID)
void CanCreateWrapper (in JSContextPtr aJSContext, in nsIIDRef aIID, in nsISupports aObj, in nsIClassInfo aClassInfo, inout voidPtr aPolicy)
boolean canExecuteScripts (in JSContextPtr cx, in nsIPrincipal principal)
void CanGetService (in JSContextPtr aJSContext, in nsCIDRef aCID)
void checkConnect (in JSContextPtr aJSContext, in nsIURI aTargetURI, in string aClassName, in string aProperty)
void checkFunctionAccess (in JSContextPtr cx, in voidPtr funObj, in voidPtr targetObj)
void checkLoadURI (in nsIURI from, in nsIURI uri, in unsigned long flags)
void checkLoadURIFromScript (in JSContextPtr cx, in nsIURI uri)
void checkLoadURIStr (in AUTF8String from, in AUTF8String uri, in unsigned long flags)
void checkLoadURIStrWithPrincipal (in nsIPrincipal aPrincipal, in AUTF8String uri, in unsigned long flags)
void checkLoadURIWithPrincipal (in nsIPrincipal aPrincipal, in nsIURI uri, in unsigned long flags)
void checkPropertyAccess (in JSContextPtr aJSContext, in JSObjectPtr aJSObject, in string aClassName, in JSVal aProperty, in PRUint32 aAction)
void checkSameOrigin (in JSContextPtr aJSContext, in nsIURI aTargetURI)
void checkSameOriginURI (in nsIURI aSourceURI, in nsIURI aTargetURI, in boolean reportError)
void disableCapability (in string capability)
void enableCapability (in string capability)
nsIPrincipal getCertificatePrincipal (in AUTF8String aCertFingerprint, in AUTF8String aSubjectName, in AUTF8String aPrettyName, in nsISupports aCert, in nsIURI aURI)
nsIPrincipal getChannelPrincipal (in nsIChannel aChannel)
nsIPrincipal getCodebasePrincipal (in nsIURI aURI)
nsIPrincipal getCxSubjectPrincipal (in JSContextPtr cx)
nsIPrincipal getObjectPrincipal (in JSContextPtr cx, in JSObjectPtr obj)
nsIPrincipal getPrincipalFromContext (in JSContextPtr cx)
nsIPrincipal getSubjectPrincipal ()
nsIPrincipal getSystemPrincipal ()
boolean isCapabilityEnabled (in string capability)
boolean isSystemPrincipal (in nsIPrincipal aPrincipal)
short requestCapability (in nsIPrincipal principal, in string capability)
void revertCapability (in string capability)
void setCanEnableCapability (in AUTF8String certificateFingerprint, in string capability, in short canEnable)
boolean subjectPrincipalIsSystem ()
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

const PRUint32 ACCESS_CALL_METHOD = 0
const PRUint32 ACCESS_GET_PROPERTY = 1
const PRUint32 ACCESS_SET_PROPERTY = 2
const unsigned long ALLOW_CHROME = 1 << 1
const unsigned long DISALLOW_INHERIT_PRINCIPAL = 1 << 2
const unsigned long DISALLOW_SCRIPT = 1 << 3
const unsigned long DISALLOW_SCRIPT_OR_DATA = DISALLOW_INHERIT_PRINCIPAL
const PRUint32 HOOK_ALL
const PRUint32 HOOK_CALL_METHOD = 1 << 3
const PRUint32 HOOK_CREATE_INSTANCE = 1 << 1
const PRUint32 HOOK_CREATE_WRAPPER = 1 << 0
const PRUint32 HOOK_GET_PROPERTY = 1 << 4
const PRUint32 HOOK_GET_SERVICE = 1 << 2
const PRUint32 HOOK_SET_PROPERTY = 1 << 5
const unsigned long LOAD_IS_AUTOMATIC_DOCUMENT_REPLACEMENT = 1 << 0
const unsigned long STANDARD = 0

The documentation for this interface was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index