Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsIScriptContextOwner.idl File Reference
import "nsISupports.idl";
#include "nscore.h"
#include "nsIScriptContext.h"

Go to the source code of this file.


class  nsIScriptContext
 It is used by the application to initialize a runtime and run scripts. More...
interface  nsIScriptContextOwner


nsIScriptContextGetScriptContextFromJSContext (JSContext *cx)

Function Documentation

Definition at line 361 of file nsIScriptContext.h.

  if (!(::JS_GetOptions(cx) & JSOPTION_PRIVATE_IS_NSISUPPORTS)) {
    return nsnull;

  nsCOMPtr<nsIScriptContext> scx =
    do_QueryInterface(NS_STATIC_CAST(nsISupports *,

  // This will return a pointer to something that's about to be
  // released, but that's ok here.
  return scx;

Here is the call graph for this function:

Here is the caller graph for this function: