Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIDispatchSupport

Please add a summary to this article.
Inherits from: nsISupports Last changed in Gecko 1.7

Method overview

void COMVariant2JSVal(in COMVARIANTPtr comvar, out jsval val);
unsigned long getHostingFlags(in string aContext);
boolean isClassMarkedSafeForScripting(in nsCIDRef cid, out boolean classExists);
boolean isClassSafeToHost(in JSContextPtr cx, in nsCIDRef cid, in boolean capsCheck, out boolean classExists);
boolean isObjectSafeForScripting(in voidPtr theObject, in nsIIDRef id);
void JSVal2COMVariant(in jsval var, out COMVARIANT comvar);

Methods

COMVariant2JSVal()

Converts a COM Variant to a jsval.

void COMVariant2JSVal(
  in COMVARIANTPtr comvar,
  out jsval val
);
Parameters
comvar
The COM Variant to be converted.
val
The jsval to receive the converted value.

getHostingFlags()

Return the ActiveX security and hosting flags. See nsIActiveXSecurityPolicy for list of flags.

unsigned long getHostingFlags(
  in string aContext
);
Parameters
aContext
Return value

 

isClassMarkedSafeForScripting()

Test if the specified class is marked safe for scripting.

boolean isClassMarkedSafeForScripting(
  in nsCIDRef cid,
  out boolean classExists
);
Parameters
cid
The nsID representation of the CLSID to test.
classExists
Returns containing PR_FALSE if the class is not registered.
Return value

 

isClassSafeToHost()

Test if the class is safe to host.

boolean isClassSafeToHost(
  in JSContextPtr cx,
  in nsCIDRef cid,
  in boolean capsCheck,
  out boolean classExists
);
Parameters
cx
cid
capsCheck
classExists
Returns containing PR_FALSE if the class is not registered.
Return value

 

isObjectSafeForScripting()

Test if the instantiated object is safe for scripting on the specified interface.

boolean isObjectSafeForScripting(
  in voidPtr theObject,
  in nsIIDRef id
);
Parameters
theObject
The object to test (an IUnknown cast into a void *).
id
Return value

 

JSVal2COMVariant()

Converts a jsval to a COM Variant.

void JSVal2COMVariant(
  in jsval var,
  out COMVARIANT comvar
);
Parameters
var
The jsval to be converted.
comvar
The COM Variant to receive the converted value.

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh
 Last updated by: Sheppy,